Initial commit: Complete WooCommerce Smart Google Pricing plugin with vendor dependencies

This commit is contained in:
2025-12-23 07:48:45 +01:00
commit 9b66109ca1
32472 changed files with 4065017 additions and 0 deletions

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AddProductToProductSetRequest extends \Google\Model
{
/**
* Required. The resource name for the Product to be added to this ProductSet.
* Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
*
* @var string
*/
public $product;
/**
* Required. The resource name for the Product to be added to this ProductSet.
* Format is: `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`
*
* @param string $product
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AddProductToProductSetRequest::class, 'Google_Service_Vision_AddProductToProductSetRequest');

View File

@@ -0,0 +1,115 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AnnotateFileRequest extends \Google\Collection
{
protected $collection_key = 'pages';
protected $featuresType = Feature::class;
protected $featuresDataType = 'array';
protected $imageContextType = ImageContext::class;
protected $imageContextDataType = '';
protected $inputConfigType = InputConfig::class;
protected $inputConfigDataType = '';
/**
* Pages of the file to perform image annotation. Pages starts from 1, we
* assume the first page of the file is page 1. At most 5 pages are supported
* per request. Pages can be negative. Page 1 means the first page. Page 2
* means the second page. Page -1 means the last page. Page -2 means the
* second to the last page. If the file is GIF instead of PDF or TIFF, page
* refers to GIF frames. If this field is empty, by default the service
* performs image annotation for the first 5 pages of the file.
*
* @var int[]
*/
public $pages;
/**
* Required. Requested features.
*
* @param Feature[] $features
*/
public function setFeatures($features)
{
$this->features = $features;
}
/**
* @return Feature[]
*/
public function getFeatures()
{
return $this->features;
}
/**
* Additional context that may accompany the image(s) in the file.
*
* @param ImageContext $imageContext
*/
public function setImageContext(ImageContext $imageContext)
{
$this->imageContext = $imageContext;
}
/**
* @return ImageContext
*/
public function getImageContext()
{
return $this->imageContext;
}
/**
* Required. Information about the input file.
*
* @param InputConfig $inputConfig
*/
public function setInputConfig(InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* Pages of the file to perform image annotation. Pages starts from 1, we
* assume the first page of the file is page 1. At most 5 pages are supported
* per request. Pages can be negative. Page 1 means the first page. Page 2
* means the second page. Page -1 means the last page. Page -2 means the
* second to the last page. If the file is GIF instead of PDF or TIFF, page
* refers to GIF frames. If this field is empty, by default the service
* performs image annotation for the first 5 pages of the file.
*
* @param int[] $pages
*/
public function setPages($pages)
{
$this->pages = $pages;
}
/**
* @return int[]
*/
public function getPages()
{
return $this->pages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateFileRequest::class, 'Google_Service_Vision_AnnotateFileRequest');

View File

@@ -0,0 +1,105 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AnnotateFileResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $errorType = Status::class;
protected $errorDataType = '';
protected $inputConfigType = InputConfig::class;
protected $inputConfigDataType = '';
protected $responsesType = AnnotateImageResponse::class;
protected $responsesDataType = 'array';
/**
* This field gives the total number of pages in the file.
*
* @var int
*/
public $totalPages;
/**
* If set, represents the error message for the failed request. The
* `responses` field will not be set in this case.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Information about the file for which this response is generated.
*
* @param InputConfig $inputConfig
*/
public function setInputConfig(InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* Individual responses to images found within the file. This field will be
* empty if the `error` field is set.
*
* @param AnnotateImageResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return AnnotateImageResponse[]
*/
public function getResponses()
{
return $this->responses;
}
/**
* This field gives the total number of pages in the file.
*
* @param int $totalPages
*/
public function setTotalPages($totalPages)
{
$this->totalPages = $totalPages;
}
/**
* @return int
*/
public function getTotalPages()
{
return $this->totalPages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateFileResponse::class, 'Google_Service_Vision_AnnotateFileResponse');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AnnotateImageRequest extends \Google\Collection
{
protected $collection_key = 'features';
protected $featuresType = Feature::class;
protected $featuresDataType = 'array';
protected $imageType = Image::class;
protected $imageDataType = '';
protected $imageContextType = ImageContext::class;
protected $imageContextDataType = '';
/**
* Requested features.
*
* @param Feature[] $features
*/
public function setFeatures($features)
{
$this->features = $features;
}
/**
* @return Feature[]
*/
public function getFeatures()
{
return $this->features;
}
/**
* The image to be processed.
*
* @param Image $image
*/
public function setImage(Image $image)
{
$this->image = $image;
}
/**
* @return Image
*/
public function getImage()
{
return $this->image;
}
/**
* Additional context that may accompany the image.
*
* @param ImageContext $imageContext
*/
public function setImageContext(ImageContext $imageContext)
{
$this->imageContext = $imageContext;
}
/**
* @return ImageContext
*/
public function getImageContext()
{
return $this->imageContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateImageRequest::class, 'Google_Service_Vision_AnnotateImageRequest');

View File

@@ -0,0 +1,284 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AnnotateImageResponse extends \Google\Collection
{
protected $collection_key = 'textAnnotations';
protected $contextType = ImageAnnotationContext::class;
protected $contextDataType = '';
protected $cropHintsAnnotationType = CropHintsAnnotation::class;
protected $cropHintsAnnotationDataType = '';
protected $errorType = Status::class;
protected $errorDataType = '';
protected $faceAnnotationsType = FaceAnnotation::class;
protected $faceAnnotationsDataType = 'array';
protected $fullTextAnnotationType = TextAnnotation::class;
protected $fullTextAnnotationDataType = '';
protected $imagePropertiesAnnotationType = ImageProperties::class;
protected $imagePropertiesAnnotationDataType = '';
protected $labelAnnotationsType = EntityAnnotation::class;
protected $labelAnnotationsDataType = 'array';
protected $landmarkAnnotationsType = EntityAnnotation::class;
protected $landmarkAnnotationsDataType = 'array';
protected $localizedObjectAnnotationsType = LocalizedObjectAnnotation::class;
protected $localizedObjectAnnotationsDataType = 'array';
protected $logoAnnotationsType = EntityAnnotation::class;
protected $logoAnnotationsDataType = 'array';
protected $productSearchResultsType = ProductSearchResults::class;
protected $productSearchResultsDataType = '';
protected $safeSearchAnnotationType = SafeSearchAnnotation::class;
protected $safeSearchAnnotationDataType = '';
protected $textAnnotationsType = EntityAnnotation::class;
protected $textAnnotationsDataType = 'array';
protected $webDetectionType = WebDetection::class;
protected $webDetectionDataType = '';
/**
* If present, contextual information is needed to understand where this image
* comes from.
*
* @param ImageAnnotationContext $context
*/
public function setContext(ImageAnnotationContext $context)
{
$this->context = $context;
}
/**
* @return ImageAnnotationContext
*/
public function getContext()
{
return $this->context;
}
/**
* If present, crop hints have completed successfully.
*
* @param CropHintsAnnotation $cropHintsAnnotation
*/
public function setCropHintsAnnotation(CropHintsAnnotation $cropHintsAnnotation)
{
$this->cropHintsAnnotation = $cropHintsAnnotation;
}
/**
* @return CropHintsAnnotation
*/
public function getCropHintsAnnotation()
{
return $this->cropHintsAnnotation;
}
/**
* If set, represents the error message for the operation. Note that filled-in
* image annotations are guaranteed to be correct, even when `error` is set.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* If present, face detection has completed successfully.
*
* @param FaceAnnotation[] $faceAnnotations
*/
public function setFaceAnnotations($faceAnnotations)
{
$this->faceAnnotations = $faceAnnotations;
}
/**
* @return FaceAnnotation[]
*/
public function getFaceAnnotations()
{
return $this->faceAnnotations;
}
/**
* If present, text (OCR) detection or document (OCR) text detection has
* completed successfully. This annotation provides the structural hierarchy
* for the OCR detected text.
*
* @param TextAnnotation $fullTextAnnotation
*/
public function setFullTextAnnotation(TextAnnotation $fullTextAnnotation)
{
$this->fullTextAnnotation = $fullTextAnnotation;
}
/**
* @return TextAnnotation
*/
public function getFullTextAnnotation()
{
return $this->fullTextAnnotation;
}
/**
* If present, image properties were extracted successfully.
*
* @param ImageProperties $imagePropertiesAnnotation
*/
public function setImagePropertiesAnnotation(ImageProperties $imagePropertiesAnnotation)
{
$this->imagePropertiesAnnotation = $imagePropertiesAnnotation;
}
/**
* @return ImageProperties
*/
public function getImagePropertiesAnnotation()
{
return $this->imagePropertiesAnnotation;
}
/**
* If present, label detection has completed successfully.
*
* @param EntityAnnotation[] $labelAnnotations
*/
public function setLabelAnnotations($labelAnnotations)
{
$this->labelAnnotations = $labelAnnotations;
}
/**
* @return EntityAnnotation[]
*/
public function getLabelAnnotations()
{
return $this->labelAnnotations;
}
/**
* If present, landmark detection has completed successfully.
*
* @param EntityAnnotation[] $landmarkAnnotations
*/
public function setLandmarkAnnotations($landmarkAnnotations)
{
$this->landmarkAnnotations = $landmarkAnnotations;
}
/**
* @return EntityAnnotation[]
*/
public function getLandmarkAnnotations()
{
return $this->landmarkAnnotations;
}
/**
* If present, localized object detection has completed successfully. This
* will be sorted descending by confidence score.
*
* @param LocalizedObjectAnnotation[] $localizedObjectAnnotations
*/
public function setLocalizedObjectAnnotations($localizedObjectAnnotations)
{
$this->localizedObjectAnnotations = $localizedObjectAnnotations;
}
/**
* @return LocalizedObjectAnnotation[]
*/
public function getLocalizedObjectAnnotations()
{
return $this->localizedObjectAnnotations;
}
/**
* If present, logo detection has completed successfully.
*
* @param EntityAnnotation[] $logoAnnotations
*/
public function setLogoAnnotations($logoAnnotations)
{
$this->logoAnnotations = $logoAnnotations;
}
/**
* @return EntityAnnotation[]
*/
public function getLogoAnnotations()
{
return $this->logoAnnotations;
}
/**
* If present, product search has completed successfully.
*
* @param ProductSearchResults $productSearchResults
*/
public function setProductSearchResults(ProductSearchResults $productSearchResults)
{
$this->productSearchResults = $productSearchResults;
}
/**
* @return ProductSearchResults
*/
public function getProductSearchResults()
{
return $this->productSearchResults;
}
/**
* If present, safe-search annotation has completed successfully.
*
* @param SafeSearchAnnotation $safeSearchAnnotation
*/
public function setSafeSearchAnnotation(SafeSearchAnnotation $safeSearchAnnotation)
{
$this->safeSearchAnnotation = $safeSearchAnnotation;
}
/**
* @return SafeSearchAnnotation
*/
public function getSafeSearchAnnotation()
{
return $this->safeSearchAnnotation;
}
/**
* If present, text (OCR) detection has completed successfully.
*
* @param EntityAnnotation[] $textAnnotations
*/
public function setTextAnnotations($textAnnotations)
{
$this->textAnnotations = $textAnnotations;
}
/**
* @return EntityAnnotation[]
*/
public function getTextAnnotations()
{
return $this->textAnnotations;
}
/**
* If present, web detection has completed successfully.
*
* @param WebDetection $webDetection
*/
public function setWebDetection(WebDetection $webDetection)
{
$this->webDetection = $webDetection;
}
/**
* @return WebDetection
*/
public function getWebDetection()
{
return $this->webDetection;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateImageResponse::class, 'Google_Service_Vision_AnnotateImageResponse');

View File

@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AsyncAnnotateFileRequest extends \Google\Collection
{
protected $collection_key = 'features';
protected $featuresType = Feature::class;
protected $featuresDataType = 'array';
protected $imageContextType = ImageContext::class;
protected $imageContextDataType = '';
protected $inputConfigType = InputConfig::class;
protected $inputConfigDataType = '';
protected $outputConfigType = OutputConfig::class;
protected $outputConfigDataType = '';
/**
* Required. Requested features.
*
* @param Feature[] $features
*/
public function setFeatures($features)
{
$this->features = $features;
}
/**
* @return Feature[]
*/
public function getFeatures()
{
return $this->features;
}
/**
* Additional context that may accompany the image(s) in the file.
*
* @param ImageContext $imageContext
*/
public function setImageContext(ImageContext $imageContext)
{
$this->imageContext = $imageContext;
}
/**
* @return ImageContext
*/
public function getImageContext()
{
return $this->imageContext;
}
/**
* Required. Information about the input file.
*
* @param InputConfig $inputConfig
*/
public function setInputConfig(InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* Required. The desired output location and metadata (e.g. format).
*
* @param OutputConfig $outputConfig
*/
public function setOutputConfig(OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsyncAnnotateFileRequest::class, 'Google_Service_Vision_AsyncAnnotateFileRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AsyncAnnotateFileResponse extends \Google\Model
{
protected $outputConfigType = OutputConfig::class;
protected $outputConfigDataType = '';
/**
* The output location and metadata from AsyncAnnotateFileRequest.
*
* @param OutputConfig $outputConfig
*/
public function setOutputConfig(OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsyncAnnotateFileResponse::class, 'Google_Service_Vision_AsyncAnnotateFileResponse');

View File

@@ -0,0 +1,105 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AsyncBatchAnnotateFilesRequest extends \Google\Collection
{
protected $collection_key = 'requests';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @var string[]
*/
public $labels;
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @var string
*/
public $parent;
protected $requestsType = AsyncAnnotateFileRequest::class;
protected $requestsDataType = 'array';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. Individual async file annotation requests for this batch.
*
* @param AsyncAnnotateFileRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return AsyncAnnotateFileRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsyncBatchAnnotateFilesRequest::class, 'Google_Service_Vision_AsyncBatchAnnotateFilesRequest');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AsyncBatchAnnotateFilesResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = AsyncAnnotateFileResponse::class;
protected $responsesDataType = 'array';
/**
* The list of file annotation responses, one for each request in
* AsyncBatchAnnotateFilesRequest.
*
* @param AsyncAnnotateFileResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return AsyncAnnotateFileResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsyncBatchAnnotateFilesResponse::class, 'Google_Service_Vision_AsyncBatchAnnotateFilesResponse');

View File

@@ -0,0 +1,123 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AsyncBatchAnnotateImagesRequest extends \Google\Collection
{
protected $collection_key = 'requests';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @var string[]
*/
public $labels;
protected $outputConfigType = OutputConfig::class;
protected $outputConfigDataType = '';
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @var string
*/
public $parent;
protected $requestsType = AnnotateImageRequest::class;
protected $requestsDataType = 'array';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Required. The desired output location and metadata (e.g. format).
*
* @param OutputConfig $outputConfig
*/
public function setOutputConfig(OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. Individual image annotation requests for this batch.
*
* @param AnnotateImageRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return AnnotateImageRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsyncBatchAnnotateImagesRequest::class, 'Google_Service_Vision_AsyncBatchAnnotateImagesRequest');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class AsyncBatchAnnotateImagesResponse extends \Google\Model
{
protected $outputConfigType = OutputConfig::class;
protected $outputConfigDataType = '';
/**
* The output location and metadata from AsyncBatchAnnotateImagesRequest.
*
* @param OutputConfig $outputConfig
*/
public function setOutputConfig(OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AsyncBatchAnnotateImagesResponse::class, 'Google_Service_Vision_AsyncBatchAnnotateImagesResponse');

View File

@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class BatchAnnotateFilesRequest extends \Google\Collection
{
protected $collection_key = 'requests';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @var string[]
*/
public $labels;
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @var string
*/
public $parent;
protected $requestsType = AnnotateFileRequest::class;
protected $requestsDataType = 'array';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. The list of file annotation requests. Right now we support only
* one AnnotateFileRequest in BatchAnnotateFilesRequest.
*
* @param AnnotateFileRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return AnnotateFileRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchAnnotateFilesRequest::class, 'Google_Service_Vision_BatchAnnotateFilesRequest');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class BatchAnnotateFilesResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = AnnotateFileResponse::class;
protected $responsesDataType = 'array';
/**
* The list of file annotation responses, each response corresponding to each
* AnnotateFileRequest in BatchAnnotateFilesRequest.
*
* @param AnnotateFileResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return AnnotateFileResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchAnnotateFilesResponse::class, 'Google_Service_Vision_BatchAnnotateFilesResponse');

View File

@@ -0,0 +1,105 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class BatchAnnotateImagesRequest extends \Google\Collection
{
protected $collection_key = 'requests';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @var string[]
*/
public $labels;
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @var string
*/
public $parent;
protected $requestsType = AnnotateImageRequest::class;
protected $requestsDataType = 'array';
/**
* Optional. The labels with user-defined metadata for the request. Label keys
* and values can be no longer than 63 characters (Unicode codepoints), can
* only contain lowercase letters, numeric characters, underscores and dashes.
* International characters are allowed. Label values are optional. Label keys
* must start with a letter.
*
* @param string[] $labels
*/
public function setLabels($labels)
{
$this->labels = $labels;
}
/**
* @return string[]
*/
public function getLabels()
{
return $this->labels;
}
/**
* Optional. Target project and location to make a call. Format:
* `projects/{project-id}/locations/{location-id}`. If no parent is specified,
* a region will be chosen automatically. Supported location-ids: `us`: USA
* country only, `asia`: East asia areas, like Japan, Taiwan, `eu`: The
* European Union. Example: `projects/project-A/locations/eu`.
*
* @param string $parent
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* Required. Individual image annotation requests for this batch.
*
* @param AnnotateImageRequest[] $requests
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return AnnotateImageRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchAnnotateImagesRequest::class, 'Google_Service_Vision_BatchAnnotateImagesRequest');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class BatchAnnotateImagesResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = AnnotateImageResponse::class;
protected $responsesDataType = 'array';
/**
* Individual responses to image annotation requests within the batch.
*
* @param AnnotateImageResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return AnnotateImageResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchAnnotateImagesResponse::class, 'Google_Service_Vision_BatchAnnotateImagesResponse');

View File

@@ -0,0 +1,119 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class BatchOperationMetadata extends \Google\Model
{
/**
* Invalid.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Request is actively being processed.
*/
public const STATE_PROCESSING = 'PROCESSING';
/**
* The request is done and at least one item has been successfully processed.
*/
public const STATE_SUCCESSFUL = 'SUCCESSFUL';
/**
* The request is done and no item has been successfully processed.
*/
public const STATE_FAILED = 'FAILED';
/**
* The request is done after the longrunning.Operations.CancelOperation has
* been called by the user. Any records that were processed before the cancel
* command are output as specified in the request.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The time when the batch request is finished and
* google.longrunning.Operation.done is set to true.
*
* @var string
*/
public $endTime;
/**
* The current state of the batch operation.
*
* @var string
*/
public $state;
/**
* The time when the batch request was submitted to the server.
*
* @var string
*/
public $submitTime;
/**
* The time when the batch request is finished and
* google.longrunning.Operation.done is set to true.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* The current state of the batch operation.
*
* Accepted values: STATE_UNSPECIFIED, PROCESSING, SUCCESSFUL, FAILED,
* CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The time when the batch request was submitted to the server.
*
* @param string $submitTime
*/
public function setSubmitTime($submitTime)
{
$this->submitTime = $submitTime;
}
/**
* @return string
*/
public function getSubmitTime()
{
return $this->submitTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchOperationMetadata::class, 'Google_Service_Vision_BatchOperationMetadata');

View File

@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class Block extends \Google\Collection
{
/**
* Unknown block type.
*/
public const BLOCK_TYPE_UNKNOWN = 'UNKNOWN';
/**
* Regular text block.
*/
public const BLOCK_TYPE_TEXT = 'TEXT';
/**
* Table block.
*/
public const BLOCK_TYPE_TABLE = 'TABLE';
/**
* Image block.
*/
public const BLOCK_TYPE_PICTURE = 'PICTURE';
/**
* Horizontal/vertical line box.
*/
public const BLOCK_TYPE_RULER = 'RULER';
/**
* Barcode block.
*/
public const BLOCK_TYPE_BARCODE = 'BARCODE';
protected $collection_key = 'paragraphs';
/**
* Detected block type (text, image etc) for this block.
*
* @var string
*/
public $blockType;
protected $boundingBoxType = BoundingPoly::class;
protected $boundingBoxDataType = '';
/**
* Confidence of the OCR results on the block. Range [0, 1].
*
* @var float
*/
public $confidence;
protected $paragraphsType = Paragraph::class;
protected $paragraphsDataType = 'array';
protected $propertyType = TextProperty::class;
protected $propertyDataType = '';
/**
* Detected block type (text, image etc) for this block.
*
* Accepted values: UNKNOWN, TEXT, TABLE, PICTURE, RULER, BARCODE
*
* @param self::BLOCK_TYPE_* $blockType
*/
public function setBlockType($blockType)
{
$this->blockType = $blockType;
}
/**
* @return self::BLOCK_TYPE_*
*/
public function getBlockType()
{
return $this->blockType;
}
/**
* The bounding box for the block. The vertices are in the order of top-left,
* top-right, bottom-right, bottom-left. When a rotation of the bounding box
* is detected the rotation is represented as around the top-left corner as
* defined when the text is read in the 'natural' orientation. For example: *
* when the text is horizontal it might look like: 0----1 | | 3----2 * when
* it's rotated 180 degrees around the top-left corner it becomes: 2----3 | |
* 1----0 and the vertex order will still be (0, 1, 2, 3).
*
* @param BoundingPoly $boundingBox
*/
public function setBoundingBox(BoundingPoly $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return BoundingPoly
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* Confidence of the OCR results on the block. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* List of paragraphs in this block (if this blocks is of type text).
*
* @param Paragraph[] $paragraphs
*/
public function setParagraphs($paragraphs)
{
$this->paragraphs = $paragraphs;
}
/**
* @return Paragraph[]
*/
public function getParagraphs()
{
return $this->paragraphs;
}
/**
* Additional information detected for the block.
*
* @param TextProperty $property
*/
public function setProperty(TextProperty $property)
{
$this->property = $property;
}
/**
* @return TextProperty
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Block::class, 'Google_Service_Vision_Block');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class BoundingPoly extends \Google\Collection
{
protected $collection_key = 'vertices';
protected $normalizedVerticesType = NormalizedVertex::class;
protected $normalizedVerticesDataType = 'array';
protected $verticesType = Vertex::class;
protected $verticesDataType = 'array';
/**
* The bounding polygon normalized vertices.
*
* @param NormalizedVertex[] $normalizedVertices
*/
public function setNormalizedVertices($normalizedVertices)
{
$this->normalizedVertices = $normalizedVertices;
}
/**
* @return NormalizedVertex[]
*/
public function getNormalizedVertices()
{
return $this->normalizedVertices;
}
/**
* The bounding polygon vertices.
*
* @param Vertex[] $vertices
*/
public function setVertices($vertices)
{
$this->vertices = $vertices;
}
/**
* @return Vertex[]
*/
public function getVertices()
{
return $this->vertices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BoundingPoly::class, 'Google_Service_Vision_BoundingPoly');

View File

@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class CancelOperationRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CancelOperationRequest::class, 'Google_Service_Vision_CancelOperationRequest');

View File

@@ -0,0 +1,130 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class Color extends \Google\Model
{
/**
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation: `pixel color = alpha *
* (this color) + (1.0 - alpha) * (background color)` This means that a value
* of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to
* a completely transparent color. This uses a wrapper message rather than a
* simple float scalar so that it is possible to distinguish between a default
* value and the value being unset. If omitted, this color object is rendered
* as a solid color (as if the alpha value had been explicitly given a value
* of 1.0).
*
* @var float
*/
public $alpha;
/**
* The amount of blue in the color as a value in the interval [0, 1].
*
* @var float
*/
public $blue;
/**
* The amount of green in the color as a value in the interval [0, 1].
*
* @var float
*/
public $green;
/**
* The amount of red in the color as a value in the interval [0, 1].
*
* @var float
*/
public $red;
/**
* The fraction of this color that should be applied to the pixel. That is,
* the final pixel color is defined by the equation: `pixel color = alpha *
* (this color) + (1.0 - alpha) * (background color)` This means that a value
* of 1.0 corresponds to a solid color, whereas a value of 0.0 corresponds to
* a completely transparent color. This uses a wrapper message rather than a
* simple float scalar so that it is possible to distinguish between a default
* value and the value being unset. If omitted, this color object is rendered
* as a solid color (as if the alpha value had been explicitly given a value
* of 1.0).
*
* @param float $alpha
*/
public function setAlpha($alpha)
{
$this->alpha = $alpha;
}
/**
* @return float
*/
public function getAlpha()
{
return $this->alpha;
}
/**
* The amount of blue in the color as a value in the interval [0, 1].
*
* @param float $blue
*/
public function setBlue($blue)
{
$this->blue = $blue;
}
/**
* @return float
*/
public function getBlue()
{
return $this->blue;
}
/**
* The amount of green in the color as a value in the interval [0, 1].
*
* @param float $green
*/
public function setGreen($green)
{
$this->green = $green;
}
/**
* @return float
*/
public function getGreen()
{
return $this->green;
}
/**
* The amount of red in the color as a value in the interval [0, 1].
*
* @param float $red
*/
public function setRed($red)
{
$this->red = $red;
}
/**
* @return float
*/
public function getRed()
{
return $this->red;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Color::class, 'Google_Service_Vision_Color');

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class ColorInfo extends \Google\Model
{
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* The fraction of pixels the color occupies in the image. Value in range [0,
* 1].
*
* @var float
*/
public $pixelFraction;
/**
* Image-specific score for this color. Value in range [0, 1].
*
* @var float
*/
public $score;
/**
* RGB components of the color.
*
* @param Color $color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* The fraction of pixels the color occupies in the image. Value in range [0,
* 1].
*
* @param float $pixelFraction
*/
public function setPixelFraction($pixelFraction)
{
$this->pixelFraction = $pixelFraction;
}
/**
* @return float
*/
public function getPixelFraction()
{
return $this->pixelFraction;
}
/**
* Image-specific score for this color. Value in range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ColorInfo::class, 'Google_Service_Vision_ColorInfo');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class CropHint extends \Google\Model
{
protected $boundingPolyType = BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* Confidence of this being a salient region. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* Fraction of importance of this salient region with respect to the original
* image.
*
* @var float
*/
public $importanceFraction;
/**
* The bounding polygon for the crop region. The coordinates of the bounding
* box are in the original image's scale.
*
* @param BoundingPoly $boundingPoly
*/
public function setBoundingPoly(BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* Confidence of this being a salient region. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Fraction of importance of this salient region with respect to the original
* image.
*
* @param float $importanceFraction
*/
public function setImportanceFraction($importanceFraction)
{
$this->importanceFraction = $importanceFraction;
}
/**
* @return float
*/
public function getImportanceFraction()
{
return $this->importanceFraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CropHint::class, 'Google_Service_Vision_CropHint');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class CropHintsAnnotation extends \Google\Collection
{
protected $collection_key = 'cropHints';
protected $cropHintsType = CropHint::class;
protected $cropHintsDataType = 'array';
/**
* Crop hint results.
*
* @param CropHint[] $cropHints
*/
public function setCropHints($cropHints)
{
$this->cropHints = $cropHints;
}
/**
* @return CropHint[]
*/
public function getCropHints()
{
return $this->cropHints;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CropHintsAnnotation::class, 'Google_Service_Vision_CropHintsAnnotation');

View File

@@ -0,0 +1,57 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class CropHintsParams extends \Google\Collection
{
protected $collection_key = 'aspectRatios';
/**
* Aspect ratios in floats, representing the ratio of the width to the height
* of the image. For example, if the desired aspect ratio is 4/3, the
* corresponding float value should be 1.33333. If not specified, the best
* possible crop is returned. The number of provided aspect ratios is limited
* to a maximum of 16; any aspect ratios provided after the 16th are ignored.
*
* @var float[]
*/
public $aspectRatios;
/**
* Aspect ratios in floats, representing the ratio of the width to the height
* of the image. For example, if the desired aspect ratio is 4/3, the
* corresponding float value should be 1.33333. If not specified, the best
* possible crop is returned. The number of provided aspect ratios is limited
* to a maximum of 16; any aspect ratios provided after the 16th are ignored.
*
* @param float[] $aspectRatios
*/
public function setAspectRatios($aspectRatios)
{
$this->aspectRatios = $aspectRatios;
}
/**
* @return float[]
*/
public function getAspectRatios()
{
return $this->aspectRatios;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CropHintsParams::class, 'Google_Service_Vision_CropHintsParams');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class DetectedBreak extends \Google\Model
{
/**
* Unknown break label type.
*/
public const TYPE_UNKNOWN = 'UNKNOWN';
/**
* Regular space.
*/
public const TYPE_SPACE = 'SPACE';
/**
* Sure space (very wide).
*/
public const TYPE_SURE_SPACE = 'SURE_SPACE';
/**
* Line-wrapping break.
*/
public const TYPE_EOL_SURE_SPACE = 'EOL_SURE_SPACE';
/**
* End-line hyphen that is not present in text; does not co-occur with
* `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
*/
public const TYPE_HYPHEN = 'HYPHEN';
/**
* Line break that ends a paragraph.
*/
public const TYPE_LINE_BREAK = 'LINE_BREAK';
/**
* True if break prepends the element.
*
* @var bool
*/
public $isPrefix;
/**
* Detected break type.
*
* @var string
*/
public $type;
/**
* True if break prepends the element.
*
* @param bool $isPrefix
*/
public function setIsPrefix($isPrefix)
{
$this->isPrefix = $isPrefix;
}
/**
* @return bool
*/
public function getIsPrefix()
{
return $this->isPrefix;
}
/**
* Detected break type.
*
* Accepted values: UNKNOWN, SPACE, SURE_SPACE, EOL_SURE_SPACE, HYPHEN,
* LINE_BREAK
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DetectedBreak::class, 'Google_Service_Vision_DetectedBreak');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class DetectedLanguage extends \Google\Model
{
/**
* Confidence of detected language. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Confidence of detected language. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DetectedLanguage::class, 'Google_Service_Vision_DetectedLanguage');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class DominantColorsAnnotation extends \Google\Collection
{
protected $collection_key = 'colors';
protected $colorsType = ColorInfo::class;
protected $colorsDataType = 'array';
/**
* RGB color values with their score and pixel fraction.
*
* @param ColorInfo[] $colors
*/
public function setColors($colors)
{
$this->colors = $colors;
}
/**
* @return ColorInfo[]
*/
public function getColors()
{
return $this->colors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DominantColorsAnnotation::class, 'Google_Service_Vision_DominantColorsAnnotation');

View File

@@ -0,0 +1,240 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class EntityAnnotation extends \Google\Collection
{
protected $collection_key = 'properties';
protected $boundingPolyType = BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* **Deprecated. Use `score` instead.** The accuracy of the entity detection
* in an image. For example, for an image in which the "Eiffel Tower" entity
* is detected, this field represents the confidence that there is a tower in
* the query image. Range [0, 1].
*
* @deprecated
* @var float
*/
public $confidence;
/**
* Entity textual description, expressed in its `locale` language.
*
* @var string
*/
public $description;
/**
* The language code for the locale in which the entity textual `description`
* is expressed.
*
* @var string
*/
public $locale;
protected $locationsType = LocationInfo::class;
protected $locationsDataType = 'array';
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @var string
*/
public $mid;
protected $propertiesType = Property::class;
protected $propertiesDataType = 'array';
/**
* Overall score of the result. Range [0, 1].
*
* @var float
*/
public $score;
/**
* The relevancy of the ICA (Image Content Annotation) label to the image. For
* example, the relevancy of "tower" is likely higher to an image containing
* the detected "Eiffel Tower" than to an image containing a detected distant
* towering building, even though the confidence that there is a tower in each
* image may be the same. Range [0, 1].
*
* @var float
*/
public $topicality;
/**
* Image region to which this entity belongs. Not produced for
* `LABEL_DETECTION` features.
*
* @param BoundingPoly $boundingPoly
*/
public function setBoundingPoly(BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* **Deprecated. Use `score` instead.** The accuracy of the entity detection
* in an image. For example, for an image in which the "Eiffel Tower" entity
* is detected, this field represents the confidence that there is a tower in
* the query image. Range [0, 1].
*
* @deprecated
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @deprecated
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Entity textual description, expressed in its `locale` language.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The language code for the locale in which the entity textual `description`
* is expressed.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The location information for the detected entity. Multiple `LocationInfo`
* elements can be present because one location may indicate the location of
* the scene in the image, and another location may indicate the location of
* the place where the image was taken. Location information is usually
* present for landmarks.
*
* @param LocationInfo[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return LocationInfo[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @param string $mid
*/
public function setMid($mid)
{
$this->mid = $mid;
}
/**
* @return string
*/
public function getMid()
{
return $this->mid;
}
/**
* Some entities may have optional user-supplied `Property` (name/value)
* fields, such a score or string that qualifies the entity.
*
* @param Property[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return Property[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* Overall score of the result. Range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
/**
* The relevancy of the ICA (Image Content Annotation) label to the image. For
* example, the relevancy of "tower" is likely higher to an image containing
* the detected "Eiffel Tower" than to an image containing a detected distant
* towering building, even though the confidence that there is a tower in each
* image may be the same. Range [0, 1].
*
* @param float $topicality
*/
public function setTopicality($topicality)
{
$this->topicality = $topicality;
}
/**
* @return float
*/
public function getTopicality()
{
return $this->topicality;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityAnnotation::class, 'Google_Service_Vision_EntityAnnotation');

View File

@@ -0,0 +1,553 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class FaceAnnotation extends \Google\Collection
{
/**
* Unknown likelihood.
*/
public const ANGER_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const ANGER_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const ANGER_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const ANGER_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const ANGER_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const ANGER_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const BLURRED_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const BLURRED_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const BLURRED_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const BLURRED_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const BLURRED_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const BLURRED_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const HEADWEAR_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const HEADWEAR_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const HEADWEAR_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const HEADWEAR_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const HEADWEAR_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const HEADWEAR_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const JOY_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const JOY_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const JOY_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const JOY_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const JOY_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const JOY_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SORROW_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SORROW_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SORROW_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SORROW_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SORROW_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SORROW_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SURPRISE_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SURPRISE_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SURPRISE_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SURPRISE_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SURPRISE_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SURPRISE_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const UNDER_EXPOSED_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const UNDER_EXPOSED_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
protected $collection_key = 'landmarks';
/**
* Anger likelihood.
*
* @var string
*/
public $angerLikelihood;
/**
* Blurred likelihood.
*
* @var string
*/
public $blurredLikelihood;
protected $boundingPolyType = BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* Detection confidence. Range [0, 1].
*
* @var float
*/
public $detectionConfidence;
protected $fdBoundingPolyType = BoundingPoly::class;
protected $fdBoundingPolyDataType = '';
/**
* Headwear likelihood.
*
* @var string
*/
public $headwearLikelihood;
/**
* Joy likelihood.
*
* @var string
*/
public $joyLikelihood;
/**
* Face landmarking confidence. Range [0, 1].
*
* @var float
*/
public $landmarkingConfidence;
protected $landmarksType = Landmark::class;
protected $landmarksDataType = 'array';
/**
* Yaw angle, which indicates the leftward/rightward angle that the face is
* pointing relative to the vertical plane perpendicular to the image. Range
* [-180,180].
*
* @var float
*/
public $panAngle;
/**
* Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
* of the face relative to the image vertical about the axis perpendicular to
* the face. Range [-180,180].
*
* @var float
*/
public $rollAngle;
/**
* Sorrow likelihood.
*
* @var string
*/
public $sorrowLikelihood;
/**
* Surprise likelihood.
*
* @var string
*/
public $surpriseLikelihood;
/**
* Pitch angle, which indicates the upwards/downwards angle that the face is
* pointing relative to the image's horizontal plane. Range [-180,180].
*
* @var float
*/
public $tiltAngle;
/**
* Under-exposed likelihood.
*
* @var string
*/
public $underExposedLikelihood;
/**
* Anger likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::ANGER_LIKELIHOOD_* $angerLikelihood
*/
public function setAngerLikelihood($angerLikelihood)
{
$this->angerLikelihood = $angerLikelihood;
}
/**
* @return self::ANGER_LIKELIHOOD_*
*/
public function getAngerLikelihood()
{
return $this->angerLikelihood;
}
/**
* Blurred likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::BLURRED_LIKELIHOOD_* $blurredLikelihood
*/
public function setBlurredLikelihood($blurredLikelihood)
{
$this->blurredLikelihood = $blurredLikelihood;
}
/**
* @return self::BLURRED_LIKELIHOOD_*
*/
public function getBlurredLikelihood()
{
return $this->blurredLikelihood;
}
/**
* The bounding polygon around the face. The coordinates of the bounding box
* are in the original image's scale. The bounding box is computed to "frame"
* the face in accordance with human expectations. It is based on the
* landmarker results. Note that one or more x and/or y coordinates may not be
* generated in the `BoundingPoly` (the polygon will be unbounded) if only a
* partial face appears in the image to be annotated.
*
* @param BoundingPoly $boundingPoly
*/
public function setBoundingPoly(BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* Detection confidence. Range [0, 1].
*
* @param float $detectionConfidence
*/
public function setDetectionConfidence($detectionConfidence)
{
$this->detectionConfidence = $detectionConfidence;
}
/**
* @return float
*/
public function getDetectionConfidence()
{
return $this->detectionConfidence;
}
/**
* The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`,
* and encloses only the skin part of the face. Typically, it is used to
* eliminate the face from any image analysis that detects the "amount of
* skin" visible in an image. It is not based on the landmarker results, only
* on the initial face detection, hence the fd (face detection) prefix.
*
* @param BoundingPoly $fdBoundingPoly
*/
public function setFdBoundingPoly(BoundingPoly $fdBoundingPoly)
{
$this->fdBoundingPoly = $fdBoundingPoly;
}
/**
* @return BoundingPoly
*/
public function getFdBoundingPoly()
{
return $this->fdBoundingPoly;
}
/**
* Headwear likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::HEADWEAR_LIKELIHOOD_* $headwearLikelihood
*/
public function setHeadwearLikelihood($headwearLikelihood)
{
$this->headwearLikelihood = $headwearLikelihood;
}
/**
* @return self::HEADWEAR_LIKELIHOOD_*
*/
public function getHeadwearLikelihood()
{
return $this->headwearLikelihood;
}
/**
* Joy likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::JOY_LIKELIHOOD_* $joyLikelihood
*/
public function setJoyLikelihood($joyLikelihood)
{
$this->joyLikelihood = $joyLikelihood;
}
/**
* @return self::JOY_LIKELIHOOD_*
*/
public function getJoyLikelihood()
{
return $this->joyLikelihood;
}
/**
* Face landmarking confidence. Range [0, 1].
*
* @param float $landmarkingConfidence
*/
public function setLandmarkingConfidence($landmarkingConfidence)
{
$this->landmarkingConfidence = $landmarkingConfidence;
}
/**
* @return float
*/
public function getLandmarkingConfidence()
{
return $this->landmarkingConfidence;
}
/**
* Detected face landmarks.
*
* @param Landmark[] $landmarks
*/
public function setLandmarks($landmarks)
{
$this->landmarks = $landmarks;
}
/**
* @return Landmark[]
*/
public function getLandmarks()
{
return $this->landmarks;
}
/**
* Yaw angle, which indicates the leftward/rightward angle that the face is
* pointing relative to the vertical plane perpendicular to the image. Range
* [-180,180].
*
* @param float $panAngle
*/
public function setPanAngle($panAngle)
{
$this->panAngle = $panAngle;
}
/**
* @return float
*/
public function getPanAngle()
{
return $this->panAngle;
}
/**
* Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
* of the face relative to the image vertical about the axis perpendicular to
* the face. Range [-180,180].
*
* @param float $rollAngle
*/
public function setRollAngle($rollAngle)
{
$this->rollAngle = $rollAngle;
}
/**
* @return float
*/
public function getRollAngle()
{
return $this->rollAngle;
}
/**
* Sorrow likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SORROW_LIKELIHOOD_* $sorrowLikelihood
*/
public function setSorrowLikelihood($sorrowLikelihood)
{
$this->sorrowLikelihood = $sorrowLikelihood;
}
/**
* @return self::SORROW_LIKELIHOOD_*
*/
public function getSorrowLikelihood()
{
return $this->sorrowLikelihood;
}
/**
* Surprise likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SURPRISE_LIKELIHOOD_* $surpriseLikelihood
*/
public function setSurpriseLikelihood($surpriseLikelihood)
{
$this->surpriseLikelihood = $surpriseLikelihood;
}
/**
* @return self::SURPRISE_LIKELIHOOD_*
*/
public function getSurpriseLikelihood()
{
return $this->surpriseLikelihood;
}
/**
* Pitch angle, which indicates the upwards/downwards angle that the face is
* pointing relative to the image's horizontal plane. Range [-180,180].
*
* @param float $tiltAngle
*/
public function setTiltAngle($tiltAngle)
{
$this->tiltAngle = $tiltAngle;
}
/**
* @return float
*/
public function getTiltAngle()
{
return $this->tiltAngle;
}
/**
* Under-exposed likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::UNDER_EXPOSED_LIKELIHOOD_* $underExposedLikelihood
*/
public function setUnderExposedLikelihood($underExposedLikelihood)
{
$this->underExposedLikelihood = $underExposedLikelihood;
}
/**
* @return self::UNDER_EXPOSED_LIKELIHOOD_*
*/
public function getUnderExposedLikelihood()
{
return $this->underExposedLikelihood;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FaceAnnotation::class, 'Google_Service_Vision_FaceAnnotation');

View File

@@ -0,0 +1,160 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class Feature extends \Google\Model
{
/**
* Unspecified feature type.
*/
public const TYPE_TYPE_UNSPECIFIED = 'TYPE_UNSPECIFIED';
/**
* Run face detection.
*/
public const TYPE_FACE_DETECTION = 'FACE_DETECTION';
/**
* Run landmark detection.
*/
public const TYPE_LANDMARK_DETECTION = 'LANDMARK_DETECTION';
/**
* Run logo detection.
*/
public const TYPE_LOGO_DETECTION = 'LOGO_DETECTION';
/**
* Run label detection.
*/
public const TYPE_LABEL_DETECTION = 'LABEL_DETECTION';
/**
* Run text detection / optical character recognition (OCR). Text detection is
* optimized for areas of text within a larger image; if the image is a
* document, use `DOCUMENT_TEXT_DETECTION` instead.
*/
public const TYPE_TEXT_DETECTION = 'TEXT_DETECTION';
/**
* Run dense text document OCR. Takes precedence when both
* `DOCUMENT_TEXT_DETECTION` and `TEXT_DETECTION` are present.
*/
public const TYPE_DOCUMENT_TEXT_DETECTION = 'DOCUMENT_TEXT_DETECTION';
/**
* Run Safe Search to detect potentially unsafe or undesirable content.
*/
public const TYPE_SAFE_SEARCH_DETECTION = 'SAFE_SEARCH_DETECTION';
/**
* Compute a set of image properties, such as the image's dominant colors.
*/
public const TYPE_IMAGE_PROPERTIES = 'IMAGE_PROPERTIES';
/**
* Run crop hints.
*/
public const TYPE_CROP_HINTS = 'CROP_HINTS';
/**
* Run web detection.
*/
public const TYPE_WEB_DETECTION = 'WEB_DETECTION';
/**
* Run Product Search.
*/
public const TYPE_PRODUCT_SEARCH = 'PRODUCT_SEARCH';
/**
* Run localizer for object detection.
*/
public const TYPE_OBJECT_LOCALIZATION = 'OBJECT_LOCALIZATION';
/**
* Maximum number of results of this type. Does not apply to `TEXT_DETECTION`,
* `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
*
* @var int
*/
public $maxResults;
/**
* Model to use for the feature. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest". `DOCUMENT_TEXT_DETECTION` and
* `TEXT_DETECTION` also support "builtin/rc" for the latest release
* candidate.
*
* @var string
*/
public $model;
/**
* The feature type.
*
* @var string
*/
public $type;
/**
* Maximum number of results of this type. Does not apply to `TEXT_DETECTION`,
* `DOCUMENT_TEXT_DETECTION`, or `CROP_HINTS`.
*
* @param int $maxResults
*/
public function setMaxResults($maxResults)
{
$this->maxResults = $maxResults;
}
/**
* @return int
*/
public function getMaxResults()
{
return $this->maxResults;
}
/**
* Model to use for the feature. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest". `DOCUMENT_TEXT_DETECTION` and
* `TEXT_DETECTION` also support "builtin/rc" for the latest release
* candidate.
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* The feature type.
*
* Accepted values: TYPE_UNSPECIFIED, FACE_DETECTION, LANDMARK_DETECTION,
* LOGO_DETECTION, LABEL_DETECTION, TEXT_DETECTION, DOCUMENT_TEXT_DETECTION,
* SAFE_SEARCH_DETECTION, IMAGE_PROPERTIES, CROP_HINTS, WEB_DETECTION,
* PRODUCT_SEARCH, OBJECT_LOCALIZATION
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Feature::class, 'Google_Service_Vision_Feature');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GcsDestination extends \Google\Model
{
/**
* Google Cloud Storage URI prefix where the results will be stored. Results
* will be in JSON format and preceded by its corresponding input URI prefix.
* This field can either represent a gcs file prefix or gcs directory. In
* either case, the uri should be unique because in order to get all of the
* output files, you will need to do a wildcard gcs search on the uri prefix
* you provide. Examples: * File Prefix: gs://bucket-name/here/filenameprefix
* The output files will be created in gs://bucket-name/here/ and the names of
* the output files will begin with "filenameprefix". * Directory Prefix:
* gs://bucket-name/some/location/ The output files will be created in
* gs://bucket-name/some/location/ and the names of the output files could be
* anything because there was no filename prefix specified. If multiple
* outputs, each response is still AnnotateFileResponse, each of which
* contains some subset of the full list of AnnotateImageResponse. Multiple
* outputs can happen if, for example, the output JSON is too large and
* overflows into multiple sharded files.
*
* @var string
*/
public $uri;
/**
* Google Cloud Storage URI prefix where the results will be stored. Results
* will be in JSON format and preceded by its corresponding input URI prefix.
* This field can either represent a gcs file prefix or gcs directory. In
* either case, the uri should be unique because in order to get all of the
* output files, you will need to do a wildcard gcs search on the uri prefix
* you provide. Examples: * File Prefix: gs://bucket-name/here/filenameprefix
* The output files will be created in gs://bucket-name/here/ and the names of
* the output files will begin with "filenameprefix". * Directory Prefix:
* gs://bucket-name/some/location/ The output files will be created in
* gs://bucket-name/some/location/ and the names of the output files could be
* anything because there was no filename prefix specified. If multiple
* outputs, each response is still AnnotateFileResponse, each of which
* contains some subset of the full list of AnnotateImageResponse. Multiple
* outputs can happen if, for example, the output JSON is too large and
* overflows into multiple sharded files.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcsDestination::class, 'Google_Service_Vision_GcsDestination');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GcsSource extends \Google\Model
{
/**
* Google Cloud Storage URI for the input file. This must only be a Google
* Cloud Storage object. Wildcards are not currently supported.
*
* @var string
*/
public $uri;
/**
* Google Cloud Storage URI for the input file. This must only be a Google
* Cloud Storage object. Wildcards are not currently supported.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GcsSource::class, 'Google_Service_Vision_GcsSource');

View File

@@ -0,0 +1,105 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1AnnotateFileResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $errorType = Status::class;
protected $errorDataType = '';
protected $inputConfigType = GoogleCloudVisionV1p1beta1InputConfig::class;
protected $inputConfigDataType = '';
protected $responsesType = GoogleCloudVisionV1p1beta1AnnotateImageResponse::class;
protected $responsesDataType = 'array';
/**
* This field gives the total number of pages in the file.
*
* @var int
*/
public $totalPages;
/**
* If set, represents the error message for the failed request. The
* `responses` field will not be set in this case.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Information about the file for which this response is generated.
*
* @param GoogleCloudVisionV1p1beta1InputConfig $inputConfig
*/
public function setInputConfig(GoogleCloudVisionV1p1beta1InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return GoogleCloudVisionV1p1beta1InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* Individual responses to images found within the file. This field will be
* empty if the `error` field is set.
*
* @param GoogleCloudVisionV1p1beta1AnnotateImageResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return GoogleCloudVisionV1p1beta1AnnotateImageResponse[]
*/
public function getResponses()
{
return $this->responses;
}
/**
* This field gives the total number of pages in the file.
*
* @param int $totalPages
*/
public function setTotalPages($totalPages)
{
$this->totalPages = $totalPages;
}
/**
* @return int
*/
public function getTotalPages()
{
return $this->totalPages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1AnnotateFileResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1AnnotateFileResponse');

View File

@@ -0,0 +1,284 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1AnnotateImageResponse extends \Google\Collection
{
protected $collection_key = 'textAnnotations';
protected $contextType = GoogleCloudVisionV1p1beta1ImageAnnotationContext::class;
protected $contextDataType = '';
protected $cropHintsAnnotationType = GoogleCloudVisionV1p1beta1CropHintsAnnotation::class;
protected $cropHintsAnnotationDataType = '';
protected $errorType = Status::class;
protected $errorDataType = '';
protected $faceAnnotationsType = GoogleCloudVisionV1p1beta1FaceAnnotation::class;
protected $faceAnnotationsDataType = 'array';
protected $fullTextAnnotationType = GoogleCloudVisionV1p1beta1TextAnnotation::class;
protected $fullTextAnnotationDataType = '';
protected $imagePropertiesAnnotationType = GoogleCloudVisionV1p1beta1ImageProperties::class;
protected $imagePropertiesAnnotationDataType = '';
protected $labelAnnotationsType = GoogleCloudVisionV1p1beta1EntityAnnotation::class;
protected $labelAnnotationsDataType = 'array';
protected $landmarkAnnotationsType = GoogleCloudVisionV1p1beta1EntityAnnotation::class;
protected $landmarkAnnotationsDataType = 'array';
protected $localizedObjectAnnotationsType = GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation::class;
protected $localizedObjectAnnotationsDataType = 'array';
protected $logoAnnotationsType = GoogleCloudVisionV1p1beta1EntityAnnotation::class;
protected $logoAnnotationsDataType = 'array';
protected $productSearchResultsType = GoogleCloudVisionV1p1beta1ProductSearchResults::class;
protected $productSearchResultsDataType = '';
protected $safeSearchAnnotationType = GoogleCloudVisionV1p1beta1SafeSearchAnnotation::class;
protected $safeSearchAnnotationDataType = '';
protected $textAnnotationsType = GoogleCloudVisionV1p1beta1EntityAnnotation::class;
protected $textAnnotationsDataType = 'array';
protected $webDetectionType = GoogleCloudVisionV1p1beta1WebDetection::class;
protected $webDetectionDataType = '';
/**
* If present, contextual information is needed to understand where this image
* comes from.
*
* @param GoogleCloudVisionV1p1beta1ImageAnnotationContext $context
*/
public function setContext(GoogleCloudVisionV1p1beta1ImageAnnotationContext $context)
{
$this->context = $context;
}
/**
* @return GoogleCloudVisionV1p1beta1ImageAnnotationContext
*/
public function getContext()
{
return $this->context;
}
/**
* If present, crop hints have completed successfully.
*
* @param GoogleCloudVisionV1p1beta1CropHintsAnnotation $cropHintsAnnotation
*/
public function setCropHintsAnnotation(GoogleCloudVisionV1p1beta1CropHintsAnnotation $cropHintsAnnotation)
{
$this->cropHintsAnnotation = $cropHintsAnnotation;
}
/**
* @return GoogleCloudVisionV1p1beta1CropHintsAnnotation
*/
public function getCropHintsAnnotation()
{
return $this->cropHintsAnnotation;
}
/**
* If set, represents the error message for the operation. Note that filled-in
* image annotations are guaranteed to be correct, even when `error` is set.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* If present, face detection has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1FaceAnnotation[] $faceAnnotations
*/
public function setFaceAnnotations($faceAnnotations)
{
$this->faceAnnotations = $faceAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1FaceAnnotation[]
*/
public function getFaceAnnotations()
{
return $this->faceAnnotations;
}
/**
* If present, text (OCR) detection or document (OCR) text detection has
* completed successfully. This annotation provides the structural hierarchy
* for the OCR detected text.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotation $fullTextAnnotation
*/
public function setFullTextAnnotation(GoogleCloudVisionV1p1beta1TextAnnotation $fullTextAnnotation)
{
$this->fullTextAnnotation = $fullTextAnnotation;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotation
*/
public function getFullTextAnnotation()
{
return $this->fullTextAnnotation;
}
/**
* If present, image properties were extracted successfully.
*
* @param GoogleCloudVisionV1p1beta1ImageProperties $imagePropertiesAnnotation
*/
public function setImagePropertiesAnnotation(GoogleCloudVisionV1p1beta1ImageProperties $imagePropertiesAnnotation)
{
$this->imagePropertiesAnnotation = $imagePropertiesAnnotation;
}
/**
* @return GoogleCloudVisionV1p1beta1ImageProperties
*/
public function getImagePropertiesAnnotation()
{
return $this->imagePropertiesAnnotation;
}
/**
* If present, label detection has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $labelAnnotations
*/
public function setLabelAnnotations($labelAnnotations)
{
$this->labelAnnotations = $labelAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1EntityAnnotation[]
*/
public function getLabelAnnotations()
{
return $this->labelAnnotations;
}
/**
* If present, landmark detection has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $landmarkAnnotations
*/
public function setLandmarkAnnotations($landmarkAnnotations)
{
$this->landmarkAnnotations = $landmarkAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1EntityAnnotation[]
*/
public function getLandmarkAnnotations()
{
return $this->landmarkAnnotations;
}
/**
* If present, localized object detection has completed successfully. This
* will be sorted descending by confidence score.
*
* @param GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation[] $localizedObjectAnnotations
*/
public function setLocalizedObjectAnnotations($localizedObjectAnnotations)
{
$this->localizedObjectAnnotations = $localizedObjectAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation[]
*/
public function getLocalizedObjectAnnotations()
{
return $this->localizedObjectAnnotations;
}
/**
* If present, logo detection has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $logoAnnotations
*/
public function setLogoAnnotations($logoAnnotations)
{
$this->logoAnnotations = $logoAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1EntityAnnotation[]
*/
public function getLogoAnnotations()
{
return $this->logoAnnotations;
}
/**
* If present, product search has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1ProductSearchResults $productSearchResults
*/
public function setProductSearchResults(GoogleCloudVisionV1p1beta1ProductSearchResults $productSearchResults)
{
$this->productSearchResults = $productSearchResults;
}
/**
* @return GoogleCloudVisionV1p1beta1ProductSearchResults
*/
public function getProductSearchResults()
{
return $this->productSearchResults;
}
/**
* If present, safe-search annotation has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1SafeSearchAnnotation $safeSearchAnnotation
*/
public function setSafeSearchAnnotation(GoogleCloudVisionV1p1beta1SafeSearchAnnotation $safeSearchAnnotation)
{
$this->safeSearchAnnotation = $safeSearchAnnotation;
}
/**
* @return GoogleCloudVisionV1p1beta1SafeSearchAnnotation
*/
public function getSafeSearchAnnotation()
{
return $this->safeSearchAnnotation;
}
/**
* If present, text (OCR) detection has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1EntityAnnotation[] $textAnnotations
*/
public function setTextAnnotations($textAnnotations)
{
$this->textAnnotations = $textAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1EntityAnnotation[]
*/
public function getTextAnnotations()
{
return $this->textAnnotations;
}
/**
* If present, web detection has completed successfully.
*
* @param GoogleCloudVisionV1p1beta1WebDetection $webDetection
*/
public function setWebDetection(GoogleCloudVisionV1p1beta1WebDetection $webDetection)
{
$this->webDetection = $webDetection;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetection
*/
public function getWebDetection()
{
return $this->webDetection;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1AnnotateImageResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1AnnotateImageResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse extends \Google\Model
{
protected $outputConfigType = GoogleCloudVisionV1p1beta1OutputConfig::class;
protected $outputConfigDataType = '';
/**
* The output location and metadata from AsyncAnnotateFileRequest.
*
* @param GoogleCloudVisionV1p1beta1OutputConfig $outputConfig
*/
public function setOutputConfig(GoogleCloudVisionV1p1beta1OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return GoogleCloudVisionV1p1beta1OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse::class;
protected $responsesDataType = 'array';
/**
* The list of file annotation responses, one for each request in
* AsyncBatchAnnotateFilesRequest.
*
* @param GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return GoogleCloudVisionV1p1beta1AsyncAnnotateFileResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1AsyncBatchAnnotateFilesResponse');

View File

@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Block extends \Google\Collection
{
/**
* Unknown block type.
*/
public const BLOCK_TYPE_UNKNOWN = 'UNKNOWN';
/**
* Regular text block.
*/
public const BLOCK_TYPE_TEXT = 'TEXT';
/**
* Table block.
*/
public const BLOCK_TYPE_TABLE = 'TABLE';
/**
* Image block.
*/
public const BLOCK_TYPE_PICTURE = 'PICTURE';
/**
* Horizontal/vertical line box.
*/
public const BLOCK_TYPE_RULER = 'RULER';
/**
* Barcode block.
*/
public const BLOCK_TYPE_BARCODE = 'BARCODE';
protected $collection_key = 'paragraphs';
/**
* Detected block type (text, image etc) for this block.
*
* @var string
*/
public $blockType;
protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingBoxDataType = '';
/**
* Confidence of the OCR results on the block. Range [0, 1].
*
* @var float
*/
public $confidence;
protected $paragraphsType = GoogleCloudVisionV1p1beta1Paragraph::class;
protected $paragraphsDataType = 'array';
protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
protected $propertyDataType = '';
/**
* Detected block type (text, image etc) for this block.
*
* Accepted values: UNKNOWN, TEXT, TABLE, PICTURE, RULER, BARCODE
*
* @param self::BLOCK_TYPE_* $blockType
*/
public function setBlockType($blockType)
{
$this->blockType = $blockType;
}
/**
* @return self::BLOCK_TYPE_*
*/
public function getBlockType()
{
return $this->blockType;
}
/**
* The bounding box for the block. The vertices are in the order of top-left,
* top-right, bottom-right, bottom-left. When a rotation of the bounding box
* is detected the rotation is represented as around the top-left corner as
* defined when the text is read in the 'natural' orientation. For example: *
* when the text is horizontal it might look like: 0----1 | | 3----2 * when
* it's rotated 180 degrees around the top-left corner it becomes: 2----3 | |
* 1----0 and the vertex order will still be (0, 1, 2, 3).
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox
*/
public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* Confidence of the OCR results on the block. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* List of paragraphs in this block (if this blocks is of type text).
*
* @param GoogleCloudVisionV1p1beta1Paragraph[] $paragraphs
*/
public function setParagraphs($paragraphs)
{
$this->paragraphs = $paragraphs;
}
/**
* @return GoogleCloudVisionV1p1beta1Paragraph[]
*/
public function getParagraphs()
{
return $this->paragraphs;
}
/**
* Additional information detected for the block.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property
*/
public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
{
$this->property = $property;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Block::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Block');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1BoundingPoly extends \Google\Collection
{
protected $collection_key = 'vertices';
protected $normalizedVerticesType = GoogleCloudVisionV1p1beta1NormalizedVertex::class;
protected $normalizedVerticesDataType = 'array';
protected $verticesType = GoogleCloudVisionV1p1beta1Vertex::class;
protected $verticesDataType = 'array';
/**
* The bounding polygon normalized vertices.
*
* @param GoogleCloudVisionV1p1beta1NormalizedVertex[] $normalizedVertices
*/
public function setNormalizedVertices($normalizedVertices)
{
$this->normalizedVertices = $normalizedVertices;
}
/**
* @return GoogleCloudVisionV1p1beta1NormalizedVertex[]
*/
public function getNormalizedVertices()
{
return $this->normalizedVertices;
}
/**
* The bounding polygon vertices.
*
* @param GoogleCloudVisionV1p1beta1Vertex[] $vertices
*/
public function setVertices($vertices)
{
$this->vertices = $vertices;
}
/**
* @return GoogleCloudVisionV1p1beta1Vertex[]
*/
public function getVertices()
{
return $this->vertices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1BoundingPoly::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1BoundingPoly');

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ColorInfo extends \Google\Model
{
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* The fraction of pixels the color occupies in the image. Value in range [0,
* 1].
*
* @var float
*/
public $pixelFraction;
/**
* Image-specific score for this color. Value in range [0, 1].
*
* @var float
*/
public $score;
/**
* RGB components of the color.
*
* @param Color $color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* The fraction of pixels the color occupies in the image. Value in range [0,
* 1].
*
* @param float $pixelFraction
*/
public function setPixelFraction($pixelFraction)
{
$this->pixelFraction = $pixelFraction;
}
/**
* @return float
*/
public function getPixelFraction()
{
return $this->pixelFraction;
}
/**
* Image-specific score for this color. Value in range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ColorInfo::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ColorInfo');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1CropHint extends \Google\Model
{
protected $boundingPolyType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* Confidence of this being a salient region. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* Fraction of importance of this salient region with respect to the original
* image.
*
* @var float
*/
public $importanceFraction;
/**
* The bounding polygon for the crop region. The coordinates of the bounding
* box are in the original image's scale.
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* Confidence of this being a salient region. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Fraction of importance of this salient region with respect to the original
* image.
*
* @param float $importanceFraction
*/
public function setImportanceFraction($importanceFraction)
{
$this->importanceFraction = $importanceFraction;
}
/**
* @return float
*/
public function getImportanceFraction()
{
return $this->importanceFraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1CropHint::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHint');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1CropHintsAnnotation extends \Google\Collection
{
protected $collection_key = 'cropHints';
protected $cropHintsType = GoogleCloudVisionV1p1beta1CropHint::class;
protected $cropHintsDataType = 'array';
/**
* Crop hint results.
*
* @param GoogleCloudVisionV1p1beta1CropHint[] $cropHints
*/
public function setCropHints($cropHints)
{
$this->cropHints = $cropHints;
}
/**
* @return GoogleCloudVisionV1p1beta1CropHint[]
*/
public function getCropHints()
{
return $this->cropHints;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1CropHintsAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1CropHintsAnnotation');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1DominantColorsAnnotation extends \Google\Collection
{
protected $collection_key = 'colors';
protected $colorsType = GoogleCloudVisionV1p1beta1ColorInfo::class;
protected $colorsDataType = 'array';
/**
* RGB color values with their score and pixel fraction.
*
* @param GoogleCloudVisionV1p1beta1ColorInfo[] $colors
*/
public function setColors($colors)
{
$this->colors = $colors;
}
/**
* @return GoogleCloudVisionV1p1beta1ColorInfo[]
*/
public function getColors()
{
return $this->colors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1DominantColorsAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1DominantColorsAnnotation');

View File

@@ -0,0 +1,240 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1EntityAnnotation extends \Google\Collection
{
protected $collection_key = 'properties';
protected $boundingPolyType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* **Deprecated. Use `score` instead.** The accuracy of the entity detection
* in an image. For example, for an image in which the "Eiffel Tower" entity
* is detected, this field represents the confidence that there is a tower in
* the query image. Range [0, 1].
*
* @deprecated
* @var float
*/
public $confidence;
/**
* Entity textual description, expressed in its `locale` language.
*
* @var string
*/
public $description;
/**
* The language code for the locale in which the entity textual `description`
* is expressed.
*
* @var string
*/
public $locale;
protected $locationsType = GoogleCloudVisionV1p1beta1LocationInfo::class;
protected $locationsDataType = 'array';
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @var string
*/
public $mid;
protected $propertiesType = GoogleCloudVisionV1p1beta1Property::class;
protected $propertiesDataType = 'array';
/**
* Overall score of the result. Range [0, 1].
*
* @var float
*/
public $score;
/**
* The relevancy of the ICA (Image Content Annotation) label to the image. For
* example, the relevancy of "tower" is likely higher to an image containing
* the detected "Eiffel Tower" than to an image containing a detected distant
* towering building, even though the confidence that there is a tower in each
* image may be the same. Range [0, 1].
*
* @var float
*/
public $topicality;
/**
* Image region to which this entity belongs. Not produced for
* `LABEL_DETECTION` features.
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* **Deprecated. Use `score` instead.** The accuracy of the entity detection
* in an image. For example, for an image in which the "Eiffel Tower" entity
* is detected, this field represents the confidence that there is a tower in
* the query image. Range [0, 1].
*
* @deprecated
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @deprecated
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Entity textual description, expressed in its `locale` language.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The language code for the locale in which the entity textual `description`
* is expressed.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The location information for the detected entity. Multiple `LocationInfo`
* elements can be present because one location may indicate the location of
* the scene in the image, and another location may indicate the location of
* the place where the image was taken. Location information is usually
* present for landmarks.
*
* @param GoogleCloudVisionV1p1beta1LocationInfo[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return GoogleCloudVisionV1p1beta1LocationInfo[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @param string $mid
*/
public function setMid($mid)
{
$this->mid = $mid;
}
/**
* @return string
*/
public function getMid()
{
return $this->mid;
}
/**
* Some entities may have optional user-supplied `Property` (name/value)
* fields, such a score or string that qualifies the entity.
*
* @param GoogleCloudVisionV1p1beta1Property[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return GoogleCloudVisionV1p1beta1Property[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* Overall score of the result. Range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
/**
* The relevancy of the ICA (Image Content Annotation) label to the image. For
* example, the relevancy of "tower" is likely higher to an image containing
* the detected "Eiffel Tower" than to an image containing a detected distant
* towering building, even though the confidence that there is a tower in each
* image may be the same. Range [0, 1].
*
* @param float $topicality
*/
public function setTopicality($topicality)
{
$this->topicality = $topicality;
}
/**
* @return float
*/
public function getTopicality()
{
return $this->topicality;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1EntityAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1EntityAnnotation');

View File

@@ -0,0 +1,553 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1FaceAnnotation extends \Google\Collection
{
/**
* Unknown likelihood.
*/
public const ANGER_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const ANGER_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const ANGER_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const ANGER_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const ANGER_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const ANGER_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const BLURRED_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const BLURRED_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const BLURRED_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const BLURRED_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const BLURRED_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const BLURRED_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const HEADWEAR_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const HEADWEAR_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const HEADWEAR_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const HEADWEAR_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const HEADWEAR_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const HEADWEAR_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const JOY_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const JOY_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const JOY_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const JOY_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const JOY_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const JOY_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SORROW_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SORROW_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SORROW_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SORROW_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SORROW_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SORROW_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SURPRISE_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SURPRISE_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SURPRISE_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SURPRISE_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SURPRISE_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SURPRISE_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const UNDER_EXPOSED_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const UNDER_EXPOSED_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
protected $collection_key = 'landmarks';
/**
* Anger likelihood.
*
* @var string
*/
public $angerLikelihood;
/**
* Blurred likelihood.
*
* @var string
*/
public $blurredLikelihood;
protected $boundingPolyType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* Detection confidence. Range [0, 1].
*
* @var float
*/
public $detectionConfidence;
protected $fdBoundingPolyType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $fdBoundingPolyDataType = '';
/**
* Headwear likelihood.
*
* @var string
*/
public $headwearLikelihood;
/**
* Joy likelihood.
*
* @var string
*/
public $joyLikelihood;
/**
* Face landmarking confidence. Range [0, 1].
*
* @var float
*/
public $landmarkingConfidence;
protected $landmarksType = GoogleCloudVisionV1p1beta1FaceAnnotationLandmark::class;
protected $landmarksDataType = 'array';
/**
* Yaw angle, which indicates the leftward/rightward angle that the face is
* pointing relative to the vertical plane perpendicular to the image. Range
* [-180,180].
*
* @var float
*/
public $panAngle;
/**
* Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
* of the face relative to the image vertical about the axis perpendicular to
* the face. Range [-180,180].
*
* @var float
*/
public $rollAngle;
/**
* Sorrow likelihood.
*
* @var string
*/
public $sorrowLikelihood;
/**
* Surprise likelihood.
*
* @var string
*/
public $surpriseLikelihood;
/**
* Pitch angle, which indicates the upwards/downwards angle that the face is
* pointing relative to the image's horizontal plane. Range [-180,180].
*
* @var float
*/
public $tiltAngle;
/**
* Under-exposed likelihood.
*
* @var string
*/
public $underExposedLikelihood;
/**
* Anger likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::ANGER_LIKELIHOOD_* $angerLikelihood
*/
public function setAngerLikelihood($angerLikelihood)
{
$this->angerLikelihood = $angerLikelihood;
}
/**
* @return self::ANGER_LIKELIHOOD_*
*/
public function getAngerLikelihood()
{
return $this->angerLikelihood;
}
/**
* Blurred likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::BLURRED_LIKELIHOOD_* $blurredLikelihood
*/
public function setBlurredLikelihood($blurredLikelihood)
{
$this->blurredLikelihood = $blurredLikelihood;
}
/**
* @return self::BLURRED_LIKELIHOOD_*
*/
public function getBlurredLikelihood()
{
return $this->blurredLikelihood;
}
/**
* The bounding polygon around the face. The coordinates of the bounding box
* are in the original image's scale. The bounding box is computed to "frame"
* the face in accordance with human expectations. It is based on the
* landmarker results. Note that one or more x and/or y coordinates may not be
* generated in the `BoundingPoly` (the polygon will be unbounded) if only a
* partial face appears in the image to be annotated.
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* Detection confidence. Range [0, 1].
*
* @param float $detectionConfidence
*/
public function setDetectionConfidence($detectionConfidence)
{
$this->detectionConfidence = $detectionConfidence;
}
/**
* @return float
*/
public function getDetectionConfidence()
{
return $this->detectionConfidence;
}
/**
* The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`,
* and encloses only the skin part of the face. Typically, it is used to
* eliminate the face from any image analysis that detects the "amount of
* skin" visible in an image. It is not based on the landmarker results, only
* on the initial face detection, hence the fd (face detection) prefix.
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $fdBoundingPoly
*/
public function setFdBoundingPoly(GoogleCloudVisionV1p1beta1BoundingPoly $fdBoundingPoly)
{
$this->fdBoundingPoly = $fdBoundingPoly;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getFdBoundingPoly()
{
return $this->fdBoundingPoly;
}
/**
* Headwear likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::HEADWEAR_LIKELIHOOD_* $headwearLikelihood
*/
public function setHeadwearLikelihood($headwearLikelihood)
{
$this->headwearLikelihood = $headwearLikelihood;
}
/**
* @return self::HEADWEAR_LIKELIHOOD_*
*/
public function getHeadwearLikelihood()
{
return $this->headwearLikelihood;
}
/**
* Joy likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::JOY_LIKELIHOOD_* $joyLikelihood
*/
public function setJoyLikelihood($joyLikelihood)
{
$this->joyLikelihood = $joyLikelihood;
}
/**
* @return self::JOY_LIKELIHOOD_*
*/
public function getJoyLikelihood()
{
return $this->joyLikelihood;
}
/**
* Face landmarking confidence. Range [0, 1].
*
* @param float $landmarkingConfidence
*/
public function setLandmarkingConfidence($landmarkingConfidence)
{
$this->landmarkingConfidence = $landmarkingConfidence;
}
/**
* @return float
*/
public function getLandmarkingConfidence()
{
return $this->landmarkingConfidence;
}
/**
* Detected face landmarks.
*
* @param GoogleCloudVisionV1p1beta1FaceAnnotationLandmark[] $landmarks
*/
public function setLandmarks($landmarks)
{
$this->landmarks = $landmarks;
}
/**
* @return GoogleCloudVisionV1p1beta1FaceAnnotationLandmark[]
*/
public function getLandmarks()
{
return $this->landmarks;
}
/**
* Yaw angle, which indicates the leftward/rightward angle that the face is
* pointing relative to the vertical plane perpendicular to the image. Range
* [-180,180].
*
* @param float $panAngle
*/
public function setPanAngle($panAngle)
{
$this->panAngle = $panAngle;
}
/**
* @return float
*/
public function getPanAngle()
{
return $this->panAngle;
}
/**
* Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
* of the face relative to the image vertical about the axis perpendicular to
* the face. Range [-180,180].
*
* @param float $rollAngle
*/
public function setRollAngle($rollAngle)
{
$this->rollAngle = $rollAngle;
}
/**
* @return float
*/
public function getRollAngle()
{
return $this->rollAngle;
}
/**
* Sorrow likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SORROW_LIKELIHOOD_* $sorrowLikelihood
*/
public function setSorrowLikelihood($sorrowLikelihood)
{
$this->sorrowLikelihood = $sorrowLikelihood;
}
/**
* @return self::SORROW_LIKELIHOOD_*
*/
public function getSorrowLikelihood()
{
return $this->sorrowLikelihood;
}
/**
* Surprise likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SURPRISE_LIKELIHOOD_* $surpriseLikelihood
*/
public function setSurpriseLikelihood($surpriseLikelihood)
{
$this->surpriseLikelihood = $surpriseLikelihood;
}
/**
* @return self::SURPRISE_LIKELIHOOD_*
*/
public function getSurpriseLikelihood()
{
return $this->surpriseLikelihood;
}
/**
* Pitch angle, which indicates the upwards/downwards angle that the face is
* pointing relative to the image's horizontal plane. Range [-180,180].
*
* @param float $tiltAngle
*/
public function setTiltAngle($tiltAngle)
{
$this->tiltAngle = $tiltAngle;
}
/**
* @return float
*/
public function getTiltAngle()
{
return $this->tiltAngle;
}
/**
* Under-exposed likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::UNDER_EXPOSED_LIKELIHOOD_* $underExposedLikelihood
*/
public function setUnderExposedLikelihood($underExposedLikelihood)
{
$this->underExposedLikelihood = $underExposedLikelihood;
}
/**
* @return self::UNDER_EXPOSED_LIKELIHOOD_*
*/
public function getUnderExposedLikelihood()
{
return $this->underExposedLikelihood;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1FaceAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotation');

View File

@@ -0,0 +1,226 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1FaceAnnotationLandmark extends \Google\Model
{
/**
* Unknown face landmark detected. Should not be filled.
*/
public const TYPE_UNKNOWN_LANDMARK = 'UNKNOWN_LANDMARK';
/**
* Left eye.
*/
public const TYPE_LEFT_EYE = 'LEFT_EYE';
/**
* Right eye.
*/
public const TYPE_RIGHT_EYE = 'RIGHT_EYE';
/**
* Left of left eyebrow.
*/
public const TYPE_LEFT_OF_LEFT_EYEBROW = 'LEFT_OF_LEFT_EYEBROW';
/**
* Right of left eyebrow.
*/
public const TYPE_RIGHT_OF_LEFT_EYEBROW = 'RIGHT_OF_LEFT_EYEBROW';
/**
* Left of right eyebrow.
*/
public const TYPE_LEFT_OF_RIGHT_EYEBROW = 'LEFT_OF_RIGHT_EYEBROW';
/**
* Right of right eyebrow.
*/
public const TYPE_RIGHT_OF_RIGHT_EYEBROW = 'RIGHT_OF_RIGHT_EYEBROW';
/**
* Midpoint between eyes.
*/
public const TYPE_MIDPOINT_BETWEEN_EYES = 'MIDPOINT_BETWEEN_EYES';
/**
* Nose tip.
*/
public const TYPE_NOSE_TIP = 'NOSE_TIP';
/**
* Upper lip.
*/
public const TYPE_UPPER_LIP = 'UPPER_LIP';
/**
* Lower lip.
*/
public const TYPE_LOWER_LIP = 'LOWER_LIP';
/**
* Mouth left.
*/
public const TYPE_MOUTH_LEFT = 'MOUTH_LEFT';
/**
* Mouth right.
*/
public const TYPE_MOUTH_RIGHT = 'MOUTH_RIGHT';
/**
* Mouth center.
*/
public const TYPE_MOUTH_CENTER = 'MOUTH_CENTER';
/**
* Nose, bottom right.
*/
public const TYPE_NOSE_BOTTOM_RIGHT = 'NOSE_BOTTOM_RIGHT';
/**
* Nose, bottom left.
*/
public const TYPE_NOSE_BOTTOM_LEFT = 'NOSE_BOTTOM_LEFT';
/**
* Nose, bottom center.
*/
public const TYPE_NOSE_BOTTOM_CENTER = 'NOSE_BOTTOM_CENTER';
/**
* Left eye, top boundary.
*/
public const TYPE_LEFT_EYE_TOP_BOUNDARY = 'LEFT_EYE_TOP_BOUNDARY';
/**
* Left eye, right corner.
*/
public const TYPE_LEFT_EYE_RIGHT_CORNER = 'LEFT_EYE_RIGHT_CORNER';
/**
* Left eye, bottom boundary.
*/
public const TYPE_LEFT_EYE_BOTTOM_BOUNDARY = 'LEFT_EYE_BOTTOM_BOUNDARY';
/**
* Left eye, left corner.
*/
public const TYPE_LEFT_EYE_LEFT_CORNER = 'LEFT_EYE_LEFT_CORNER';
/**
* Right eye, top boundary.
*/
public const TYPE_RIGHT_EYE_TOP_BOUNDARY = 'RIGHT_EYE_TOP_BOUNDARY';
/**
* Right eye, right corner.
*/
public const TYPE_RIGHT_EYE_RIGHT_CORNER = 'RIGHT_EYE_RIGHT_CORNER';
/**
* Right eye, bottom boundary.
*/
public const TYPE_RIGHT_EYE_BOTTOM_BOUNDARY = 'RIGHT_EYE_BOTTOM_BOUNDARY';
/**
* Right eye, left corner.
*/
public const TYPE_RIGHT_EYE_LEFT_CORNER = 'RIGHT_EYE_LEFT_CORNER';
/**
* Left eyebrow, upper midpoint.
*/
public const TYPE_LEFT_EYEBROW_UPPER_MIDPOINT = 'LEFT_EYEBROW_UPPER_MIDPOINT';
/**
* Right eyebrow, upper midpoint.
*/
public const TYPE_RIGHT_EYEBROW_UPPER_MIDPOINT = 'RIGHT_EYEBROW_UPPER_MIDPOINT';
/**
* Left ear tragion.
*/
public const TYPE_LEFT_EAR_TRAGION = 'LEFT_EAR_TRAGION';
/**
* Right ear tragion.
*/
public const TYPE_RIGHT_EAR_TRAGION = 'RIGHT_EAR_TRAGION';
/**
* Left eye pupil.
*/
public const TYPE_LEFT_EYE_PUPIL = 'LEFT_EYE_PUPIL';
/**
* Right eye pupil.
*/
public const TYPE_RIGHT_EYE_PUPIL = 'RIGHT_EYE_PUPIL';
/**
* Forehead glabella.
*/
public const TYPE_FOREHEAD_GLABELLA = 'FOREHEAD_GLABELLA';
/**
* Chin gnathion.
*/
public const TYPE_CHIN_GNATHION = 'CHIN_GNATHION';
/**
* Chin left gonion.
*/
public const TYPE_CHIN_LEFT_GONION = 'CHIN_LEFT_GONION';
/**
* Chin right gonion.
*/
public const TYPE_CHIN_RIGHT_GONION = 'CHIN_RIGHT_GONION';
/**
* Left cheek center.
*/
public const TYPE_LEFT_CHEEK_CENTER = 'LEFT_CHEEK_CENTER';
/**
* Right cheek center.
*/
public const TYPE_RIGHT_CHEEK_CENTER = 'RIGHT_CHEEK_CENTER';
protected $positionType = GoogleCloudVisionV1p1beta1Position::class;
protected $positionDataType = '';
/**
* Face landmark type.
*
* @var string
*/
public $type;
/**
* Face landmark position.
*
* @param GoogleCloudVisionV1p1beta1Position $position
*/
public function setPosition(GoogleCloudVisionV1p1beta1Position $position)
{
$this->position = $position;
}
/**
* @return GoogleCloudVisionV1p1beta1Position
*/
public function getPosition()
{
return $this->position;
}
/**
* Face landmark type.
*
* Accepted values: UNKNOWN_LANDMARK, LEFT_EYE, RIGHT_EYE,
* LEFT_OF_LEFT_EYEBROW, RIGHT_OF_LEFT_EYEBROW, LEFT_OF_RIGHT_EYEBROW,
* RIGHT_OF_RIGHT_EYEBROW, MIDPOINT_BETWEEN_EYES, NOSE_TIP, UPPER_LIP,
* LOWER_LIP, MOUTH_LEFT, MOUTH_RIGHT, MOUTH_CENTER, NOSE_BOTTOM_RIGHT,
* NOSE_BOTTOM_LEFT, NOSE_BOTTOM_CENTER, LEFT_EYE_TOP_BOUNDARY,
* LEFT_EYE_RIGHT_CORNER, LEFT_EYE_BOTTOM_BOUNDARY, LEFT_EYE_LEFT_CORNER,
* RIGHT_EYE_TOP_BOUNDARY, RIGHT_EYE_RIGHT_CORNER, RIGHT_EYE_BOTTOM_BOUNDARY,
* RIGHT_EYE_LEFT_CORNER, LEFT_EYEBROW_UPPER_MIDPOINT,
* RIGHT_EYEBROW_UPPER_MIDPOINT, LEFT_EAR_TRAGION, RIGHT_EAR_TRAGION,
* LEFT_EYE_PUPIL, RIGHT_EYE_PUPIL, FOREHEAD_GLABELLA, CHIN_GNATHION,
* CHIN_LEFT_GONION, CHIN_RIGHT_GONION, LEFT_CHEEK_CENTER, RIGHT_CHEEK_CENTER
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1FaceAnnotationLandmark::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1FaceAnnotationLandmark');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1GcsDestination extends \Google\Model
{
/**
* Google Cloud Storage URI prefix where the results will be stored. Results
* will be in JSON format and preceded by its corresponding input URI prefix.
* This field can either represent a gcs file prefix or gcs directory. In
* either case, the uri should be unique because in order to get all of the
* output files, you will need to do a wildcard gcs search on the uri prefix
* you provide. Examples: * File Prefix: gs://bucket-name/here/filenameprefix
* The output files will be created in gs://bucket-name/here/ and the names of
* the output files will begin with "filenameprefix". * Directory Prefix:
* gs://bucket-name/some/location/ The output files will be created in
* gs://bucket-name/some/location/ and the names of the output files could be
* anything because there was no filename prefix specified. If multiple
* outputs, each response is still AnnotateFileResponse, each of which
* contains some subset of the full list of AnnotateImageResponse. Multiple
* outputs can happen if, for example, the output JSON is too large and
* overflows into multiple sharded files.
*
* @var string
*/
public $uri;
/**
* Google Cloud Storage URI prefix where the results will be stored. Results
* will be in JSON format and preceded by its corresponding input URI prefix.
* This field can either represent a gcs file prefix or gcs directory. In
* either case, the uri should be unique because in order to get all of the
* output files, you will need to do a wildcard gcs search on the uri prefix
* you provide. Examples: * File Prefix: gs://bucket-name/here/filenameprefix
* The output files will be created in gs://bucket-name/here/ and the names of
* the output files will begin with "filenameprefix". * Directory Prefix:
* gs://bucket-name/some/location/ The output files will be created in
* gs://bucket-name/some/location/ and the names of the output files could be
* anything because there was no filename prefix specified. If multiple
* outputs, each response is still AnnotateFileResponse, each of which
* contains some subset of the full list of AnnotateImageResponse. Multiple
* outputs can happen if, for example, the output JSON is too large and
* overflows into multiple sharded files.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1GcsDestination::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1GcsDestination');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1GcsSource extends \Google\Model
{
/**
* Google Cloud Storage URI for the input file. This must only be a Google
* Cloud Storage object. Wildcards are not currently supported.
*
* @var string
*/
public $uri;
/**
* Google Cloud Storage URI for the input file. This must only be a Google
* Cloud Storage object. Wildcards are not currently supported.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1GcsSource::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1GcsSource');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ImageAnnotationContext extends \Google\Model
{
/**
* If the file was a PDF or TIFF, this field gives the page number within the
* file used to produce the image.
*
* @var int
*/
public $pageNumber;
/**
* The URI of the file used to produce the image.
*
* @var string
*/
public $uri;
/**
* If the file was a PDF or TIFF, this field gives the page number within the
* file used to produce the image.
*
* @param int $pageNumber
*/
public function setPageNumber($pageNumber)
{
$this->pageNumber = $pageNumber;
}
/**
* @return int
*/
public function getPageNumber()
{
return $this->pageNumber;
}
/**
* The URI of the file used to produce the image.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ImageAnnotationContext::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageAnnotationContext');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ImageProperties extends \Google\Model
{
protected $dominantColorsType = GoogleCloudVisionV1p1beta1DominantColorsAnnotation::class;
protected $dominantColorsDataType = '';
/**
* If present, dominant colors completed successfully.
*
* @param GoogleCloudVisionV1p1beta1DominantColorsAnnotation $dominantColors
*/
public function setDominantColors(GoogleCloudVisionV1p1beta1DominantColorsAnnotation $dominantColors)
{
$this->dominantColors = $dominantColors;
}
/**
* @return GoogleCloudVisionV1p1beta1DominantColorsAnnotation
*/
public function getDominantColors()
{
return $this->dominantColors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ImageProperties::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ImageProperties');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1InputConfig extends \Google\Model
{
/**
* File content, represented as a stream of bytes. Note: As with all `bytes`
* fields, protobuffers use a pure binary representation, whereas JSON
* representations use base64. Currently, this field only works for
* BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles
* requests.
*
* @var string
*/
public $content;
protected $gcsSourceType = GoogleCloudVisionV1p1beta1GcsSource::class;
protected $gcsSourceDataType = '';
/**
* The type of the file. Currently only "application/pdf", "image/tiff" and
* "image/gif" are supported. Wildcards are not supported.
*
* @var string
*/
public $mimeType;
/**
* File content, represented as a stream of bytes. Note: As with all `bytes`
* fields, protobuffers use a pure binary representation, whereas JSON
* representations use base64. Currently, this field only works for
* BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles
* requests.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The Google Cloud Storage location to read the input from.
*
* @param GoogleCloudVisionV1p1beta1GcsSource $gcsSource
*/
public function setGcsSource(GoogleCloudVisionV1p1beta1GcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return GoogleCloudVisionV1p1beta1GcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
/**
* The type of the file. Currently only "application/pdf", "image/tiff" and
* "image/gif" are supported. Wildcards are not supported.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1InputConfig::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1InputConfig');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation extends \Google\Model
{
protected $boundingPolyType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Object ID that should align with EntityAnnotation mid.
*
* @var string
*/
public $mid;
/**
* Object name, expressed in its `language_code` language.
*
* @var string
*/
public $name;
/**
* Score of the result. Range [0, 1].
*
* @var float
*/
public $score;
/**
* Image region to which this object belongs. This must be populated.
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Object ID that should align with EntityAnnotation mid.
*
* @param string $mid
*/
public function setMid($mid)
{
$this->mid = $mid;
}
/**
* @return string
*/
public function getMid()
{
return $this->mid;
}
/**
* Object name, expressed in its `language_code` language.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Score of the result. Range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1LocalizedObjectAnnotation');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1LocationInfo extends \Google\Model
{
protected $latLngType = LatLng::class;
protected $latLngDataType = '';
/**
* lat/long location coordinates.
*
* @param LatLng $latLng
*/
public function setLatLng(LatLng $latLng)
{
$this->latLng = $latLng;
}
/**
* @return LatLng
*/
public function getLatLng()
{
return $this->latLng;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1LocationInfo::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1LocationInfo');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1NormalizedVertex extends \Google\Model
{
/**
* X coordinate.
*
* @var float
*/
public $x;
/**
* Y coordinate.
*
* @var float
*/
public $y;
/**
* X coordinate.
*
* @param float $x
*/
public function setX($x)
{
$this->x = $x;
}
/**
* @return float
*/
public function getX()
{
return $this->x;
}
/**
* Y coordinate.
*
* @param float $y
*/
public function setY($y)
{
$this->y = $y;
}
/**
* @return float
*/
public function getY()
{
return $this->y;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1NormalizedVertex::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1NormalizedVertex');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1OperationMetadata extends \Google\Model
{
/**
* Invalid.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Request is received.
*/
public const STATE_CREATED = 'CREATED';
/**
* Request is actively being processed.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The batch processing is done.
*/
public const STATE_DONE = 'DONE';
/**
* The batch processing was cancelled.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The time when the batch request was received.
*
* @var string
*/
public $createTime;
/**
* Current state of the batch operation.
*
* @var string
*/
public $state;
/**
* The time when the operation result was last updated.
*
* @var string
*/
public $updateTime;
/**
* The time when the batch request was received.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Current state of the batch operation.
*
* Accepted values: STATE_UNSPECIFIED, CREATED, RUNNING, DONE, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The time when the operation result was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1OperationMetadata::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1OperationMetadata');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1OutputConfig extends \Google\Model
{
/**
* The max number of response protos to put into each output JSON file on
* Google Cloud Storage. The valid range is [1, 100]. If not specified, the
* default value is 20. For example, for one pdf file with 100 pages, 100
* response protos will be generated. If `batch_size` = 20, then 5 json files
* each containing 20 response protos will be written under the prefix
* `gcs_destination`.`uri`. Currently, batch_size only applies to
* GcsDestination, with potential future support for other output
* configurations.
*
* @var int
*/
public $batchSize;
protected $gcsDestinationType = GoogleCloudVisionV1p1beta1GcsDestination::class;
protected $gcsDestinationDataType = '';
/**
* The max number of response protos to put into each output JSON file on
* Google Cloud Storage. The valid range is [1, 100]. If not specified, the
* default value is 20. For example, for one pdf file with 100 pages, 100
* response protos will be generated. If `batch_size` = 20, then 5 json files
* each containing 20 response protos will be written under the prefix
* `gcs_destination`.`uri`. Currently, batch_size only applies to
* GcsDestination, with potential future support for other output
* configurations.
*
* @param int $batchSize
*/
public function setBatchSize($batchSize)
{
$this->batchSize = $batchSize;
}
/**
* @return int
*/
public function getBatchSize()
{
return $this->batchSize;
}
/**
* The Google Cloud Storage location to write the output(s) to.
*
* @param GoogleCloudVisionV1p1beta1GcsDestination $gcsDestination
*/
public function setGcsDestination(GoogleCloudVisionV1p1beta1GcsDestination $gcsDestination)
{
$this->gcsDestination = $gcsDestination;
}
/**
* @return GoogleCloudVisionV1p1beta1GcsDestination
*/
public function getGcsDestination()
{
return $this->gcsDestination;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1OutputConfig::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1OutputConfig');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Page extends \Google\Collection
{
protected $collection_key = 'blocks';
protected $blocksType = GoogleCloudVisionV1p1beta1Block::class;
protected $blocksDataType = 'array';
/**
* Confidence of the OCR results on the page. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* Page height. For PDFs the unit is points. For images (including TIFFs) the
* unit is pixels.
*
* @var int
*/
public $height;
protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
protected $propertyDataType = '';
/**
* Page width. For PDFs the unit is points. For images (including TIFFs) the
* unit is pixels.
*
* @var int
*/
public $width;
/**
* List of blocks of text, images etc on this page.
*
* @param GoogleCloudVisionV1p1beta1Block[] $blocks
*/
public function setBlocks($blocks)
{
$this->blocks = $blocks;
}
/**
* @return GoogleCloudVisionV1p1beta1Block[]
*/
public function getBlocks()
{
return $this->blocks;
}
/**
* Confidence of the OCR results on the page. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Page height. For PDFs the unit is points. For images (including TIFFs) the
* unit is pixels.
*
* @param int $height
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* Additional information detected on the page.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property
*/
public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
{
$this->property = $property;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
*/
public function getProperty()
{
return $this->property;
}
/**
* Page width. For PDFs the unit is points. For images (including TIFFs) the
* unit is pixels.
*
* @param int $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Page::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Page');

View File

@@ -0,0 +1,109 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Paragraph extends \Google\Collection
{
protected $collection_key = 'words';
protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingBoxDataType = '';
/**
* Confidence of the OCR results for the paragraph. Range [0, 1].
*
* @var float
*/
public $confidence;
protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
protected $propertyDataType = '';
protected $wordsType = GoogleCloudVisionV1p1beta1Word::class;
protected $wordsDataType = 'array';
/**
* The bounding box for the paragraph. The vertices are in the order of top-
* left, top-right, bottom-right, bottom-left. When a rotation of the bounding
* box is detected the rotation is represented as around the top-left corner
* as defined when the text is read in the 'natural' orientation. For example:
* * when the text is horizontal it might look like: 0----1 | | 3----2 * when
* it's rotated 180 degrees around the top-left corner it becomes: 2----3 | |
* 1----0 and the vertex order will still be (0, 1, 2, 3).
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox
*/
public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* Confidence of the OCR results for the paragraph. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Additional information detected for the paragraph.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property
*/
public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
{
$this->property = $property;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
*/
public function getProperty()
{
return $this->property;
}
/**
* List of all words in this paragraph.
*
* @param GoogleCloudVisionV1p1beta1Word[] $words
*/
public function setWords($words)
{
$this->words = $words;
}
/**
* @return GoogleCloudVisionV1p1beta1Word[]
*/
public function getWords()
{
return $this->words;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Paragraph::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Paragraph');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Position extends \Google\Model
{
/**
* X coordinate.
*
* @var float
*/
public $x;
/**
* Y coordinate.
*
* @var float
*/
public $y;
/**
* Z coordinate (or depth).
*
* @var float
*/
public $z;
/**
* X coordinate.
*
* @param float $x
*/
public function setX($x)
{
$this->x = $x;
}
/**
* @return float
*/
public function getX()
{
return $this->x;
}
/**
* Y coordinate.
*
* @param float $y
*/
public function setY($y)
{
$this->y = $y;
}
/**
* @return float
*/
public function getY()
{
return $this->y;
}
/**
* Z coordinate (or depth).
*
* @param float $z
*/
public function setZ($z)
{
$this->z = $z;
}
/**
* @return float
*/
public function getZ()
{
return $this->z;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Position::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Position');

View File

@@ -0,0 +1,156 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Product extends \Google\Collection
{
protected $collection_key = 'productLabels';
/**
* User-provided metadata to be stored with this product. Must be at most 4096
* characters long.
*
* @var string
*/
public $description;
/**
* The user-provided name for this Product. Must not be empty. Must be at most
* 4096 characters long.
*
* @var string
*/
public $displayName;
/**
* The resource name of the product. Format is:
* `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is
* ignored when creating a product.
*
* @var string
*/
public $name;
/**
* Immutable. The category for the product identified by the reference image.
* This should be one of "homegoods-v2", "apparel-v2", "toys-v2",
* "packagedgoods-v1" or "general-v1". The legacy categories "homegoods",
* "apparel", and "toys" are still supported, but these should not be used for
* new products.
*
* @var string
*/
public $productCategory;
protected $productLabelsType = GoogleCloudVisionV1p1beta1ProductKeyValue::class;
protected $productLabelsDataType = 'array';
/**
* User-provided metadata to be stored with this product. Must be at most 4096
* characters long.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The user-provided name for this Product. Must not be empty. Must be at most
* 4096 characters long.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The resource name of the product. Format is:
* `projects/PROJECT_ID/locations/LOC_ID/products/PRODUCT_ID`. This field is
* ignored when creating a product.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Immutable. The category for the product identified by the reference image.
* This should be one of "homegoods-v2", "apparel-v2", "toys-v2",
* "packagedgoods-v1" or "general-v1". The legacy categories "homegoods",
* "apparel", and "toys" are still supported, but these should not be used for
* new products.
*
* @param string $productCategory
*/
public function setProductCategory($productCategory)
{
$this->productCategory = $productCategory;
}
/**
* @return string
*/
public function getProductCategory()
{
return $this->productCategory;
}
/**
* Key-value pairs that can be attached to a product. At query time,
* constraints can be specified based on the product_labels. Note that integer
* values can be provided as strings, e.g. "1199". Only strings with integer
* values can match a range-based restriction which is to be supported soon.
* Multiple values can be assigned to the same key. One product may have up to
* 500 product_labels. Notice that the total number of distinct product_labels
* over all products in one ProductSet cannot exceed 1M, otherwise the product
* search pipeline will refuse to work for that ProductSet.
*
* @param GoogleCloudVisionV1p1beta1ProductKeyValue[] $productLabels
*/
public function setProductLabels($productLabels)
{
$this->productLabels = $productLabels;
}
/**
* @return GoogleCloudVisionV1p1beta1ProductKeyValue[]
*/
public function getProductLabels()
{
return $this->productLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Product::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Product');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ProductKeyValue extends \Google\Model
{
/**
* The key of the label attached to the product. Cannot be empty and cannot
* exceed 128 bytes.
*
* @var string
*/
public $key;
/**
* The value of the label attached to the product. Cannot be empty and cannot
* exceed 128 bytes.
*
* @var string
*/
public $value;
/**
* The key of the label attached to the product. Cannot be empty and cannot
* exceed 128 bytes.
*
* @param string $key
*/
public function setKey($key)
{
$this->key = $key;
}
/**
* @return string
*/
public function getKey()
{
return $this->key;
}
/**
* The value of the label attached to the product. Cannot be empty and cannot
* exceed 128 bytes.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ProductKeyValue::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductKeyValue');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ProductSearchResults extends \Google\Collection
{
protected $collection_key = 'results';
/**
* Timestamp of the index which provided these results. Products added to the
* product set and products removed from the product set after this time are
* not reflected in the current results.
*
* @var string
*/
public $indexTime;
protected $productGroupedResultsType = GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult::class;
protected $productGroupedResultsDataType = 'array';
protected $resultsType = GoogleCloudVisionV1p1beta1ProductSearchResultsResult::class;
protected $resultsDataType = 'array';
/**
* Timestamp of the index which provided these results. Products added to the
* product set and products removed from the product set after this time are
* not reflected in the current results.
*
* @param string $indexTime
*/
public function setIndexTime($indexTime)
{
$this->indexTime = $indexTime;
}
/**
* @return string
*/
public function getIndexTime()
{
return $this->indexTime;
}
/**
* List of results grouped by products detected in the query image. Each entry
* corresponds to one bounding polygon in the query image, and contains the
* matching products specific to that region. There may be duplicate product
* matches in the union of all the per-product results.
*
* @param GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult[] $productGroupedResults
*/
public function setProductGroupedResults($productGroupedResults)
{
$this->productGroupedResults = $productGroupedResults;
}
/**
* @return GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult[]
*/
public function getProductGroupedResults()
{
return $this->productGroupedResults;
}
/**
* List of results, one for each product match.
*
* @param GoogleCloudVisionV1p1beta1ProductSearchResultsResult[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return GoogleCloudVisionV1p1beta1ProductSearchResultsResult[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ProductSearchResults::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResults');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult extends \Google\Collection
{
protected $collection_key = 'results';
protected $boundingPolyType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
protected $objectAnnotationsType = GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation::class;
protected $objectAnnotationsDataType = 'array';
protected $resultsType = GoogleCloudVisionV1p1beta1ProductSearchResultsResult::class;
protected $resultsDataType = 'array';
/**
* The bounding polygon around the product detected in the query image.
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p1beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* List of generic predictions for the object in the bounding box.
*
* @param GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation[] $objectAnnotations
*/
public function setObjectAnnotations($objectAnnotations)
{
$this->objectAnnotations = $objectAnnotations;
}
/**
* @return GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation[]
*/
public function getObjectAnnotations()
{
return $this->objectAnnotations;
}
/**
* List of results, one for each product match.
*
* @param GoogleCloudVisionV1p1beta1ProductSearchResultsResult[] $results
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return GoogleCloudVisionV1p1beta1ProductSearchResultsResult[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsGroupedResult');

View File

@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation extends \Google\Model
{
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Object ID that should align with EntityAnnotation mid.
*
* @var string
*/
public $mid;
/**
* Object name, expressed in its `language_code` language.
*
* @var string
*/
public $name;
/**
* Score of the result. Range [0, 1].
*
* @var float
*/
public $score;
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Object ID that should align with EntityAnnotation mid.
*
* @param string $mid
*/
public function setMid($mid)
{
$this->mid = $mid;
}
/**
* @return string
*/
public function getMid()
{
return $this->mid;
}
/**
* Object name, expressed in its `language_code` language.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Score of the result. Range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsObjectAnnotation');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1ProductSearchResultsResult extends \Google\Model
{
/**
* The resource name of the image from the product that is the closest match
* to the query.
*
* @var string
*/
public $image;
protected $productType = GoogleCloudVisionV1p1beta1Product::class;
protected $productDataType = '';
/**
* A confidence level on the match, ranging from 0 (no confidence) to 1 (full
* confidence).
*
* @var float
*/
public $score;
/**
* The resource name of the image from the product that is the closest match
* to the query.
*
* @param string $image
*/
public function setImage($image)
{
$this->image = $image;
}
/**
* @return string
*/
public function getImage()
{
return $this->image;
}
/**
* The Product.
*
* @param GoogleCloudVisionV1p1beta1Product $product
*/
public function setProduct(GoogleCloudVisionV1p1beta1Product $product)
{
$this->product = $product;
}
/**
* @return GoogleCloudVisionV1p1beta1Product
*/
public function getProduct()
{
return $this->product;
}
/**
* A confidence level on the match, ranging from 0 (no confidence) to 1 (full
* confidence).
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1ProductSearchResultsResult::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1ProductSearchResultsResult');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Property extends \Google\Model
{
/**
* Name of the property.
*
* @var string
*/
public $name;
/**
* Value of numeric properties.
*
* @var string
*/
public $uint64Value;
/**
* Value of the property.
*
* @var string
*/
public $value;
/**
* Name of the property.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Value of numeric properties.
*
* @param string $uint64Value
*/
public function setUint64Value($uint64Value)
{
$this->uint64Value = $uint64Value;
}
/**
* @return string
*/
public function getUint64Value()
{
return $this->uint64Value;
}
/**
* Value of the property.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Property::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Property');

View File

@@ -0,0 +1,287 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1SafeSearchAnnotation extends \Google\Model
{
/**
* Unknown likelihood.
*/
public const ADULT_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const ADULT_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const ADULT_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const ADULT_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const ADULT_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const ADULT_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const MEDICAL_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const MEDICAL_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const MEDICAL_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const MEDICAL_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const MEDICAL_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const MEDICAL_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const RACY_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const RACY_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const RACY_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const RACY_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const RACY_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const RACY_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SPOOF_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SPOOF_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SPOOF_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SPOOF_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SPOOF_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SPOOF_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const VIOLENCE_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const VIOLENCE_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const VIOLENCE_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const VIOLENCE_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const VIOLENCE_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const VIOLENCE_VERY_LIKELY = 'VERY_LIKELY';
/**
* Represents the adult content likelihood for the image. Adult content may
* contain elements such as nudity, pornographic images or cartoons, or sexual
* activities.
*
* @var string
*/
public $adult;
/**
* Likelihood that this is a medical image.
*
* @var string
*/
public $medical;
/**
* Likelihood that the request image contains racy content. Racy content may
* include (but is not limited to) skimpy or sheer clothing, strategically
* covered nudity, lewd or provocative poses, or close-ups of sensitive body
* areas.
*
* @var string
*/
public $racy;
/**
* Spoof likelihood. The likelihood that an modification was made to the
* image's canonical version to make it appear funny or offensive.
*
* @var string
*/
public $spoof;
/**
* Likelihood that this image contains violent content. Violent content may
* include death, serious harm, or injury to individuals or groups of
* individuals.
*
* @var string
*/
public $violence;
/**
* Represents the adult content likelihood for the image. Adult content may
* contain elements such as nudity, pornographic images or cartoons, or sexual
* activities.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::ADULT_* $adult
*/
public function setAdult($adult)
{
$this->adult = $adult;
}
/**
* @return self::ADULT_*
*/
public function getAdult()
{
return $this->adult;
}
/**
* Likelihood that this is a medical image.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::MEDICAL_* $medical
*/
public function setMedical($medical)
{
$this->medical = $medical;
}
/**
* @return self::MEDICAL_*
*/
public function getMedical()
{
return $this->medical;
}
/**
* Likelihood that the request image contains racy content. Racy content may
* include (but is not limited to) skimpy or sheer clothing, strategically
* covered nudity, lewd or provocative poses, or close-ups of sensitive body
* areas.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::RACY_* $racy
*/
public function setRacy($racy)
{
$this->racy = $racy;
}
/**
* @return self::RACY_*
*/
public function getRacy()
{
return $this->racy;
}
/**
* Spoof likelihood. The likelihood that an modification was made to the
* image's canonical version to make it appear funny or offensive.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SPOOF_* $spoof
*/
public function setSpoof($spoof)
{
$this->spoof = $spoof;
}
/**
* @return self::SPOOF_*
*/
public function getSpoof()
{
return $this->spoof;
}
/**
* Likelihood that this image contains violent content. Violent content may
* include death, serious harm, or injury to individuals or groups of
* individuals.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::VIOLENCE_* $violence
*/
public function setViolence($violence)
{
$this->violence = $violence;
}
/**
* @return self::VIOLENCE_*
*/
public function getViolence()
{
return $this->violence;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1SafeSearchAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1SafeSearchAnnotation');

View File

@@ -0,0 +1,112 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Symbol extends \Google\Model
{
protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingBoxDataType = '';
/**
* Confidence of the OCR results for the symbol. Range [0, 1].
*
* @var float
*/
public $confidence;
protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
protected $propertyDataType = '';
/**
* The actual UTF-8 representation of the symbol.
*
* @var string
*/
public $text;
/**
* The bounding box for the symbol. The vertices are in the order of top-left,
* top-right, bottom-right, bottom-left. When a rotation of the bounding box
* is detected the rotation is represented as around the top-left corner as
* defined when the text is read in the 'natural' orientation. For example: *
* when the text is horizontal it might look like: 0----1 | | 3----2 * when
* it's rotated 180 degrees around the top-left corner it becomes: 2----3 | |
* 1----0 and the vertex order will still be (0, 1, 2, 3).
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox
*/
public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* Confidence of the OCR results for the symbol. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Additional information detected for the symbol.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property
*/
public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
{
$this->property = $property;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
*/
public function getProperty()
{
return $this->property;
}
/**
* The actual UTF-8 representation of the symbol.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Symbol::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Symbol');

View File

@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1TextAnnotation extends \Google\Collection
{
protected $collection_key = 'pages';
protected $pagesType = GoogleCloudVisionV1p1beta1Page::class;
protected $pagesDataType = 'array';
/**
* UTF-8 text detected on the pages.
*
* @var string
*/
public $text;
/**
* List of pages detected by OCR.
*
* @param GoogleCloudVisionV1p1beta1Page[] $pages
*/
public function setPages($pages)
{
$this->pages = $pages;
}
/**
* @return GoogleCloudVisionV1p1beta1Page[]
*/
public function getPages()
{
return $this->pages;
}
/**
* UTF-8 text detected on the pages.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1TextAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotation');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak extends \Google\Model
{
/**
* Unknown break label type.
*/
public const TYPE_UNKNOWN = 'UNKNOWN';
/**
* Regular space.
*/
public const TYPE_SPACE = 'SPACE';
/**
* Sure space (very wide).
*/
public const TYPE_SURE_SPACE = 'SURE_SPACE';
/**
* Line-wrapping break.
*/
public const TYPE_EOL_SURE_SPACE = 'EOL_SURE_SPACE';
/**
* End-line hyphen that is not present in text; does not co-occur with
* `SPACE`, `LEADER_SPACE`, or `LINE_BREAK`.
*/
public const TYPE_HYPHEN = 'HYPHEN';
/**
* Line break that ends a paragraph.
*/
public const TYPE_LINE_BREAK = 'LINE_BREAK';
/**
* True if break prepends the element.
*
* @var bool
*/
public $isPrefix;
/**
* Detected break type.
*
* @var string
*/
public $type;
/**
* True if break prepends the element.
*
* @param bool $isPrefix
*/
public function setIsPrefix($isPrefix)
{
$this->isPrefix = $isPrefix;
}
/**
* @return bool
*/
public function getIsPrefix()
{
return $this->isPrefix;
}
/**
* Detected break type.
*
* Accepted values: UNKNOWN, SPACE, SURE_SPACE, EOL_SURE_SPACE, HYPHEN,
* LINE_BREAK
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage extends \Google\Model
{
/**
* Confidence of detected language. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Confidence of detected language. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1TextAnnotationTextProperty extends \Google\Collection
{
protected $collection_key = 'detectedLanguages';
protected $detectedBreakType = GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak::class;
protected $detectedBreakDataType = '';
protected $detectedLanguagesType = GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage::class;
protected $detectedLanguagesDataType = 'array';
/**
* Detected start or end of a text segment.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak $detectedBreak
*/
public function setDetectedBreak(GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak $detectedBreak)
{
$this->detectedBreak = $detectedBreak;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationDetectedBreak
*/
public function getDetectedBreak()
{
return $this->detectedBreak;
}
/**
* A list of detected languages together with confidence.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage[] $detectedLanguages
*/
public function setDetectedLanguages($detectedLanguages)
{
$this->detectedLanguages = $detectedLanguages;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationDetectedLanguage[]
*/
public function getDetectedLanguages()
{
return $this->detectedLanguages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1TextAnnotationTextProperty');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Vertex extends \Google\Model
{
/**
* X coordinate.
*
* @var int
*/
public $x;
/**
* Y coordinate.
*
* @var int
*/
public $y;
/**
* X coordinate.
*
* @param int $x
*/
public function setX($x)
{
$this->x = $x;
}
/**
* @return int
*/
public function getX()
{
return $this->x;
}
/**
* Y coordinate.
*
* @param int $y
*/
public function setY($y)
{
$this->y = $y;
}
/**
* @return int
*/
public function getY()
{
return $this->y;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Vertex::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Vertex');

View File

@@ -0,0 +1,139 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1WebDetection extends \Google\Collection
{
protected $collection_key = 'webEntities';
protected $bestGuessLabelsType = GoogleCloudVisionV1p1beta1WebDetectionWebLabel::class;
protected $bestGuessLabelsDataType = 'array';
protected $fullMatchingImagesType = GoogleCloudVisionV1p1beta1WebDetectionWebImage::class;
protected $fullMatchingImagesDataType = 'array';
protected $pagesWithMatchingImagesType = GoogleCloudVisionV1p1beta1WebDetectionWebPage::class;
protected $pagesWithMatchingImagesDataType = 'array';
protected $partialMatchingImagesType = GoogleCloudVisionV1p1beta1WebDetectionWebImage::class;
protected $partialMatchingImagesDataType = 'array';
protected $visuallySimilarImagesType = GoogleCloudVisionV1p1beta1WebDetectionWebImage::class;
protected $visuallySimilarImagesDataType = 'array';
protected $webEntitiesType = GoogleCloudVisionV1p1beta1WebDetectionWebEntity::class;
protected $webEntitiesDataType = 'array';
/**
* The service's best guess as to the topic of the request image. Inferred
* from similar images on the open web.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebLabel[] $bestGuessLabels
*/
public function setBestGuessLabels($bestGuessLabels)
{
$this->bestGuessLabels = $bestGuessLabels;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebLabel[]
*/
public function getBestGuessLabels()
{
return $this->bestGuessLabels;
}
/**
* Fully matching images from the Internet. Can include resized copies of the
* query image.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebImage[] $fullMatchingImages
*/
public function setFullMatchingImages($fullMatchingImages)
{
$this->fullMatchingImages = $fullMatchingImages;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebImage[]
*/
public function getFullMatchingImages()
{
return $this->fullMatchingImages;
}
/**
* Web pages containing the matching images from the Internet.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebPage[] $pagesWithMatchingImages
*/
public function setPagesWithMatchingImages($pagesWithMatchingImages)
{
$this->pagesWithMatchingImages = $pagesWithMatchingImages;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebPage[]
*/
public function getPagesWithMatchingImages()
{
return $this->pagesWithMatchingImages;
}
/**
* Partial matching images from the Internet. Those images are similar enough
* to share some key-point features. For example an original image will likely
* have partial matching for its crops.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebImage[] $partialMatchingImages
*/
public function setPartialMatchingImages($partialMatchingImages)
{
$this->partialMatchingImages = $partialMatchingImages;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebImage[]
*/
public function getPartialMatchingImages()
{
return $this->partialMatchingImages;
}
/**
* The visually similar image results.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebImage[] $visuallySimilarImages
*/
public function setVisuallySimilarImages($visuallySimilarImages)
{
$this->visuallySimilarImages = $visuallySimilarImages;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebImage[]
*/
public function getVisuallySimilarImages()
{
return $this->visuallySimilarImages;
}
/**
* Deduced entities from similar images on the Internet.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebEntity[] $webEntities
*/
public function setWebEntities($webEntities)
{
$this->webEntities = $webEntities;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebEntity[]
*/
public function getWebEntities()
{
return $this->webEntities;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1WebDetection::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetection');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1WebDetectionWebEntity extends \Google\Model
{
/**
* Canonical description of the entity, in English.
*
* @var string
*/
public $description;
/**
* Opaque entity ID.
*
* @var string
*/
public $entityId;
/**
* Overall relevancy score for the entity. Not normalized and not comparable
* across different image queries.
*
* @var float
*/
public $score;
/**
* Canonical description of the entity, in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Opaque entity ID.
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* Overall relevancy score for the entity. Not normalized and not comparable
* across different image queries.
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1WebDetectionWebEntity::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebEntity');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1WebDetectionWebImage extends \Google\Model
{
/**
* (Deprecated) Overall relevancy score for the image.
*
* @var float
*/
public $score;
/**
* The result image URL.
*
* @var string
*/
public $url;
/**
* (Deprecated) Overall relevancy score for the image.
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
/**
* The result image URL.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1WebDetectionWebImage::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebImage');

View File

@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1WebDetectionWebLabel extends \Google\Model
{
/**
* Label for extra metadata.
*
* @var string
*/
public $label;
/**
* The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". For
* more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Label for extra metadata.
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* The BCP-47 language code for `label`, such as "en-US" or "sr-Latn". For
* more information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1WebDetectionWebLabel::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebLabel');

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1WebDetectionWebPage extends \Google\Collection
{
protected $collection_key = 'partialMatchingImages';
protected $fullMatchingImagesType = GoogleCloudVisionV1p1beta1WebDetectionWebImage::class;
protected $fullMatchingImagesDataType = 'array';
/**
* Title for the web page, may contain HTML markups.
*
* @var string
*/
public $pageTitle;
protected $partialMatchingImagesType = GoogleCloudVisionV1p1beta1WebDetectionWebImage::class;
protected $partialMatchingImagesDataType = 'array';
/**
* (Deprecated) Overall relevancy score for the web page.
*
* @var float
*/
public $score;
/**
* The result web page URL.
*
* @var string
*/
public $url;
/**
* Fully matching images on the page. Can include resized copies of the query
* image.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebImage[] $fullMatchingImages
*/
public function setFullMatchingImages($fullMatchingImages)
{
$this->fullMatchingImages = $fullMatchingImages;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebImage[]
*/
public function getFullMatchingImages()
{
return $this->fullMatchingImages;
}
/**
* Title for the web page, may contain HTML markups.
*
* @param string $pageTitle
*/
public function setPageTitle($pageTitle)
{
$this->pageTitle = $pageTitle;
}
/**
* @return string
*/
public function getPageTitle()
{
return $this->pageTitle;
}
/**
* Partial matching images on the page. Those images are similar enough to
* share some key-point features. For example an original image will likely
* have partial matching for its crops.
*
* @param GoogleCloudVisionV1p1beta1WebDetectionWebImage[] $partialMatchingImages
*/
public function setPartialMatchingImages($partialMatchingImages)
{
$this->partialMatchingImages = $partialMatchingImages;
}
/**
* @return GoogleCloudVisionV1p1beta1WebDetectionWebImage[]
*/
public function getPartialMatchingImages()
{
return $this->partialMatchingImages;
}
/**
* (Deprecated) Overall relevancy score for the web page.
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
/**
* The result web page URL.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1WebDetectionWebPage::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1WebDetectionWebPage');

View File

@@ -0,0 +1,110 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p1beta1Word extends \Google\Collection
{
protected $collection_key = 'symbols';
protected $boundingBoxType = GoogleCloudVisionV1p1beta1BoundingPoly::class;
protected $boundingBoxDataType = '';
/**
* Confidence of the OCR results for the word. Range [0, 1].
*
* @var float
*/
public $confidence;
protected $propertyType = GoogleCloudVisionV1p1beta1TextAnnotationTextProperty::class;
protected $propertyDataType = '';
protected $symbolsType = GoogleCloudVisionV1p1beta1Symbol::class;
protected $symbolsDataType = 'array';
/**
* The bounding box for the word. The vertices are in the order of top-left,
* top-right, bottom-right, bottom-left. When a rotation of the bounding box
* is detected the rotation is represented as around the top-left corner as
* defined when the text is read in the 'natural' orientation. For example: *
* when the text is horizontal it might look like: 0----1 | | 3----2 * when
* it's rotated 180 degrees around the top-left corner it becomes: 2----3 | |
* 1----0 and the vertex order will still be (0, 1, 2, 3).
*
* @param GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox
*/
public function setBoundingBox(GoogleCloudVisionV1p1beta1BoundingPoly $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return GoogleCloudVisionV1p1beta1BoundingPoly
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* Confidence of the OCR results for the word. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Additional information detected for the word.
*
* @param GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property
*/
public function setProperty(GoogleCloudVisionV1p1beta1TextAnnotationTextProperty $property)
{
$this->property = $property;
}
/**
* @return GoogleCloudVisionV1p1beta1TextAnnotationTextProperty
*/
public function getProperty()
{
return $this->property;
}
/**
* List of symbols in the word. The order of the symbols follows the natural
* reading order.
*
* @param GoogleCloudVisionV1p1beta1Symbol[] $symbols
*/
public function setSymbols($symbols)
{
$this->symbols = $symbols;
}
/**
* @return GoogleCloudVisionV1p1beta1Symbol[]
*/
public function getSymbols()
{
return $this->symbols;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p1beta1Word::class, 'Google_Service_Vision_GoogleCloudVisionV1p1beta1Word');

View File

@@ -0,0 +1,105 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1AnnotateFileResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $errorType = Status::class;
protected $errorDataType = '';
protected $inputConfigType = GoogleCloudVisionV1p2beta1InputConfig::class;
protected $inputConfigDataType = '';
protected $responsesType = GoogleCloudVisionV1p2beta1AnnotateImageResponse::class;
protected $responsesDataType = 'array';
/**
* This field gives the total number of pages in the file.
*
* @var int
*/
public $totalPages;
/**
* If set, represents the error message for the failed request. The
* `responses` field will not be set in this case.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* Information about the file for which this response is generated.
*
* @param GoogleCloudVisionV1p2beta1InputConfig $inputConfig
*/
public function setInputConfig(GoogleCloudVisionV1p2beta1InputConfig $inputConfig)
{
$this->inputConfig = $inputConfig;
}
/**
* @return GoogleCloudVisionV1p2beta1InputConfig
*/
public function getInputConfig()
{
return $this->inputConfig;
}
/**
* Individual responses to images found within the file. This field will be
* empty if the `error` field is set.
*
* @param GoogleCloudVisionV1p2beta1AnnotateImageResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return GoogleCloudVisionV1p2beta1AnnotateImageResponse[]
*/
public function getResponses()
{
return $this->responses;
}
/**
* This field gives the total number of pages in the file.
*
* @param int $totalPages
*/
public function setTotalPages($totalPages)
{
$this->totalPages = $totalPages;
}
/**
* @return int
*/
public function getTotalPages()
{
return $this->totalPages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1AnnotateFileResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1AnnotateFileResponse');

View File

@@ -0,0 +1,284 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1AnnotateImageResponse extends \Google\Collection
{
protected $collection_key = 'textAnnotations';
protected $contextType = GoogleCloudVisionV1p2beta1ImageAnnotationContext::class;
protected $contextDataType = '';
protected $cropHintsAnnotationType = GoogleCloudVisionV1p2beta1CropHintsAnnotation::class;
protected $cropHintsAnnotationDataType = '';
protected $errorType = Status::class;
protected $errorDataType = '';
protected $faceAnnotationsType = GoogleCloudVisionV1p2beta1FaceAnnotation::class;
protected $faceAnnotationsDataType = 'array';
protected $fullTextAnnotationType = GoogleCloudVisionV1p2beta1TextAnnotation::class;
protected $fullTextAnnotationDataType = '';
protected $imagePropertiesAnnotationType = GoogleCloudVisionV1p2beta1ImageProperties::class;
protected $imagePropertiesAnnotationDataType = '';
protected $labelAnnotationsType = GoogleCloudVisionV1p2beta1EntityAnnotation::class;
protected $labelAnnotationsDataType = 'array';
protected $landmarkAnnotationsType = GoogleCloudVisionV1p2beta1EntityAnnotation::class;
protected $landmarkAnnotationsDataType = 'array';
protected $localizedObjectAnnotationsType = GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation::class;
protected $localizedObjectAnnotationsDataType = 'array';
protected $logoAnnotationsType = GoogleCloudVisionV1p2beta1EntityAnnotation::class;
protected $logoAnnotationsDataType = 'array';
protected $productSearchResultsType = GoogleCloudVisionV1p2beta1ProductSearchResults::class;
protected $productSearchResultsDataType = '';
protected $safeSearchAnnotationType = GoogleCloudVisionV1p2beta1SafeSearchAnnotation::class;
protected $safeSearchAnnotationDataType = '';
protected $textAnnotationsType = GoogleCloudVisionV1p2beta1EntityAnnotation::class;
protected $textAnnotationsDataType = 'array';
protected $webDetectionType = GoogleCloudVisionV1p2beta1WebDetection::class;
protected $webDetectionDataType = '';
/**
* If present, contextual information is needed to understand where this image
* comes from.
*
* @param GoogleCloudVisionV1p2beta1ImageAnnotationContext $context
*/
public function setContext(GoogleCloudVisionV1p2beta1ImageAnnotationContext $context)
{
$this->context = $context;
}
/**
* @return GoogleCloudVisionV1p2beta1ImageAnnotationContext
*/
public function getContext()
{
return $this->context;
}
/**
* If present, crop hints have completed successfully.
*
* @param GoogleCloudVisionV1p2beta1CropHintsAnnotation $cropHintsAnnotation
*/
public function setCropHintsAnnotation(GoogleCloudVisionV1p2beta1CropHintsAnnotation $cropHintsAnnotation)
{
$this->cropHintsAnnotation = $cropHintsAnnotation;
}
/**
* @return GoogleCloudVisionV1p2beta1CropHintsAnnotation
*/
public function getCropHintsAnnotation()
{
return $this->cropHintsAnnotation;
}
/**
* If set, represents the error message for the operation. Note that filled-in
* image annotations are guaranteed to be correct, even when `error` is set.
*
* @param Status $error
*/
public function setError(Status $error)
{
$this->error = $error;
}
/**
* @return Status
*/
public function getError()
{
return $this->error;
}
/**
* If present, face detection has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1FaceAnnotation[] $faceAnnotations
*/
public function setFaceAnnotations($faceAnnotations)
{
$this->faceAnnotations = $faceAnnotations;
}
/**
* @return GoogleCloudVisionV1p2beta1FaceAnnotation[]
*/
public function getFaceAnnotations()
{
return $this->faceAnnotations;
}
/**
* If present, text (OCR) detection or document (OCR) text detection has
* completed successfully. This annotation provides the structural hierarchy
* for the OCR detected text.
*
* @param GoogleCloudVisionV1p2beta1TextAnnotation $fullTextAnnotation
*/
public function setFullTextAnnotation(GoogleCloudVisionV1p2beta1TextAnnotation $fullTextAnnotation)
{
$this->fullTextAnnotation = $fullTextAnnotation;
}
/**
* @return GoogleCloudVisionV1p2beta1TextAnnotation
*/
public function getFullTextAnnotation()
{
return $this->fullTextAnnotation;
}
/**
* If present, image properties were extracted successfully.
*
* @param GoogleCloudVisionV1p2beta1ImageProperties $imagePropertiesAnnotation
*/
public function setImagePropertiesAnnotation(GoogleCloudVisionV1p2beta1ImageProperties $imagePropertiesAnnotation)
{
$this->imagePropertiesAnnotation = $imagePropertiesAnnotation;
}
/**
* @return GoogleCloudVisionV1p2beta1ImageProperties
*/
public function getImagePropertiesAnnotation()
{
return $this->imagePropertiesAnnotation;
}
/**
* If present, label detection has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1EntityAnnotation[] $labelAnnotations
*/
public function setLabelAnnotations($labelAnnotations)
{
$this->labelAnnotations = $labelAnnotations;
}
/**
* @return GoogleCloudVisionV1p2beta1EntityAnnotation[]
*/
public function getLabelAnnotations()
{
return $this->labelAnnotations;
}
/**
* If present, landmark detection has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1EntityAnnotation[] $landmarkAnnotations
*/
public function setLandmarkAnnotations($landmarkAnnotations)
{
$this->landmarkAnnotations = $landmarkAnnotations;
}
/**
* @return GoogleCloudVisionV1p2beta1EntityAnnotation[]
*/
public function getLandmarkAnnotations()
{
return $this->landmarkAnnotations;
}
/**
* If present, localized object detection has completed successfully. This
* will be sorted descending by confidence score.
*
* @param GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation[] $localizedObjectAnnotations
*/
public function setLocalizedObjectAnnotations($localizedObjectAnnotations)
{
$this->localizedObjectAnnotations = $localizedObjectAnnotations;
}
/**
* @return GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation[]
*/
public function getLocalizedObjectAnnotations()
{
return $this->localizedObjectAnnotations;
}
/**
* If present, logo detection has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1EntityAnnotation[] $logoAnnotations
*/
public function setLogoAnnotations($logoAnnotations)
{
$this->logoAnnotations = $logoAnnotations;
}
/**
* @return GoogleCloudVisionV1p2beta1EntityAnnotation[]
*/
public function getLogoAnnotations()
{
return $this->logoAnnotations;
}
/**
* If present, product search has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1ProductSearchResults $productSearchResults
*/
public function setProductSearchResults(GoogleCloudVisionV1p2beta1ProductSearchResults $productSearchResults)
{
$this->productSearchResults = $productSearchResults;
}
/**
* @return GoogleCloudVisionV1p2beta1ProductSearchResults
*/
public function getProductSearchResults()
{
return $this->productSearchResults;
}
/**
* If present, safe-search annotation has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1SafeSearchAnnotation $safeSearchAnnotation
*/
public function setSafeSearchAnnotation(GoogleCloudVisionV1p2beta1SafeSearchAnnotation $safeSearchAnnotation)
{
$this->safeSearchAnnotation = $safeSearchAnnotation;
}
/**
* @return GoogleCloudVisionV1p2beta1SafeSearchAnnotation
*/
public function getSafeSearchAnnotation()
{
return $this->safeSearchAnnotation;
}
/**
* If present, text (OCR) detection has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1EntityAnnotation[] $textAnnotations
*/
public function setTextAnnotations($textAnnotations)
{
$this->textAnnotations = $textAnnotations;
}
/**
* @return GoogleCloudVisionV1p2beta1EntityAnnotation[]
*/
public function getTextAnnotations()
{
return $this->textAnnotations;
}
/**
* If present, web detection has completed successfully.
*
* @param GoogleCloudVisionV1p2beta1WebDetection $webDetection
*/
public function setWebDetection(GoogleCloudVisionV1p2beta1WebDetection $webDetection)
{
$this->webDetection = $webDetection;
}
/**
* @return GoogleCloudVisionV1p2beta1WebDetection
*/
public function getWebDetection()
{
return $this->webDetection;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1AnnotateImageResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1AnnotateImageResponse');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse extends \Google\Model
{
protected $outputConfigType = GoogleCloudVisionV1p2beta1OutputConfig::class;
protected $outputConfigDataType = '';
/**
* The output location and metadata from AsyncAnnotateFileRequest.
*
* @param GoogleCloudVisionV1p2beta1OutputConfig $outputConfig
*/
public function setOutputConfig(GoogleCloudVisionV1p2beta1OutputConfig $outputConfig)
{
$this->outputConfig = $outputConfig;
}
/**
* @return GoogleCloudVisionV1p2beta1OutputConfig
*/
public function getOutputConfig()
{
return $this->outputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse');

View File

@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse extends \Google\Collection
{
protected $collection_key = 'responses';
protected $responsesType = GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse::class;
protected $responsesDataType = 'array';
/**
* The list of file annotation responses, one for each request in
* AsyncBatchAnnotateFilesRequest.
*
* @param GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[] $responses
*/
public function setResponses($responses)
{
$this->responses = $responses;
}
/**
* @return GoogleCloudVisionV1p2beta1AsyncAnnotateFileResponse[]
*/
public function getResponses()
{
return $this->responses;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1AsyncBatchAnnotateFilesResponse');

View File

@@ -0,0 +1,157 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1Block extends \Google\Collection
{
/**
* Unknown block type.
*/
public const BLOCK_TYPE_UNKNOWN = 'UNKNOWN';
/**
* Regular text block.
*/
public const BLOCK_TYPE_TEXT = 'TEXT';
/**
* Table block.
*/
public const BLOCK_TYPE_TABLE = 'TABLE';
/**
* Image block.
*/
public const BLOCK_TYPE_PICTURE = 'PICTURE';
/**
* Horizontal/vertical line box.
*/
public const BLOCK_TYPE_RULER = 'RULER';
/**
* Barcode block.
*/
public const BLOCK_TYPE_BARCODE = 'BARCODE';
protected $collection_key = 'paragraphs';
/**
* Detected block type (text, image etc) for this block.
*
* @var string
*/
public $blockType;
protected $boundingBoxType = GoogleCloudVisionV1p2beta1BoundingPoly::class;
protected $boundingBoxDataType = '';
/**
* Confidence of the OCR results on the block. Range [0, 1].
*
* @var float
*/
public $confidence;
protected $paragraphsType = GoogleCloudVisionV1p2beta1Paragraph::class;
protected $paragraphsDataType = 'array';
protected $propertyType = GoogleCloudVisionV1p2beta1TextAnnotationTextProperty::class;
protected $propertyDataType = '';
/**
* Detected block type (text, image etc) for this block.
*
* Accepted values: UNKNOWN, TEXT, TABLE, PICTURE, RULER, BARCODE
*
* @param self::BLOCK_TYPE_* $blockType
*/
public function setBlockType($blockType)
{
$this->blockType = $blockType;
}
/**
* @return self::BLOCK_TYPE_*
*/
public function getBlockType()
{
return $this->blockType;
}
/**
* The bounding box for the block. The vertices are in the order of top-left,
* top-right, bottom-right, bottom-left. When a rotation of the bounding box
* is detected the rotation is represented as around the top-left corner as
* defined when the text is read in the 'natural' orientation. For example: *
* when the text is horizontal it might look like: 0----1 | | 3----2 * when
* it's rotated 180 degrees around the top-left corner it becomes: 2----3 | |
* 1----0 and the vertex order will still be (0, 1, 2, 3).
*
* @param GoogleCloudVisionV1p2beta1BoundingPoly $boundingBox
*/
public function setBoundingBox(GoogleCloudVisionV1p2beta1BoundingPoly $boundingBox)
{
$this->boundingBox = $boundingBox;
}
/**
* @return GoogleCloudVisionV1p2beta1BoundingPoly
*/
public function getBoundingBox()
{
return $this->boundingBox;
}
/**
* Confidence of the OCR results on the block. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* List of paragraphs in this block (if this blocks is of type text).
*
* @param GoogleCloudVisionV1p2beta1Paragraph[] $paragraphs
*/
public function setParagraphs($paragraphs)
{
$this->paragraphs = $paragraphs;
}
/**
* @return GoogleCloudVisionV1p2beta1Paragraph[]
*/
public function getParagraphs()
{
return $this->paragraphs;
}
/**
* Additional information detected for the block.
*
* @param GoogleCloudVisionV1p2beta1TextAnnotationTextProperty $property
*/
public function setProperty(GoogleCloudVisionV1p2beta1TextAnnotationTextProperty $property)
{
$this->property = $property;
}
/**
* @return GoogleCloudVisionV1p2beta1TextAnnotationTextProperty
*/
public function getProperty()
{
return $this->property;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1Block::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1Block');

View File

@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1BoundingPoly extends \Google\Collection
{
protected $collection_key = 'vertices';
protected $normalizedVerticesType = GoogleCloudVisionV1p2beta1NormalizedVertex::class;
protected $normalizedVerticesDataType = 'array';
protected $verticesType = GoogleCloudVisionV1p2beta1Vertex::class;
protected $verticesDataType = 'array';
/**
* The bounding polygon normalized vertices.
*
* @param GoogleCloudVisionV1p2beta1NormalizedVertex[] $normalizedVertices
*/
public function setNormalizedVertices($normalizedVertices)
{
$this->normalizedVertices = $normalizedVertices;
}
/**
* @return GoogleCloudVisionV1p2beta1NormalizedVertex[]
*/
public function getNormalizedVertices()
{
return $this->normalizedVertices;
}
/**
* The bounding polygon vertices.
*
* @param GoogleCloudVisionV1p2beta1Vertex[] $vertices
*/
public function setVertices($vertices)
{
$this->vertices = $vertices;
}
/**
* @return GoogleCloudVisionV1p2beta1Vertex[]
*/
public function getVertices()
{
return $this->vertices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1BoundingPoly::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1BoundingPoly');

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1ColorInfo extends \Google\Model
{
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* The fraction of pixels the color occupies in the image. Value in range [0,
* 1].
*
* @var float
*/
public $pixelFraction;
/**
* Image-specific score for this color. Value in range [0, 1].
*
* @var float
*/
public $score;
/**
* RGB components of the color.
*
* @param Color $color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* The fraction of pixels the color occupies in the image. Value in range [0,
* 1].
*
* @param float $pixelFraction
*/
public function setPixelFraction($pixelFraction)
{
$this->pixelFraction = $pixelFraction;
}
/**
* @return float
*/
public function getPixelFraction()
{
return $this->pixelFraction;
}
/**
* Image-specific score for this color. Value in range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1ColorInfo::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1ColorInfo');

View File

@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1CropHint extends \Google\Model
{
protected $boundingPolyType = GoogleCloudVisionV1p2beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* Confidence of this being a salient region. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* Fraction of importance of this salient region with respect to the original
* image.
*
* @var float
*/
public $importanceFraction;
/**
* The bounding polygon for the crop region. The coordinates of the bounding
* box are in the original image's scale.
*
* @param GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p2beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* Confidence of this being a salient region. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Fraction of importance of this salient region with respect to the original
* image.
*
* @param float $importanceFraction
*/
public function setImportanceFraction($importanceFraction)
{
$this->importanceFraction = $importanceFraction;
}
/**
* @return float
*/
public function getImportanceFraction()
{
return $this->importanceFraction;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1CropHint::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1CropHint');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1CropHintsAnnotation extends \Google\Collection
{
protected $collection_key = 'cropHints';
protected $cropHintsType = GoogleCloudVisionV1p2beta1CropHint::class;
protected $cropHintsDataType = 'array';
/**
* Crop hint results.
*
* @param GoogleCloudVisionV1p2beta1CropHint[] $cropHints
*/
public function setCropHints($cropHints)
{
$this->cropHints = $cropHints;
}
/**
* @return GoogleCloudVisionV1p2beta1CropHint[]
*/
public function getCropHints()
{
return $this->cropHints;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1CropHintsAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1CropHintsAnnotation');

View File

@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1DominantColorsAnnotation extends \Google\Collection
{
protected $collection_key = 'colors';
protected $colorsType = GoogleCloudVisionV1p2beta1ColorInfo::class;
protected $colorsDataType = 'array';
/**
* RGB color values with their score and pixel fraction.
*
* @param GoogleCloudVisionV1p2beta1ColorInfo[] $colors
*/
public function setColors($colors)
{
$this->colors = $colors;
}
/**
* @return GoogleCloudVisionV1p2beta1ColorInfo[]
*/
public function getColors()
{
return $this->colors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1DominantColorsAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1DominantColorsAnnotation');

View File

@@ -0,0 +1,240 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1EntityAnnotation extends \Google\Collection
{
protected $collection_key = 'properties';
protected $boundingPolyType = GoogleCloudVisionV1p2beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* **Deprecated. Use `score` instead.** The accuracy of the entity detection
* in an image. For example, for an image in which the "Eiffel Tower" entity
* is detected, this field represents the confidence that there is a tower in
* the query image. Range [0, 1].
*
* @deprecated
* @var float
*/
public $confidence;
/**
* Entity textual description, expressed in its `locale` language.
*
* @var string
*/
public $description;
/**
* The language code for the locale in which the entity textual `description`
* is expressed.
*
* @var string
*/
public $locale;
protected $locationsType = GoogleCloudVisionV1p2beta1LocationInfo::class;
protected $locationsDataType = 'array';
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @var string
*/
public $mid;
protected $propertiesType = GoogleCloudVisionV1p2beta1Property::class;
protected $propertiesDataType = 'array';
/**
* Overall score of the result. Range [0, 1].
*
* @var float
*/
public $score;
/**
* The relevancy of the ICA (Image Content Annotation) label to the image. For
* example, the relevancy of "tower" is likely higher to an image containing
* the detected "Eiffel Tower" than to an image containing a detected distant
* towering building, even though the confidence that there is a tower in each
* image may be the same. Range [0, 1].
*
* @var float
*/
public $topicality;
/**
* Image region to which this entity belongs. Not produced for
* `LABEL_DETECTION` features.
*
* @param GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p2beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* **Deprecated. Use `score` instead.** The accuracy of the entity detection
* in an image. For example, for an image in which the "Eiffel Tower" entity
* is detected, this field represents the confidence that there is a tower in
* the query image. Range [0, 1].
*
* @deprecated
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @deprecated
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Entity textual description, expressed in its `locale` language.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The language code for the locale in which the entity textual `description`
* is expressed.
*
* @param string $locale
*/
public function setLocale($locale)
{
$this->locale = $locale;
}
/**
* @return string
*/
public function getLocale()
{
return $this->locale;
}
/**
* The location information for the detected entity. Multiple `LocationInfo`
* elements can be present because one location may indicate the location of
* the scene in the image, and another location may indicate the location of
* the place where the image was taken. Location information is usually
* present for landmarks.
*
* @param GoogleCloudVisionV1p2beta1LocationInfo[] $locations
*/
public function setLocations($locations)
{
$this->locations = $locations;
}
/**
* @return GoogleCloudVisionV1p2beta1LocationInfo[]
*/
public function getLocations()
{
return $this->locations;
}
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @param string $mid
*/
public function setMid($mid)
{
$this->mid = $mid;
}
/**
* @return string
*/
public function getMid()
{
return $this->mid;
}
/**
* Some entities may have optional user-supplied `Property` (name/value)
* fields, such a score or string that qualifies the entity.
*
* @param GoogleCloudVisionV1p2beta1Property[] $properties
*/
public function setProperties($properties)
{
$this->properties = $properties;
}
/**
* @return GoogleCloudVisionV1p2beta1Property[]
*/
public function getProperties()
{
return $this->properties;
}
/**
* Overall score of the result. Range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
/**
* The relevancy of the ICA (Image Content Annotation) label to the image. For
* example, the relevancy of "tower" is likely higher to an image containing
* the detected "Eiffel Tower" than to an image containing a detected distant
* towering building, even though the confidence that there is a tower in each
* image may be the same. Range [0, 1].
*
* @param float $topicality
*/
public function setTopicality($topicality)
{
$this->topicality = $topicality;
}
/**
* @return float
*/
public function getTopicality()
{
return $this->topicality;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1EntityAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1EntityAnnotation');

View File

@@ -0,0 +1,553 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1FaceAnnotation extends \Google\Collection
{
/**
* Unknown likelihood.
*/
public const ANGER_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const ANGER_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const ANGER_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const ANGER_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const ANGER_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const ANGER_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const BLURRED_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const BLURRED_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const BLURRED_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const BLURRED_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const BLURRED_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const BLURRED_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const HEADWEAR_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const HEADWEAR_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const HEADWEAR_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const HEADWEAR_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const HEADWEAR_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const HEADWEAR_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const JOY_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const JOY_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const JOY_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const JOY_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const JOY_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const JOY_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SORROW_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SORROW_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SORROW_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SORROW_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SORROW_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SORROW_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const SURPRISE_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const SURPRISE_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const SURPRISE_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const SURPRISE_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const SURPRISE_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const SURPRISE_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Unknown likelihood.
*/
public const UNDER_EXPOSED_LIKELIHOOD_UNKNOWN = 'UNKNOWN';
/**
* It is very unlikely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* It is unlikely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* It is possible.
*/
public const UNDER_EXPOSED_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* It is likely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* It is very likely.
*/
public const UNDER_EXPOSED_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
protected $collection_key = 'landmarks';
/**
* Anger likelihood.
*
* @var string
*/
public $angerLikelihood;
/**
* Blurred likelihood.
*
* @var string
*/
public $blurredLikelihood;
protected $boundingPolyType = GoogleCloudVisionV1p2beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* Detection confidence. Range [0, 1].
*
* @var float
*/
public $detectionConfidence;
protected $fdBoundingPolyType = GoogleCloudVisionV1p2beta1BoundingPoly::class;
protected $fdBoundingPolyDataType = '';
/**
* Headwear likelihood.
*
* @var string
*/
public $headwearLikelihood;
/**
* Joy likelihood.
*
* @var string
*/
public $joyLikelihood;
/**
* Face landmarking confidence. Range [0, 1].
*
* @var float
*/
public $landmarkingConfidence;
protected $landmarksType = GoogleCloudVisionV1p2beta1FaceAnnotationLandmark::class;
protected $landmarksDataType = 'array';
/**
* Yaw angle, which indicates the leftward/rightward angle that the face is
* pointing relative to the vertical plane perpendicular to the image. Range
* [-180,180].
*
* @var float
*/
public $panAngle;
/**
* Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
* of the face relative to the image vertical about the axis perpendicular to
* the face. Range [-180,180].
*
* @var float
*/
public $rollAngle;
/**
* Sorrow likelihood.
*
* @var string
*/
public $sorrowLikelihood;
/**
* Surprise likelihood.
*
* @var string
*/
public $surpriseLikelihood;
/**
* Pitch angle, which indicates the upwards/downwards angle that the face is
* pointing relative to the image's horizontal plane. Range [-180,180].
*
* @var float
*/
public $tiltAngle;
/**
* Under-exposed likelihood.
*
* @var string
*/
public $underExposedLikelihood;
/**
* Anger likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::ANGER_LIKELIHOOD_* $angerLikelihood
*/
public function setAngerLikelihood($angerLikelihood)
{
$this->angerLikelihood = $angerLikelihood;
}
/**
* @return self::ANGER_LIKELIHOOD_*
*/
public function getAngerLikelihood()
{
return $this->angerLikelihood;
}
/**
* Blurred likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::BLURRED_LIKELIHOOD_* $blurredLikelihood
*/
public function setBlurredLikelihood($blurredLikelihood)
{
$this->blurredLikelihood = $blurredLikelihood;
}
/**
* @return self::BLURRED_LIKELIHOOD_*
*/
public function getBlurredLikelihood()
{
return $this->blurredLikelihood;
}
/**
* The bounding polygon around the face. The coordinates of the bounding box
* are in the original image's scale. The bounding box is computed to "frame"
* the face in accordance with human expectations. It is based on the
* landmarker results. Note that one or more x and/or y coordinates may not be
* generated in the `BoundingPoly` (the polygon will be unbounded) if only a
* partial face appears in the image to be annotated.
*
* @param GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p2beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* Detection confidence. Range [0, 1].
*
* @param float $detectionConfidence
*/
public function setDetectionConfidence($detectionConfidence)
{
$this->detectionConfidence = $detectionConfidence;
}
/**
* @return float
*/
public function getDetectionConfidence()
{
return $this->detectionConfidence;
}
/**
* The `fd_bounding_poly` bounding polygon is tighter than the `boundingPoly`,
* and encloses only the skin part of the face. Typically, it is used to
* eliminate the face from any image analysis that detects the "amount of
* skin" visible in an image. It is not based on the landmarker results, only
* on the initial face detection, hence the fd (face detection) prefix.
*
* @param GoogleCloudVisionV1p2beta1BoundingPoly $fdBoundingPoly
*/
public function setFdBoundingPoly(GoogleCloudVisionV1p2beta1BoundingPoly $fdBoundingPoly)
{
$this->fdBoundingPoly = $fdBoundingPoly;
}
/**
* @return GoogleCloudVisionV1p2beta1BoundingPoly
*/
public function getFdBoundingPoly()
{
return $this->fdBoundingPoly;
}
/**
* Headwear likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::HEADWEAR_LIKELIHOOD_* $headwearLikelihood
*/
public function setHeadwearLikelihood($headwearLikelihood)
{
$this->headwearLikelihood = $headwearLikelihood;
}
/**
* @return self::HEADWEAR_LIKELIHOOD_*
*/
public function getHeadwearLikelihood()
{
return $this->headwearLikelihood;
}
/**
* Joy likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::JOY_LIKELIHOOD_* $joyLikelihood
*/
public function setJoyLikelihood($joyLikelihood)
{
$this->joyLikelihood = $joyLikelihood;
}
/**
* @return self::JOY_LIKELIHOOD_*
*/
public function getJoyLikelihood()
{
return $this->joyLikelihood;
}
/**
* Face landmarking confidence. Range [0, 1].
*
* @param float $landmarkingConfidence
*/
public function setLandmarkingConfidence($landmarkingConfidence)
{
$this->landmarkingConfidence = $landmarkingConfidence;
}
/**
* @return float
*/
public function getLandmarkingConfidence()
{
return $this->landmarkingConfidence;
}
/**
* Detected face landmarks.
*
* @param GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[] $landmarks
*/
public function setLandmarks($landmarks)
{
$this->landmarks = $landmarks;
}
/**
* @return GoogleCloudVisionV1p2beta1FaceAnnotationLandmark[]
*/
public function getLandmarks()
{
return $this->landmarks;
}
/**
* Yaw angle, which indicates the leftward/rightward angle that the face is
* pointing relative to the vertical plane perpendicular to the image. Range
* [-180,180].
*
* @param float $panAngle
*/
public function setPanAngle($panAngle)
{
$this->panAngle = $panAngle;
}
/**
* @return float
*/
public function getPanAngle()
{
return $this->panAngle;
}
/**
* Roll angle, which indicates the amount of clockwise/anti-clockwise rotation
* of the face relative to the image vertical about the axis perpendicular to
* the face. Range [-180,180].
*
* @param float $rollAngle
*/
public function setRollAngle($rollAngle)
{
$this->rollAngle = $rollAngle;
}
/**
* @return float
*/
public function getRollAngle()
{
return $this->rollAngle;
}
/**
* Sorrow likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SORROW_LIKELIHOOD_* $sorrowLikelihood
*/
public function setSorrowLikelihood($sorrowLikelihood)
{
$this->sorrowLikelihood = $sorrowLikelihood;
}
/**
* @return self::SORROW_LIKELIHOOD_*
*/
public function getSorrowLikelihood()
{
return $this->sorrowLikelihood;
}
/**
* Surprise likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::SURPRISE_LIKELIHOOD_* $surpriseLikelihood
*/
public function setSurpriseLikelihood($surpriseLikelihood)
{
$this->surpriseLikelihood = $surpriseLikelihood;
}
/**
* @return self::SURPRISE_LIKELIHOOD_*
*/
public function getSurpriseLikelihood()
{
return $this->surpriseLikelihood;
}
/**
* Pitch angle, which indicates the upwards/downwards angle that the face is
* pointing relative to the image's horizontal plane. Range [-180,180].
*
* @param float $tiltAngle
*/
public function setTiltAngle($tiltAngle)
{
$this->tiltAngle = $tiltAngle;
}
/**
* @return float
*/
public function getTiltAngle()
{
return $this->tiltAngle;
}
/**
* Under-exposed likelihood.
*
* Accepted values: UNKNOWN, VERY_UNLIKELY, UNLIKELY, POSSIBLE, LIKELY,
* VERY_LIKELY
*
* @param self::UNDER_EXPOSED_LIKELIHOOD_* $underExposedLikelihood
*/
public function setUnderExposedLikelihood($underExposedLikelihood)
{
$this->underExposedLikelihood = $underExposedLikelihood;
}
/**
* @return self::UNDER_EXPOSED_LIKELIHOOD_*
*/
public function getUnderExposedLikelihood()
{
return $this->underExposedLikelihood;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1FaceAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1FaceAnnotation');

View File

@@ -0,0 +1,226 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1FaceAnnotationLandmark extends \Google\Model
{
/**
* Unknown face landmark detected. Should not be filled.
*/
public const TYPE_UNKNOWN_LANDMARK = 'UNKNOWN_LANDMARK';
/**
* Left eye.
*/
public const TYPE_LEFT_EYE = 'LEFT_EYE';
/**
* Right eye.
*/
public const TYPE_RIGHT_EYE = 'RIGHT_EYE';
/**
* Left of left eyebrow.
*/
public const TYPE_LEFT_OF_LEFT_EYEBROW = 'LEFT_OF_LEFT_EYEBROW';
/**
* Right of left eyebrow.
*/
public const TYPE_RIGHT_OF_LEFT_EYEBROW = 'RIGHT_OF_LEFT_EYEBROW';
/**
* Left of right eyebrow.
*/
public const TYPE_LEFT_OF_RIGHT_EYEBROW = 'LEFT_OF_RIGHT_EYEBROW';
/**
* Right of right eyebrow.
*/
public const TYPE_RIGHT_OF_RIGHT_EYEBROW = 'RIGHT_OF_RIGHT_EYEBROW';
/**
* Midpoint between eyes.
*/
public const TYPE_MIDPOINT_BETWEEN_EYES = 'MIDPOINT_BETWEEN_EYES';
/**
* Nose tip.
*/
public const TYPE_NOSE_TIP = 'NOSE_TIP';
/**
* Upper lip.
*/
public const TYPE_UPPER_LIP = 'UPPER_LIP';
/**
* Lower lip.
*/
public const TYPE_LOWER_LIP = 'LOWER_LIP';
/**
* Mouth left.
*/
public const TYPE_MOUTH_LEFT = 'MOUTH_LEFT';
/**
* Mouth right.
*/
public const TYPE_MOUTH_RIGHT = 'MOUTH_RIGHT';
/**
* Mouth center.
*/
public const TYPE_MOUTH_CENTER = 'MOUTH_CENTER';
/**
* Nose, bottom right.
*/
public const TYPE_NOSE_BOTTOM_RIGHT = 'NOSE_BOTTOM_RIGHT';
/**
* Nose, bottom left.
*/
public const TYPE_NOSE_BOTTOM_LEFT = 'NOSE_BOTTOM_LEFT';
/**
* Nose, bottom center.
*/
public const TYPE_NOSE_BOTTOM_CENTER = 'NOSE_BOTTOM_CENTER';
/**
* Left eye, top boundary.
*/
public const TYPE_LEFT_EYE_TOP_BOUNDARY = 'LEFT_EYE_TOP_BOUNDARY';
/**
* Left eye, right corner.
*/
public const TYPE_LEFT_EYE_RIGHT_CORNER = 'LEFT_EYE_RIGHT_CORNER';
/**
* Left eye, bottom boundary.
*/
public const TYPE_LEFT_EYE_BOTTOM_BOUNDARY = 'LEFT_EYE_BOTTOM_BOUNDARY';
/**
* Left eye, left corner.
*/
public const TYPE_LEFT_EYE_LEFT_CORNER = 'LEFT_EYE_LEFT_CORNER';
/**
* Right eye, top boundary.
*/
public const TYPE_RIGHT_EYE_TOP_BOUNDARY = 'RIGHT_EYE_TOP_BOUNDARY';
/**
* Right eye, right corner.
*/
public const TYPE_RIGHT_EYE_RIGHT_CORNER = 'RIGHT_EYE_RIGHT_CORNER';
/**
* Right eye, bottom boundary.
*/
public const TYPE_RIGHT_EYE_BOTTOM_BOUNDARY = 'RIGHT_EYE_BOTTOM_BOUNDARY';
/**
* Right eye, left corner.
*/
public const TYPE_RIGHT_EYE_LEFT_CORNER = 'RIGHT_EYE_LEFT_CORNER';
/**
* Left eyebrow, upper midpoint.
*/
public const TYPE_LEFT_EYEBROW_UPPER_MIDPOINT = 'LEFT_EYEBROW_UPPER_MIDPOINT';
/**
* Right eyebrow, upper midpoint.
*/
public const TYPE_RIGHT_EYEBROW_UPPER_MIDPOINT = 'RIGHT_EYEBROW_UPPER_MIDPOINT';
/**
* Left ear tragion.
*/
public const TYPE_LEFT_EAR_TRAGION = 'LEFT_EAR_TRAGION';
/**
* Right ear tragion.
*/
public const TYPE_RIGHT_EAR_TRAGION = 'RIGHT_EAR_TRAGION';
/**
* Left eye pupil.
*/
public const TYPE_LEFT_EYE_PUPIL = 'LEFT_EYE_PUPIL';
/**
* Right eye pupil.
*/
public const TYPE_RIGHT_EYE_PUPIL = 'RIGHT_EYE_PUPIL';
/**
* Forehead glabella.
*/
public const TYPE_FOREHEAD_GLABELLA = 'FOREHEAD_GLABELLA';
/**
* Chin gnathion.
*/
public const TYPE_CHIN_GNATHION = 'CHIN_GNATHION';
/**
* Chin left gonion.
*/
public const TYPE_CHIN_LEFT_GONION = 'CHIN_LEFT_GONION';
/**
* Chin right gonion.
*/
public const TYPE_CHIN_RIGHT_GONION = 'CHIN_RIGHT_GONION';
/**
* Left cheek center.
*/
public const TYPE_LEFT_CHEEK_CENTER = 'LEFT_CHEEK_CENTER';
/**
* Right cheek center.
*/
public const TYPE_RIGHT_CHEEK_CENTER = 'RIGHT_CHEEK_CENTER';
protected $positionType = GoogleCloudVisionV1p2beta1Position::class;
protected $positionDataType = '';
/**
* Face landmark type.
*
* @var string
*/
public $type;
/**
* Face landmark position.
*
* @param GoogleCloudVisionV1p2beta1Position $position
*/
public function setPosition(GoogleCloudVisionV1p2beta1Position $position)
{
$this->position = $position;
}
/**
* @return GoogleCloudVisionV1p2beta1Position
*/
public function getPosition()
{
return $this->position;
}
/**
* Face landmark type.
*
* Accepted values: UNKNOWN_LANDMARK, LEFT_EYE, RIGHT_EYE,
* LEFT_OF_LEFT_EYEBROW, RIGHT_OF_LEFT_EYEBROW, LEFT_OF_RIGHT_EYEBROW,
* RIGHT_OF_RIGHT_EYEBROW, MIDPOINT_BETWEEN_EYES, NOSE_TIP, UPPER_LIP,
* LOWER_LIP, MOUTH_LEFT, MOUTH_RIGHT, MOUTH_CENTER, NOSE_BOTTOM_RIGHT,
* NOSE_BOTTOM_LEFT, NOSE_BOTTOM_CENTER, LEFT_EYE_TOP_BOUNDARY,
* LEFT_EYE_RIGHT_CORNER, LEFT_EYE_BOTTOM_BOUNDARY, LEFT_EYE_LEFT_CORNER,
* RIGHT_EYE_TOP_BOUNDARY, RIGHT_EYE_RIGHT_CORNER, RIGHT_EYE_BOTTOM_BOUNDARY,
* RIGHT_EYE_LEFT_CORNER, LEFT_EYEBROW_UPPER_MIDPOINT,
* RIGHT_EYEBROW_UPPER_MIDPOINT, LEFT_EAR_TRAGION, RIGHT_EAR_TRAGION,
* LEFT_EYE_PUPIL, RIGHT_EYE_PUPIL, FOREHEAD_GLABELLA, CHIN_GNATHION,
* CHIN_LEFT_GONION, CHIN_RIGHT_GONION, LEFT_CHEEK_CENTER, RIGHT_CHEEK_CENTER
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1FaceAnnotationLandmark::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1FaceAnnotationLandmark');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1GcsDestination extends \Google\Model
{
/**
* Google Cloud Storage URI prefix where the results will be stored. Results
* will be in JSON format and preceded by its corresponding input URI prefix.
* This field can either represent a gcs file prefix or gcs directory. In
* either case, the uri should be unique because in order to get all of the
* output files, you will need to do a wildcard gcs search on the uri prefix
* you provide. Examples: * File Prefix: gs://bucket-name/here/filenameprefix
* The output files will be created in gs://bucket-name/here/ and the names of
* the output files will begin with "filenameprefix". * Directory Prefix:
* gs://bucket-name/some/location/ The output files will be created in
* gs://bucket-name/some/location/ and the names of the output files could be
* anything because there was no filename prefix specified. If multiple
* outputs, each response is still AnnotateFileResponse, each of which
* contains some subset of the full list of AnnotateImageResponse. Multiple
* outputs can happen if, for example, the output JSON is too large and
* overflows into multiple sharded files.
*
* @var string
*/
public $uri;
/**
* Google Cloud Storage URI prefix where the results will be stored. Results
* will be in JSON format and preceded by its corresponding input URI prefix.
* This field can either represent a gcs file prefix or gcs directory. In
* either case, the uri should be unique because in order to get all of the
* output files, you will need to do a wildcard gcs search on the uri prefix
* you provide. Examples: * File Prefix: gs://bucket-name/here/filenameprefix
* The output files will be created in gs://bucket-name/here/ and the names of
* the output files will begin with "filenameprefix". * Directory Prefix:
* gs://bucket-name/some/location/ The output files will be created in
* gs://bucket-name/some/location/ and the names of the output files could be
* anything because there was no filename prefix specified. If multiple
* outputs, each response is still AnnotateFileResponse, each of which
* contains some subset of the full list of AnnotateImageResponse. Multiple
* outputs can happen if, for example, the output JSON is too large and
* overflows into multiple sharded files.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1GcsDestination::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1GcsDestination');

View File

@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1GcsSource extends \Google\Model
{
/**
* Google Cloud Storage URI for the input file. This must only be a Google
* Cloud Storage object. Wildcards are not currently supported.
*
* @var string
*/
public $uri;
/**
* Google Cloud Storage URI for the input file. This must only be a Google
* Cloud Storage object. Wildcards are not currently supported.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1GcsSource::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1GcsSource');

View File

@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1ImageAnnotationContext extends \Google\Model
{
/**
* If the file was a PDF or TIFF, this field gives the page number within the
* file used to produce the image.
*
* @var int
*/
public $pageNumber;
/**
* The URI of the file used to produce the image.
*
* @var string
*/
public $uri;
/**
* If the file was a PDF or TIFF, this field gives the page number within the
* file used to produce the image.
*
* @param int $pageNumber
*/
public function setPageNumber($pageNumber)
{
$this->pageNumber = $pageNumber;
}
/**
* @return int
*/
public function getPageNumber()
{
return $this->pageNumber;
}
/**
* The URI of the file used to produce the image.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1ImageAnnotationContext::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1ImageAnnotationContext');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1ImageProperties extends \Google\Model
{
protected $dominantColorsType = GoogleCloudVisionV1p2beta1DominantColorsAnnotation::class;
protected $dominantColorsDataType = '';
/**
* If present, dominant colors completed successfully.
*
* @param GoogleCloudVisionV1p2beta1DominantColorsAnnotation $dominantColors
*/
public function setDominantColors(GoogleCloudVisionV1p2beta1DominantColorsAnnotation $dominantColors)
{
$this->dominantColors = $dominantColors;
}
/**
* @return GoogleCloudVisionV1p2beta1DominantColorsAnnotation
*/
public function getDominantColors()
{
return $this->dominantColors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1ImageProperties::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1ImageProperties');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1InputConfig extends \Google\Model
{
/**
* File content, represented as a stream of bytes. Note: As with all `bytes`
* fields, protobuffers use a pure binary representation, whereas JSON
* representations use base64. Currently, this field only works for
* BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles
* requests.
*
* @var string
*/
public $content;
protected $gcsSourceType = GoogleCloudVisionV1p2beta1GcsSource::class;
protected $gcsSourceDataType = '';
/**
* The type of the file. Currently only "application/pdf", "image/tiff" and
* "image/gif" are supported. Wildcards are not supported.
*
* @var string
*/
public $mimeType;
/**
* File content, represented as a stream of bytes. Note: As with all `bytes`
* fields, protobuffers use a pure binary representation, whereas JSON
* representations use base64. Currently, this field only works for
* BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles
* requests.
*
* @param string $content
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* The Google Cloud Storage location to read the input from.
*
* @param GoogleCloudVisionV1p2beta1GcsSource $gcsSource
*/
public function setGcsSource(GoogleCloudVisionV1p2beta1GcsSource $gcsSource)
{
$this->gcsSource = $gcsSource;
}
/**
* @return GoogleCloudVisionV1p2beta1GcsSource
*/
public function getGcsSource()
{
return $this->gcsSource;
}
/**
* The type of the file. Currently only "application/pdf", "image/tiff" and
* "image/gif" are supported. Wildcards are not supported.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1InputConfig::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1InputConfig');

View File

@@ -0,0 +1,136 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation extends \Google\Model
{
protected $boundingPolyType = GoogleCloudVisionV1p2beta1BoundingPoly::class;
protected $boundingPolyDataType = '';
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @var string
*/
public $languageCode;
/**
* Object ID that should align with EntityAnnotation mid.
*
* @var string
*/
public $mid;
/**
* Object name, expressed in its `language_code` language.
*
* @var string
*/
public $name;
/**
* Score of the result. Range [0, 1].
*
* @var float
*/
public $score;
/**
* Image region to which this object belongs. This must be populated.
*
* @param GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly
*/
public function setBoundingPoly(GoogleCloudVisionV1p2beta1BoundingPoly $boundingPoly)
{
$this->boundingPoly = $boundingPoly;
}
/**
* @return GoogleCloudVisionV1p2beta1BoundingPoly
*/
public function getBoundingPoly()
{
return $this->boundingPoly;
}
/**
* The BCP-47 language code, such as "en-US" or "sr-Latn". For more
* information, see
* http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Object ID that should align with EntityAnnotation mid.
*
* @param string $mid
*/
public function setMid($mid)
{
$this->mid = $mid;
}
/**
* @return string
*/
public function getMid()
{
return $this->mid;
}
/**
* Object name, expressed in its `language_code` language.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Score of the result. Range [0, 1].
*
* @param float $score
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1LocalizedObjectAnnotation');

View File

@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1LocationInfo extends \Google\Model
{
protected $latLngType = LatLng::class;
protected $latLngDataType = '';
/**
* lat/long location coordinates.
*
* @param LatLng $latLng
*/
public function setLatLng(LatLng $latLng)
{
$this->latLng = $latLng;
}
/**
* @return LatLng
*/
public function getLatLng()
{
return $this->latLng;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1LocationInfo::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1LocationInfo');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1NormalizedVertex extends \Google\Model
{
/**
* X coordinate.
*
* @var float
*/
public $x;
/**
* Y coordinate.
*
* @var float
*/
public $y;
/**
* X coordinate.
*
* @param float $x
*/
public function setX($x)
{
$this->x = $x;
}
/**
* @return float
*/
public function getX()
{
return $this->x;
}
/**
* Y coordinate.
*
* @param float $y
*/
public function setY($y)
{
$this->y = $y;
}
/**
* @return float
*/
public function getY()
{
return $this->y;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1NormalizedVertex::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1NormalizedVertex');

View File

@@ -0,0 +1,114 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Vision;
class GoogleCloudVisionV1p2beta1OperationMetadata extends \Google\Model
{
/**
* Invalid.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Request is received.
*/
public const STATE_CREATED = 'CREATED';
/**
* Request is actively being processed.
*/
public const STATE_RUNNING = 'RUNNING';
/**
* The batch processing is done.
*/
public const STATE_DONE = 'DONE';
/**
* The batch processing was cancelled.
*/
public const STATE_CANCELLED = 'CANCELLED';
/**
* The time when the batch request was received.
*
* @var string
*/
public $createTime;
/**
* Current state of the batch operation.
*
* @var string
*/
public $state;
/**
* The time when the operation result was last updated.
*
* @var string
*/
public $updateTime;
/**
* The time when the batch request was received.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Current state of the batch operation.
*
* Accepted values: STATE_UNSPECIFIED, CREATED, RUNNING, DONE, CANCELLED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* The time when the operation result was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVisionV1p2beta1OperationMetadata::class, 'Google_Service_Vision_GoogleCloudVisionV1p2beta1OperationMetadata');

Some files were not shown because too many files have changed in this diff Show More