gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1AnnotateVideoProgress extends \Google\Collection
{
protected $collection_key = 'annotationProgress';
protected $annotationProgressType = GoogleCloudVideointelligenceV1VideoAnnotationProgress::class;
protected $annotationProgressDataType = 'array';
/**
* Progress metadata for all videos specified in `AnnotateVideoRequest`.
*
* @param GoogleCloudVideointelligenceV1VideoAnnotationProgress[] $annotationProgress
*/
public function setAnnotationProgress($annotationProgress)
{
$this->annotationProgress = $annotationProgress;
}
/**
* @return GoogleCloudVideointelligenceV1VideoAnnotationProgress[]
*/
public function getAnnotationProgress()
{
return $this->annotationProgress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1AnnotateVideoProgress::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1AnnotateVideoProgress');
@@ -0,0 +1,189 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1AnnotateVideoRequest extends \Google\Collection
{
protected $collection_key = 'features';
/**
* Required. Requested video annotation features.
*
* @var string[]
*/
public $features;
/**
* The video data bytes. If unset, the input video(s) should be specified via
* the `input_uri`. If set, `input_uri` must be unset.
*
* @var string
*/
public $inputContent;
/**
* Input video location. Currently, only [Cloud
* Storage](https://cloud.google.com/storage/) URIs are supported. URIs must
* be specified in the following format: `gs://bucket-id/object-id` (other URI
* formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). To
* identify multiple videos, a video URI may include wildcards in the `object-
* id`. Supported wildcards: '*' to match 0 or more characters; '?' to match 1
* character. If unset, the input video should be embedded in the request as
* `input_content`. If set, `input_content` must be unset.
*
* @var string
*/
public $inputUri;
/**
* Optional. Cloud region where annotation should take place. Supported cloud
* regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
* region is specified, the region will be determined based on video file
* location.
*
* @var string
*/
public $locationId;
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Cloud Storage](https://cloud.google.com/storage/) URIs are
* supported. These must be specified in the following format: `gs://bucket-
* id/object-id` (other URI formats return google.rpc.Code.INVALID_ARGUMENT).
* For more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
*
* @var string
*/
public $outputUri;
protected $videoContextType = GoogleCloudVideointelligenceV1VideoContext::class;
protected $videoContextDataType = '';
/**
* Required. Requested video annotation features.
*
* @param string[] $features
*/
public function setFeatures($features)
{
$this->features = $features;
}
/**
* @return string[]
*/
public function getFeatures()
{
return $this->features;
}
/**
* The video data bytes. If unset, the input video(s) should be specified via
* the `input_uri`. If set, `input_uri` must be unset.
*
* @param string $inputContent
*/
public function setInputContent($inputContent)
{
$this->inputContent = $inputContent;
}
/**
* @return string
*/
public function getInputContent()
{
return $this->inputContent;
}
/**
* Input video location. Currently, only [Cloud
* Storage](https://cloud.google.com/storage/) URIs are supported. URIs must
* be specified in the following format: `gs://bucket-id/object-id` (other URI
* formats return google.rpc.Code.INVALID_ARGUMENT). For more information, see
* [Request URIs](https://cloud.google.com/storage/docs/request-endpoints). To
* identify multiple videos, a video URI may include wildcards in the `object-
* id`. Supported wildcards: '*' to match 0 or more characters; '?' to match 1
* character. If unset, the input video should be embedded in the request as
* `input_content`. If set, `input_content` must be unset.
*
* @param string $inputUri
*/
public function setInputUri($inputUri)
{
$this->inputUri = $inputUri;
}
/**
* @return string
*/
public function getInputUri()
{
return $this->inputUri;
}
/**
* Optional. Cloud region where annotation should take place. Supported cloud
* regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
* region is specified, the region will be determined based on video file
* location.
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Optional. Location where the output (in JSON format) should be stored.
* Currently, only [Cloud Storage](https://cloud.google.com/storage/) URIs are
* supported. These must be specified in the following format: `gs://bucket-
* id/object-id` (other URI formats return google.rpc.Code.INVALID_ARGUMENT).
* For more information, see [Request
* URIs](https://cloud.google.com/storage/docs/request-endpoints).
*
* @param string $outputUri
*/
public function setOutputUri($outputUri)
{
$this->outputUri = $outputUri;
}
/**
* @return string
*/
public function getOutputUri()
{
return $this->outputUri;
}
/**
* Additional video context and/or feature-specific parameters.
*
* @param GoogleCloudVideointelligenceV1VideoContext $videoContext
*/
public function setVideoContext(GoogleCloudVideointelligenceV1VideoContext $videoContext)
{
$this->videoContext = $videoContext;
}
/**
* @return GoogleCloudVideointelligenceV1VideoContext
*/
public function getVideoContext()
{
return $this->videoContext;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1AnnotateVideoRequest::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1AnnotateVideoRequest');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1AnnotateVideoResponse extends \Google\Collection
{
protected $collection_key = 'annotationResults';
protected $annotationResultsType = GoogleCloudVideointelligenceV1VideoAnnotationResults::class;
protected $annotationResultsDataType = 'array';
/**
* Annotation results for all videos specified in `AnnotateVideoRequest`.
*
* @param GoogleCloudVideointelligenceV1VideoAnnotationResults[] $annotationResults
*/
public function setAnnotationResults($annotationResults)
{
$this->annotationResults = $annotationResults;
}
/**
* @return GoogleCloudVideointelligenceV1VideoAnnotationResults[]
*/
public function getAnnotationResults()
{
return $this->annotationResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1AnnotateVideoResponse::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1AnnotateVideoResponse');
@@ -0,0 +1,96 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1DetectedAttribute extends \Google\Model
{
/**
* Detected attribute confidence. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The name of the attribute, for example, glasses, dark_glasses, mouth_open.
* A full list of supported type names will be provided in the document.
*
* @var string
*/
public $name;
/**
* Text value of the detection result. For example, the value for "HairColor"
* can be "black", "blonde", etc.
*
* @var string
*/
public $value;
/**
* Detected attribute confidence. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The name of the attribute, for example, glasses, dark_glasses, mouth_open.
* A full list of supported type names will be provided in the document.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Text value of the detection result. For example, the value for "HairColor"
* can be "black", "blonde", etc.
*
* @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(GoogleCloudVideointelligenceV1DetectedAttribute::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1DetectedAttribute');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1DetectedLandmark extends \Google\Model
{
/**
* The confidence score of the detected landmark. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The name of this landmark, for example, left_hand, right_shoulder.
*
* @var string
*/
public $name;
protected $pointType = GoogleCloudVideointelligenceV1NormalizedVertex::class;
protected $pointDataType = '';
/**
* The confidence score of the detected landmark. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The name of this landmark, for example, left_hand, right_shoulder.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The 2D point of the detected landmark using the normalized image coordinate
* system. The normalized coordinates have the range from 0 to 1.
*
* @param GoogleCloudVideointelligenceV1NormalizedVertex $point
*/
public function setPoint(GoogleCloudVideointelligenceV1NormalizedVertex $point)
{
$this->point = $point;
}
/**
* @return GoogleCloudVideointelligenceV1NormalizedVertex
*/
public function getPoint()
{
return $this->point;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1DetectedLandmark::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1DetectedLandmark');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1Entity extends \Google\Model
{
/**
* Textual description, e.g., `Fixed-gear bicycle`.
*
* @var string
*/
public $description;
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @var string
*/
public $entityId;
/**
* Language code for `description` in BCP-47 format.
*
* @var string
*/
public $languageCode;
/**
* Textual description, e.g., `Fixed-gear bicycle`.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* Language code for `description` in BCP-47 format.
*
* @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(GoogleCloudVideointelligenceV1Entity::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1Entity');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ExplicitContentAnnotation extends \Google\Collection
{
protected $collection_key = 'frames';
protected $framesType = GoogleCloudVideointelligenceV1ExplicitContentFrame::class;
protected $framesDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* All video frames where explicit content was detected.
*
* @param GoogleCloudVideointelligenceV1ExplicitContentFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1ExplicitContentFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ExplicitContentAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ExplicitContentAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig extends \Google\Model
{
/**
* Model to use for explicit content detection. Supported values:
* "builtin/stable" (the default if unset) and "builtin/latest".
*
* @var string
*/
public $model;
/**
* Model to use for explicit content detection. Supported values:
* "builtin/stable" (the default if unset) and "builtin/latest".
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ExplicitContentFrame extends \Google\Model
{
/**
* Unspecified likelihood.
*/
public const PORNOGRAPHY_LIKELIHOOD_LIKELIHOOD_UNSPECIFIED = 'LIKELIHOOD_UNSPECIFIED';
/**
* Very unlikely.
*/
public const PORNOGRAPHY_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* Unlikely.
*/
public const PORNOGRAPHY_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* Possible.
*/
public const PORNOGRAPHY_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* Likely.
*/
public const PORNOGRAPHY_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* Very likely.
*/
public const PORNOGRAPHY_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Likelihood of the pornography content..
*
* @var string
*/
public $pornographyLikelihood;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Likelihood of the pornography content..
*
* Accepted values: LIKELIHOOD_UNSPECIFIED, VERY_UNLIKELY, UNLIKELY, POSSIBLE,
* LIKELY, VERY_LIKELY
*
* @param self::PORNOGRAPHY_LIKELIHOOD_* $pornographyLikelihood
*/
public function setPornographyLikelihood($pornographyLikelihood)
{
$this->pornographyLikelihood = $pornographyLikelihood;
}
/**
* @return self::PORNOGRAPHY_LIKELIHOOD_*
*/
public function getPornographyLikelihood()
{
return $this->pornographyLikelihood;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ExplicitContentFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ExplicitContentFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ExportToOutputUriStatus extends \Google\Model
{
/**
* Default value.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Export succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* Export failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. State of the `output_uri` export.
*
* @var string
*/
public $state;
protected $statusType = GoogleRpcStatus::class;
protected $statusDataType = '';
/**
* Output only. State of the `output_uri` export.
*
* Accepted values: STATE_UNSPECIFIED, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Only set if state is FAILED.
*
* @param GoogleRpcStatus $status
*/
public function setStatus(GoogleRpcStatus $status)
{
$this->status = $status;
}
/**
* @return GoogleRpcStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ExportToOutputUriStatus::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ExportToOutputUriStatus');
@@ -0,0 +1,85 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1FaceAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $framesType = GoogleCloudVideointelligenceV1FaceFrame::class;
protected $framesDataType = 'array';
protected $segmentsType = GoogleCloudVideointelligenceV1FaceSegment::class;
protected $segmentsDataType = 'array';
/**
* Thumbnail of a representative face view (in JPEG format).
*
* @var string
*/
public $thumbnail;
/**
* All video frames where a face was detected.
*
* @param GoogleCloudVideointelligenceV1FaceFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1FaceFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* All video segments where a face was detected.
*
* @param GoogleCloudVideointelligenceV1FaceSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1FaceSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Thumbnail of a representative face view (in JPEG format).
*
* @param string $thumbnail
*/
public function setThumbnail($thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return string
*/
public function getThumbnail()
{
return $this->thumbnail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1FaceAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1FaceAnnotation');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1FaceDetectionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
/**
* The thumbnail of a person's face.
*
* @var string
*/
public $thumbnail;
protected $tracksType = GoogleCloudVideointelligenceV1Track::class;
protected $tracksDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* The thumbnail of a person's face.
*
* @param string $thumbnail
*/
public function setThumbnail($thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return string
*/
public function getThumbnail()
{
return $this->thumbnail;
}
/**
* The face tracks with attributes.
*
* @param GoogleCloudVideointelligenceV1Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1Track[]
*/
public function getTracks()
{
return $this->tracks;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1FaceDetectionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1FaceDetectionAnnotation');
@@ -0,0 +1,96 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1FaceDetectionConfig extends \Google\Model
{
/**
* Whether to enable face attributes detection, such as glasses, dark_glasses,
* mouth_open etc. Ignored if 'include_bounding_boxes' is set to false.
*
* @var bool
*/
public $includeAttributes;
/**
* Whether bounding boxes are included in the face annotation output.
*
* @var bool
*/
public $includeBoundingBoxes;
/**
* Model to use for face detection. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @var string
*/
public $model;
/**
* Whether to enable face attributes detection, such as glasses, dark_glasses,
* mouth_open etc. Ignored if 'include_bounding_boxes' is set to false.
*
* @param bool $includeAttributes
*/
public function setIncludeAttributes($includeAttributes)
{
$this->includeAttributes = $includeAttributes;
}
/**
* @return bool
*/
public function getIncludeAttributes()
{
return $this->includeAttributes;
}
/**
* Whether bounding boxes are included in the face annotation output.
*
* @param bool $includeBoundingBoxes
*/
public function setIncludeBoundingBoxes($includeBoundingBoxes)
{
$this->includeBoundingBoxes = $includeBoundingBoxes;
}
/**
* @return bool
*/
public function getIncludeBoundingBoxes()
{
return $this->includeBoundingBoxes;
}
/**
* Model to use for face detection. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1FaceDetectionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1FaceDetectionConfig');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1FaceFrame extends \Google\Collection
{
protected $collection_key = 'normalizedBoundingBoxes';
protected $normalizedBoundingBoxesType = GoogleCloudVideointelligenceV1NormalizedBoundingBox::class;
protected $normalizedBoundingBoxesDataType = 'array';
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Normalized Bounding boxes in a frame. There can be more than one boxes if
* the same face is detected in multiple locations within the current frame.
*
* @param GoogleCloudVideointelligenceV1NormalizedBoundingBox[] $normalizedBoundingBoxes
*/
public function setNormalizedBoundingBoxes($normalizedBoundingBoxes)
{
$this->normalizedBoundingBoxes = $normalizedBoundingBoxes;
}
/**
* @return GoogleCloudVideointelligenceV1NormalizedBoundingBox[]
*/
public function getNormalizedBoundingBoxes()
{
return $this->normalizedBoundingBoxes;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1FaceFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1FaceFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1FaceSegment extends \Google\Model
{
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
/**
* Video segment where a face was detected.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1FaceSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1FaceSegment');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1LabelAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $categoryEntitiesType = GoogleCloudVideointelligenceV1Entity::class;
protected $categoryEntitiesDataType = 'array';
protected $entityType = GoogleCloudVideointelligenceV1Entity::class;
protected $entityDataType = '';
protected $framesType = GoogleCloudVideointelligenceV1LabelFrame::class;
protected $framesDataType = 'array';
protected $segmentsType = GoogleCloudVideointelligenceV1LabelSegment::class;
protected $segmentsDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* Common categories for the detected entity. For example, when the label is
* `Terrier`, the category is likely `dog`. And in some cases there might be
* more than one categories e.g., `Terrier` could also be a `pet`.
*
* @param GoogleCloudVideointelligenceV1Entity[] $categoryEntities
*/
public function setCategoryEntities($categoryEntities)
{
$this->categoryEntities = $categoryEntities;
}
/**
* @return GoogleCloudVideointelligenceV1Entity[]
*/
public function getCategoryEntities()
{
return $this->categoryEntities;
}
/**
* Detected entity.
*
* @param GoogleCloudVideointelligenceV1Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* All video frames where a label was detected.
*
* @param GoogleCloudVideointelligenceV1LabelFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1LabelFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* All video segments where a label was detected.
*
* @param GoogleCloudVideointelligenceV1LabelSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1LabelSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1LabelAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelAnnotation');
@@ -0,0 +1,183 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1LabelDetectionConfig extends \Google\Model
{
/**
* Unspecified.
*/
public const LABEL_DETECTION_MODE_LABEL_DETECTION_MODE_UNSPECIFIED = 'LABEL_DETECTION_MODE_UNSPECIFIED';
/**
* Detect shot-level labels.
*/
public const LABEL_DETECTION_MODE_SHOT_MODE = 'SHOT_MODE';
/**
* Detect frame-level labels.
*/
public const LABEL_DETECTION_MODE_FRAME_MODE = 'FRAME_MODE';
/**
* Detect both shot-level and frame-level labels.
*/
public const LABEL_DETECTION_MODE_SHOT_AND_FRAME_MODE = 'SHOT_AND_FRAME_MODE';
/**
* The confidence threshold we perform filtering on the labels from frame-
* level detection. If not set, it is set to 0.4 by default. The valid range
* for this threshold is [0.1, 0.9]. Any value set outside of this range will
* be clipped. Note: For best results, follow the default threshold. We will
* update the default threshold everytime when we release a new model.
*
* @var float
*/
public $frameConfidenceThreshold;
/**
* What labels should be detected with LABEL_DETECTION, in addition to video-
* level labels or segment-level labels. If unspecified, defaults to
* `SHOT_MODE`.
*
* @var string
*/
public $labelDetectionMode;
/**
* Model to use for label detection. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @var string
*/
public $model;
/**
* Whether the video has been shot from a stationary (i.e., non-moving)
* camera. When set to true, might improve detection accuracy for moving
* objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
*
* @var bool
*/
public $stationaryCamera;
/**
* The confidence threshold we perform filtering on the labels from video-
* level and shot-level detections. If not set, it's set to 0.3 by default.
* The valid range for this threshold is [0.1, 0.9]. Any value set outside of
* this range will be clipped. Note: For best results, follow the default
* threshold. We will update the default threshold everytime when we release a
* new model.
*
* @var float
*/
public $videoConfidenceThreshold;
/**
* The confidence threshold we perform filtering on the labels from frame-
* level detection. If not set, it is set to 0.4 by default. The valid range
* for this threshold is [0.1, 0.9]. Any value set outside of this range will
* be clipped. Note: For best results, follow the default threshold. We will
* update the default threshold everytime when we release a new model.
*
* @param float $frameConfidenceThreshold
*/
public function setFrameConfidenceThreshold($frameConfidenceThreshold)
{
$this->frameConfidenceThreshold = $frameConfidenceThreshold;
}
/**
* @return float
*/
public function getFrameConfidenceThreshold()
{
return $this->frameConfidenceThreshold;
}
/**
* What labels should be detected with LABEL_DETECTION, in addition to video-
* level labels or segment-level labels. If unspecified, defaults to
* `SHOT_MODE`.
*
* Accepted values: LABEL_DETECTION_MODE_UNSPECIFIED, SHOT_MODE, FRAME_MODE,
* SHOT_AND_FRAME_MODE
*
* @param self::LABEL_DETECTION_MODE_* $labelDetectionMode
*/
public function setLabelDetectionMode($labelDetectionMode)
{
$this->labelDetectionMode = $labelDetectionMode;
}
/**
* @return self::LABEL_DETECTION_MODE_*
*/
public function getLabelDetectionMode()
{
return $this->labelDetectionMode;
}
/**
* Model to use for label detection. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* Whether the video has been shot from a stationary (i.e., non-moving)
* camera. When set to true, might improve detection accuracy for moving
* objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
*
* @param bool $stationaryCamera
*/
public function setStationaryCamera($stationaryCamera)
{
$this->stationaryCamera = $stationaryCamera;
}
/**
* @return bool
*/
public function getStationaryCamera()
{
return $this->stationaryCamera;
}
/**
* The confidence threshold we perform filtering on the labels from video-
* level and shot-level detections. If not set, it's set to 0.3 by default.
* The valid range for this threshold is [0.1, 0.9]. Any value set outside of
* this range will be clipped. Note: For best results, follow the default
* threshold. We will update the default threshold everytime when we release a
* new model.
*
* @param float $videoConfidenceThreshold
*/
public function setVideoConfidenceThreshold($videoConfidenceThreshold)
{
$this->videoConfidenceThreshold = $videoConfidenceThreshold;
}
/**
* @return float
*/
public function getVideoConfidenceThreshold()
{
return $this->videoConfidenceThreshold;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1LabelDetectionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelDetectionConfig');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1LabelFrame extends \Google\Model
{
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @var float
*/
public $confidence;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1LabelFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelFrame');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1LabelSegment extends \Google\Model
{
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @var float
*/
public $confidence;
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Video segment where a label was detected.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1LabelSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LabelSegment');
@@ -0,0 +1,84 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1LogoRecognitionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
protected $entityType = GoogleCloudVideointelligenceV1Entity::class;
protected $entityDataType = '';
protected $segmentsType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentsDataType = 'array';
protected $tracksType = GoogleCloudVideointelligenceV1Track::class;
protected $tracksDataType = 'array';
/**
* Entity category information to specify the logo class that all the logo
* tracks within this LogoRecognitionAnnotation are recognized as.
*
* @param GoogleCloudVideointelligenceV1Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* All video segments where the recognized logo appears. There might be
* multiple instances of the same logo class appearing in one VideoSegment.
*
* @param GoogleCloudVideointelligenceV1VideoSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* All logo tracks where the recognized logo appears. Each track corresponds
* to one logo instance appearing in consecutive frames.
*
* @param GoogleCloudVideointelligenceV1Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1Track[]
*/
public function getTracks()
{
return $this->tracks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1LogoRecognitionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1LogoRecognitionAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1NormalizedBoundingBox extends \Google\Model
{
/**
* Bottom Y coordinate.
*
* @var float
*/
public $bottom;
/**
* Left X coordinate.
*
* @var float
*/
public $left;
/**
* Right X coordinate.
*
* @var float
*/
public $right;
/**
* Top Y coordinate.
*
* @var float
*/
public $top;
/**
* Bottom Y coordinate.
*
* @param float $bottom
*/
public function setBottom($bottom)
{
$this->bottom = $bottom;
}
/**
* @return float
*/
public function getBottom()
{
return $this->bottom;
}
/**
* Left X coordinate.
*
* @param float $left
*/
public function setLeft($left)
{
$this->left = $left;
}
/**
* @return float
*/
public function getLeft()
{
return $this->left;
}
/**
* Right X coordinate.
*
* @param float $right
*/
public function setRight($right)
{
$this->right = $right;
}
/**
* @return float
*/
public function getRight()
{
return $this->right;
}
/**
* Top Y coordinate.
*
* @param float $top
*/
public function setTop($top)
{
$this->top = $top;
}
/**
* @return float
*/
public function getTop()
{
return $this->top;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1NormalizedBoundingBox::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingBox');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1NormalizedBoundingPoly extends \Google\Collection
{
protected $collection_key = 'vertices';
protected $verticesType = GoogleCloudVideointelligenceV1NormalizedVertex::class;
protected $verticesDataType = 'array';
/**
* Normalized vertices of the bounding polygon.
*
* @param GoogleCloudVideointelligenceV1NormalizedVertex[] $vertices
*/
public function setVertices($vertices)
{
$this->vertices = $vertices;
}
/**
* @return GoogleCloudVideointelligenceV1NormalizedVertex[]
*/
public function getVertices()
{
return $this->vertices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1NormalizedBoundingPoly::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedBoundingPoly');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1NormalizedVertex 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(GoogleCloudVideointelligenceV1NormalizedVertex::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1NormalizedVertex');
@@ -0,0 +1,159 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ObjectTrackingAnnotation extends \Google\Collection
{
protected $collection_key = 'frames';
/**
* Object category's labeling confidence of this track.
*
* @var float
*/
public $confidence;
protected $entityType = GoogleCloudVideointelligenceV1Entity::class;
protected $entityDataType = '';
protected $framesType = GoogleCloudVideointelligenceV1ObjectTrackingFrame::class;
protected $framesDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
/**
* Streaming mode ONLY. In streaming mode, we do not know the end time of a
* tracked object before it is completed. Hence, there is no VideoSegment info
* returned. Instead, we provide a unique identifiable integer track_id so
* that the customers can correlate the results of the ongoing
* ObjectTrackAnnotation of the same track_id over time.
*
* @var string
*/
public $trackId;
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* Object category's labeling confidence of this track.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Entity to specify the object category that this track is labeled as.
*
* @param GoogleCloudVideointelligenceV1Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* Information corresponding to all frames where this object track appears.
* Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
* messages in frames. Streaming mode: it can only be one ObjectTrackingFrame
* message in frames.
*
* @param GoogleCloudVideointelligenceV1ObjectTrackingFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1ObjectTrackingFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Non-streaming batch mode ONLY. Each object track corresponds to one video
* segment where it appears.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Streaming mode ONLY. In streaming mode, we do not know the end time of a
* tracked object before it is completed. Hence, there is no VideoSegment info
* returned. Instead, we provide a unique identifiable integer track_id so
* that the customers can correlate the results of the ongoing
* ObjectTrackAnnotation of the same track_id over time.
*
* @param string $trackId
*/
public function setTrackId($trackId)
{
$this->trackId = $trackId;
}
/**
* @return string
*/
public function getTrackId()
{
return $this->trackId;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ObjectTrackingAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ObjectTrackingConfig extends \Google\Model
{
/**
* Model to use for object tracking. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @var string
*/
public $model;
/**
* Model to use for object tracking. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ObjectTrackingConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingConfig');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ObjectTrackingFrame extends \Google\Model
{
protected $normalizedBoundingBoxType = GoogleCloudVideointelligenceV1NormalizedBoundingBox::class;
protected $normalizedBoundingBoxDataType = '';
/**
* The timestamp of the frame in microseconds.
*
* @var string
*/
public $timeOffset;
/**
* The normalized bounding box location of this object track for the frame.
*
* @param GoogleCloudVideointelligenceV1NormalizedBoundingBox $normalizedBoundingBox
*/
public function setNormalizedBoundingBox(GoogleCloudVideointelligenceV1NormalizedBoundingBox $normalizedBoundingBox)
{
$this->normalizedBoundingBox = $normalizedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1NormalizedBoundingBox
*/
public function getNormalizedBoundingBox()
{
return $this->normalizedBoundingBox;
}
/**
* The timestamp of the frame in microseconds.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ObjectTrackingFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ObjectTrackingFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1PersonDetectionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
protected $tracksType = GoogleCloudVideointelligenceV1Track::class;
protected $tracksDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* The detected tracks of a person.
*
* @param GoogleCloudVideointelligenceV1Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1Track[]
*/
public function getTracks()
{
return $this->tracks;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1PersonDetectionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1PersonDetectionAnnotation');
@@ -0,0 +1,100 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1PersonDetectionConfig extends \Google\Model
{
/**
* Whether to enable person attributes detection, such as cloth color (black,
* blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
* etc. Ignored if 'include_bounding_boxes' is set to false.
*
* @var bool
*/
public $includeAttributes;
/**
* Whether bounding boxes are included in the person detection annotation
* output.
*
* @var bool
*/
public $includeBoundingBoxes;
/**
* Whether to enable pose landmarks detection. Ignored if
* 'include_bounding_boxes' is set to false.
*
* @var bool
*/
public $includePoseLandmarks;
/**
* Whether to enable person attributes detection, such as cloth color (black,
* blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
* etc. Ignored if 'include_bounding_boxes' is set to false.
*
* @param bool $includeAttributes
*/
public function setIncludeAttributes($includeAttributes)
{
$this->includeAttributes = $includeAttributes;
}
/**
* @return bool
*/
public function getIncludeAttributes()
{
return $this->includeAttributes;
}
/**
* Whether bounding boxes are included in the person detection annotation
* output.
*
* @param bool $includeBoundingBoxes
*/
public function setIncludeBoundingBoxes($includeBoundingBoxes)
{
$this->includeBoundingBoxes = $includeBoundingBoxes;
}
/**
* @return bool
*/
public function getIncludeBoundingBoxes()
{
return $this->includeBoundingBoxes;
}
/**
* Whether to enable pose landmarks detection. Ignored if
* 'include_bounding_boxes' is set to false.
*
* @param bool $includePoseLandmarks
*/
public function setIncludePoseLandmarks($includePoseLandmarks)
{
$this->includePoseLandmarks = $includePoseLandmarks;
}
/**
* @return bool
*/
public function getIncludePoseLandmarks()
{
return $this->includePoseLandmarks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1PersonDetectionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1PersonDetectionConfig');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1ShotChangeDetectionConfig extends \Google\Model
{
/**
* Model to use for shot change detection. Supported values: "builtin/stable"
* (the default if unset), "builtin/latest", and "builtin/legacy".
*
* @var string
*/
public $model;
/**
* Model to use for shot change detection. Supported values: "builtin/stable"
* (the default if unset), "builtin/latest", and "builtin/legacy".
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1ShotChangeDetectionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1ShotChangeDetectionConfig');
@@ -0,0 +1,59 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1SpeechContext extends \Google\Collection
{
protected $collection_key = 'phrases';
/**
* Optional. A list of strings containing words and phrases "hints" so that
* the speech recognition is more likely to recognize them. This can be used
* to improve the accuracy for specific words and phrases, for example, if
* specific commands are typically spoken by the user. This can also be used
* to add additional words to the vocabulary of the recognizer. See [usage
* limits](https://cloud.google.com/speech/limits#content).
*
* @var string[]
*/
public $phrases;
/**
* Optional. A list of strings containing words and phrases "hints" so that
* the speech recognition is more likely to recognize them. This can be used
* to improve the accuracy for specific words and phrases, for example, if
* specific commands are typically spoken by the user. This can also be used
* to add additional words to the vocabulary of the recognizer. See [usage
* limits](https://cloud.google.com/speech/limits#content).
*
* @param string[] $phrases
*/
public function setPhrases($phrases)
{
$this->phrases = $phrases;
}
/**
* @return string[]
*/
public function getPhrases()
{
return $this->phrases;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1SpeechContext::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechContext');
@@ -0,0 +1,101 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1SpeechRecognitionAlternative extends \Google\Collection
{
protected $collection_key = 'words';
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @var float
*/
public $confidence;
/**
* Transcript text representing the words that the user spoke.
*
* @var string
*/
public $transcript;
protected $wordsType = GoogleCloudVideointelligenceV1WordInfo::class;
protected $wordsDataType = 'array';
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Transcript text representing the words that the user spoke.
*
* @param string $transcript
*/
public function setTranscript($transcript)
{
$this->transcript = $transcript;
}
/**
* @return string
*/
public function getTranscript()
{
return $this->transcript;
}
/**
* Output only. A list of word-specific information for each recognized word.
* Note: When `enable_speaker_diarization` is set to true, you will see all
* the words from the beginning of the audio.
*
* @param GoogleCloudVideointelligenceV1WordInfo[] $words
*/
public function setWords($words)
{
$this->words = $words;
}
/**
* @return GoogleCloudVideointelligenceV1WordInfo[]
*/
public function getWords()
{
return $this->words;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1SpeechRecognitionAlternative::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechRecognitionAlternative');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1SpeechTranscription extends \Google\Collection
{
protected $collection_key = 'alternatives';
protected $alternativesType = GoogleCloudVideointelligenceV1SpeechRecognitionAlternative::class;
protected $alternativesDataType = 'array';
/**
* Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
* language tag of the language in this result. This language code was
* detected to have the most likelihood of being spoken in the audio.
*
* @var string
*/
public $languageCode;
/**
* May contain one or more recognition hypotheses (up to the maximum specified
* in `max_alternatives`). These alternatives are ordered in terms of
* accuracy, with the top (first) alternative being the most probable, as
* ranked by the recognizer.
*
* @param GoogleCloudVideointelligenceV1SpeechRecognitionAlternative[] $alternatives
*/
public function setAlternatives($alternatives)
{
$this->alternatives = $alternatives;
}
/**
* @return GoogleCloudVideointelligenceV1SpeechRecognitionAlternative[]
*/
public function getAlternatives()
{
return $this->alternatives;
}
/**
* Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
* language tag of the language in this result. This language code was
* detected to have the most likelihood of being spoken in the audio.
*
* @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(GoogleCloudVideointelligenceV1SpeechTranscription::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscription');
@@ -0,0 +1,297 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1SpeechTranscriptionConfig extends \Google\Collection
{
protected $collection_key = 'speechContexts';
/**
* Optional. Legacy field. This field must be a Cloud Storage URI prefix.
* (e.g., `gs://bucket/path/`).
*
* @var string
*/
public $audioOutputUriPrefix;
/**
* Optional. For file formats, such as MXF or MKV, supporting multiple audio
* tracks, specify up to two tracks. Default: track 0.
*
* @var int[]
*/
public $audioTracks;
/**
* Optional. If set, specifies the estimated number of speakers in the
* conversation. If not set, defaults to '2'. Ignored unless
* enable_speaker_diarization is set to true.
*
* @var int
*/
public $diarizationSpeakerCount;
/**
* Optional. If 'true', adds punctuation to recognition result hypotheses.
* This feature is only available in select languages. Setting this for
* requests in other languages has no effect at all. The default 'false' value
* does not add punctuation to result hypotheses. NOTE: "This is currently
* offered as an experimental service, complimentary to all users. In the
* future this may be exclusively available as a premium feature."
*
* @var bool
*/
public $enableAutomaticPunctuation;
/**
* Optional. If 'true', enables speaker detection for each recognized word in
* the top alternative of the recognition result using a speaker_tag provided
* in the WordInfo. Note: When this is true, we send all the words from the
* beginning of the audio for the top alternative in every consecutive
* response. This is done in order to improve our speaker tags as our models
* learn to identify the speakers in the conversation over time.
*
* @var bool
*/
public $enableSpeakerDiarization;
/**
* Optional. If `true`, the top result includes a list of words and the
* confidence for those words. If `false`, no word-level confidence
* information is returned. The default is `false`.
*
* @var bool
*/
public $enableWordConfidence;
/**
* Optional. If set to `true`, the server will attempt to filter out
* profanities, replacing all but the initial character in each filtered word
* with asterisks, e.g. "f***". If set to `false` or omitted, profanities
* won't be filtered out.
*
* @var bool
*/
public $filterProfanity;
/**
* Required. *Required* The language of the supplied audio as a
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
* Example: "en-US". See [Language
* Support](https://cloud.google.com/speech/docs/languages) for a list of the
* currently supported language codes.
*
* @var string
*/
public $languageCode;
/**
* Optional. Maximum number of recognition hypotheses to be returned.
* Specifically, the maximum number of `SpeechRecognitionAlternative` messages
* within each `SpeechTranscription`. The server may return fewer than
* `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
* return a maximum of one. If omitted, will return a maximum of one.
*
* @var int
*/
public $maxAlternatives;
protected $speechContextsType = GoogleCloudVideointelligenceV1SpeechContext::class;
protected $speechContextsDataType = 'array';
/**
* Optional. Legacy field. This field must be a Cloud Storage URI prefix.
* (e.g., `gs://bucket/path/`).
*
* @param string $audioOutputUriPrefix
*/
public function setAudioOutputUriPrefix($audioOutputUriPrefix)
{
$this->audioOutputUriPrefix = $audioOutputUriPrefix;
}
/**
* @return string
*/
public function getAudioOutputUriPrefix()
{
return $this->audioOutputUriPrefix;
}
/**
* Optional. For file formats, such as MXF or MKV, supporting multiple audio
* tracks, specify up to two tracks. Default: track 0.
*
* @param int[] $audioTracks
*/
public function setAudioTracks($audioTracks)
{
$this->audioTracks = $audioTracks;
}
/**
* @return int[]
*/
public function getAudioTracks()
{
return $this->audioTracks;
}
/**
* Optional. If set, specifies the estimated number of speakers in the
* conversation. If not set, defaults to '2'. Ignored unless
* enable_speaker_diarization is set to true.
*
* @param int $diarizationSpeakerCount
*/
public function setDiarizationSpeakerCount($diarizationSpeakerCount)
{
$this->diarizationSpeakerCount = $diarizationSpeakerCount;
}
/**
* @return int
*/
public function getDiarizationSpeakerCount()
{
return $this->diarizationSpeakerCount;
}
/**
* Optional. If 'true', adds punctuation to recognition result hypotheses.
* This feature is only available in select languages. Setting this for
* requests in other languages has no effect at all. The default 'false' value
* does not add punctuation to result hypotheses. NOTE: "This is currently
* offered as an experimental service, complimentary to all users. In the
* future this may be exclusively available as a premium feature."
*
* @param bool $enableAutomaticPunctuation
*/
public function setEnableAutomaticPunctuation($enableAutomaticPunctuation)
{
$this->enableAutomaticPunctuation = $enableAutomaticPunctuation;
}
/**
* @return bool
*/
public function getEnableAutomaticPunctuation()
{
return $this->enableAutomaticPunctuation;
}
/**
* Optional. If 'true', enables speaker detection for each recognized word in
* the top alternative of the recognition result using a speaker_tag provided
* in the WordInfo. Note: When this is true, we send all the words from the
* beginning of the audio for the top alternative in every consecutive
* response. This is done in order to improve our speaker tags as our models
* learn to identify the speakers in the conversation over time.
*
* @param bool $enableSpeakerDiarization
*/
public function setEnableSpeakerDiarization($enableSpeakerDiarization)
{
$this->enableSpeakerDiarization = $enableSpeakerDiarization;
}
/**
* @return bool
*/
public function getEnableSpeakerDiarization()
{
return $this->enableSpeakerDiarization;
}
/**
* Optional. If `true`, the top result includes a list of words and the
* confidence for those words. If `false`, no word-level confidence
* information is returned. The default is `false`.
*
* @param bool $enableWordConfidence
*/
public function setEnableWordConfidence($enableWordConfidence)
{
$this->enableWordConfidence = $enableWordConfidence;
}
/**
* @return bool
*/
public function getEnableWordConfidence()
{
return $this->enableWordConfidence;
}
/**
* Optional. If set to `true`, the server will attempt to filter out
* profanities, replacing all but the initial character in each filtered word
* with asterisks, e.g. "f***". If set to `false` or omitted, profanities
* won't be filtered out.
*
* @param bool $filterProfanity
*/
public function setFilterProfanity($filterProfanity)
{
$this->filterProfanity = $filterProfanity;
}
/**
* @return bool
*/
public function getFilterProfanity()
{
return $this->filterProfanity;
}
/**
* Required. *Required* The language of the supplied audio as a
* [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt) language tag.
* Example: "en-US". See [Language
* Support](https://cloud.google.com/speech/docs/languages) for a list of the
* currently supported language codes.
*
* @param string $languageCode
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* Optional. Maximum number of recognition hypotheses to be returned.
* Specifically, the maximum number of `SpeechRecognitionAlternative` messages
* within each `SpeechTranscription`. The server may return fewer than
* `max_alternatives`. Valid values are `0`-`30`. A value of `0` or `1` will
* return a maximum of one. If omitted, will return a maximum of one.
*
* @param int $maxAlternatives
*/
public function setMaxAlternatives($maxAlternatives)
{
$this->maxAlternatives = $maxAlternatives;
}
/**
* @return int
*/
public function getMaxAlternatives()
{
return $this->maxAlternatives;
}
/**
* Optional. A means to provide context to assist the speech recognition.
*
* @param GoogleCloudVideointelligenceV1SpeechContext[] $speechContexts
*/
public function setSpeechContexts($speechContexts)
{
$this->speechContexts = $speechContexts;
}
/**
* @return GoogleCloudVideointelligenceV1SpeechContext[]
*/
public function getSpeechContexts()
{
return $this->speechContexts;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1SpeechTranscriptionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1SpeechTranscriptionConfig');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1TextAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $segmentsType = GoogleCloudVideointelligenceV1TextSegment::class;
protected $segmentsDataType = 'array';
/**
* The detected text.
*
* @var string
*/
public $text;
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* All video segments where OCR detected text appears.
*
* @param GoogleCloudVideointelligenceV1TextSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1TextSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* The detected text.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1TextAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextAnnotation');
@@ -0,0 +1,79 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1TextDetectionConfig extends \Google\Collection
{
protected $collection_key = 'languageHints';
/**
* Language hint can be specified if the language to be detected is known a
* priori. It can increase the accuracy of the detection. Language hint must
* be language code in BCP-47 format. Automatic language detection is
* performed if no hint is provided.
*
* @var string[]
*/
public $languageHints;
/**
* Model to use for text detection. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @var string
*/
public $model;
/**
* Language hint can be specified if the language to be detected is known a
* priori. It can increase the accuracy of the detection. Language hint must
* be language code in BCP-47 format. Automatic language detection is
* performed if no hint is provided.
*
* @param string[] $languageHints
*/
public function setLanguageHints($languageHints)
{
$this->languageHints = $languageHints;
}
/**
* @return string[]
*/
public function getLanguageHints()
{
return $this->languageHints;
}
/**
* Model to use for text detection. Supported values: "builtin/stable" (the
* default if unset) and "builtin/latest".
*
* @param string $model
*/
public function setModel($model)
{
$this->model = $model;
}
/**
* @return string
*/
public function getModel()
{
return $this->model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1TextDetectionConfig::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextDetectionConfig');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1TextFrame extends \Google\Model
{
protected $rotatedBoundingBoxType = GoogleCloudVideointelligenceV1NormalizedBoundingPoly::class;
protected $rotatedBoundingBoxDataType = '';
/**
* Timestamp of this frame.
*
* @var string
*/
public $timeOffset;
/**
* Bounding polygon of the detected text for this frame.
*
* @param GoogleCloudVideointelligenceV1NormalizedBoundingPoly $rotatedBoundingBox
*/
public function setRotatedBoundingBox(GoogleCloudVideointelligenceV1NormalizedBoundingPoly $rotatedBoundingBox)
{
$this->rotatedBoundingBox = $rotatedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1NormalizedBoundingPoly
*/
public function getRotatedBoundingBox()
{
return $this->rotatedBoundingBox;
}
/**
* Timestamp of this frame.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1TextFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextFrame');
@@ -0,0 +1,87 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1TextSegment extends \Google\Collection
{
protected $collection_key = 'frames';
/**
* Confidence for the track of detected text. It is calculated as the highest
* over all frames where OCR detected text appears.
*
* @var float
*/
public $confidence;
protected $framesType = GoogleCloudVideointelligenceV1TextFrame::class;
protected $framesDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
/**
* Confidence for the track of detected text. It is calculated as the highest
* over all frames where OCR detected text appears.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Information related to the frames where OCR detected text appears.
*
* @param GoogleCloudVideointelligenceV1TextFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1TextFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Video segment where a text snippet was detected.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1TextSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TextSegment');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1TimestampedObject extends \Google\Collection
{
protected $collection_key = 'landmarks';
protected $attributesType = GoogleCloudVideointelligenceV1DetectedAttribute::class;
protected $attributesDataType = 'array';
protected $landmarksType = GoogleCloudVideointelligenceV1DetectedLandmark::class;
protected $landmarksDataType = 'array';
protected $normalizedBoundingBoxType = GoogleCloudVideointelligenceV1NormalizedBoundingBox::class;
protected $normalizedBoundingBoxDataType = '';
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this object.
*
* @var string
*/
public $timeOffset;
/**
* Optional. The attributes of the object in the bounding box.
*
* @param GoogleCloudVideointelligenceV1DetectedAttribute[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return GoogleCloudVideointelligenceV1DetectedAttribute[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Optional. The detected landmarks.
*
* @param GoogleCloudVideointelligenceV1DetectedLandmark[] $landmarks
*/
public function setLandmarks($landmarks)
{
$this->landmarks = $landmarks;
}
/**
* @return GoogleCloudVideointelligenceV1DetectedLandmark[]
*/
public function getLandmarks()
{
return $this->landmarks;
}
/**
* Normalized Bounding box in a frame, where the object is located.
*
* @param GoogleCloudVideointelligenceV1NormalizedBoundingBox $normalizedBoundingBox
*/
public function setNormalizedBoundingBox(GoogleCloudVideointelligenceV1NormalizedBoundingBox $normalizedBoundingBox)
{
$this->normalizedBoundingBox = $normalizedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1NormalizedBoundingBox
*/
public function getNormalizedBoundingBox()
{
return $this->normalizedBoundingBox;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this object.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1TimestampedObject::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1TimestampedObject');
@@ -0,0 +1,103 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1Track extends \Google\Collection
{
protected $collection_key = 'timestampedObjects';
protected $attributesType = GoogleCloudVideointelligenceV1DetectedAttribute::class;
protected $attributesDataType = 'array';
/**
* Optional. The confidence score of the tracked object.
*
* @var float
*/
public $confidence;
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
protected $timestampedObjectsType = GoogleCloudVideointelligenceV1TimestampedObject::class;
protected $timestampedObjectsDataType = 'array';
/**
* Optional. Attributes in the track level.
*
* @param GoogleCloudVideointelligenceV1DetectedAttribute[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return GoogleCloudVideointelligenceV1DetectedAttribute[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Optional. The confidence score of the tracked object.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Video segment of a track.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* The object with timestamp and attributes per frame in the track.
*
* @param GoogleCloudVideointelligenceV1TimestampedObject[] $timestampedObjects
*/
public function setTimestampedObjects($timestampedObjects)
{
$this->timestampedObjects = $timestampedObjects;
}
/**
* @return GoogleCloudVideointelligenceV1TimestampedObject[]
*/
public function getTimestampedObjects()
{
return $this->timestampedObjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1Track::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1Track');
@@ -0,0 +1,223 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1VideoAnnotationProgress extends \Google\Model
{
/**
* Unspecified.
*/
public const FEATURE_FEATURE_UNSPECIFIED = 'FEATURE_UNSPECIFIED';
/**
* Label detection. Detect objects, such as dog or flower.
*/
public const FEATURE_LABEL_DETECTION = 'LABEL_DETECTION';
/**
* Shot change detection.
*/
public const FEATURE_SHOT_CHANGE_DETECTION = 'SHOT_CHANGE_DETECTION';
/**
* Explicit content detection.
*/
public const FEATURE_EXPLICIT_CONTENT_DETECTION = 'EXPLICIT_CONTENT_DETECTION';
/**
* Human face detection.
*/
public const FEATURE_FACE_DETECTION = 'FACE_DETECTION';
/**
* Speech transcription.
*/
public const FEATURE_SPEECH_TRANSCRIPTION = 'SPEECH_TRANSCRIPTION';
/**
* OCR text detection and tracking.
*/
public const FEATURE_TEXT_DETECTION = 'TEXT_DETECTION';
/**
* Object detection and tracking.
*/
public const FEATURE_OBJECT_TRACKING = 'OBJECT_TRACKING';
/**
* Logo detection, tracking, and recognition.
*/
public const FEATURE_LOGO_RECOGNITION = 'LOGO_RECOGNITION';
/**
* Person detection.
*/
public const FEATURE_PERSON_DETECTION = 'PERSON_DETECTION';
protected $exportStatusType = GoogleCloudVideointelligenceV1ExportToOutputUriStatus::class;
protected $exportStatusDataType = '';
/**
* Specifies which feature is being tracked if the request contains more than
* one feature.
*
* @var string
*/
public $feature;
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @var string
*/
public $inputUri;
/**
* Approximate percentage processed thus far. Guaranteed to be 100 when fully
* processed.
*
* @var int
*/
public $progressPercent;
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
/**
* Time when the request was received.
*
* @var string
*/
public $startTime;
/**
* Time of the most recent update.
*
* @var string
*/
public $updateTime;
/**
* Status of exporting annotation response to user specified `output_uri`.
* Only set if `output_uri` is set in the request.
*
* @param GoogleCloudVideointelligenceV1ExportToOutputUriStatus $exportStatus
*/
public function setExportStatus(GoogleCloudVideointelligenceV1ExportToOutputUriStatus $exportStatus)
{
$this->exportStatus = $exportStatus;
}
/**
* @return GoogleCloudVideointelligenceV1ExportToOutputUriStatus
*/
public function getExportStatus()
{
return $this->exportStatus;
}
/**
* Specifies which feature is being tracked if the request contains more than
* one feature.
*
* Accepted values: FEATURE_UNSPECIFIED, LABEL_DETECTION,
* SHOT_CHANGE_DETECTION, EXPLICIT_CONTENT_DETECTION, FACE_DETECTION,
* SPEECH_TRANSCRIPTION, TEXT_DETECTION, OBJECT_TRACKING, LOGO_RECOGNITION,
* PERSON_DETECTION
*
* @param self::FEATURE_* $feature
*/
public function setFeature($feature)
{
$this->feature = $feature;
}
/**
* @return self::FEATURE_*
*/
public function getFeature()
{
return $this->feature;
}
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @param string $inputUri
*/
public function setInputUri($inputUri)
{
$this->inputUri = $inputUri;
}
/**
* @return string
*/
public function getInputUri()
{
return $this->inputUri;
}
/**
* Approximate percentage processed thus far. Guaranteed to be 100 when fully
* processed.
*
* @param int $progressPercent
*/
public function setProgressPercent($progressPercent)
{
$this->progressPercent = $progressPercent;
}
/**
* @return int
*/
public function getProgressPercent()
{
return $this->progressPercent;
}
/**
* Specifies which segment is being tracked if the request contains more than
* one segment.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Time when the request was received.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Time of the most recent update.
*
* @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(GoogleCloudVideointelligenceV1VideoAnnotationProgress::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoAnnotationProgress');
@@ -0,0 +1,353 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1VideoAnnotationResults extends \Google\Collection
{
protected $collection_key = 'textAnnotations';
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
protected $explicitAnnotationType = GoogleCloudVideointelligenceV1ExplicitContentAnnotation::class;
protected $explicitAnnotationDataType = '';
protected $faceAnnotationsType = GoogleCloudVideointelligenceV1FaceAnnotation::class;
protected $faceAnnotationsDataType = 'array';
protected $faceDetectionAnnotationsType = GoogleCloudVideointelligenceV1FaceDetectionAnnotation::class;
protected $faceDetectionAnnotationsDataType = 'array';
protected $frameLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
protected $frameLabelAnnotationsDataType = 'array';
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @var string
*/
public $inputUri;
protected $logoRecognitionAnnotationsType = GoogleCloudVideointelligenceV1LogoRecognitionAnnotation::class;
protected $logoRecognitionAnnotationsDataType = 'array';
protected $objectAnnotationsType = GoogleCloudVideointelligenceV1ObjectTrackingAnnotation::class;
protected $objectAnnotationsDataType = 'array';
protected $personDetectionAnnotationsType = GoogleCloudVideointelligenceV1PersonDetectionAnnotation::class;
protected $personDetectionAnnotationsDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentDataType = '';
protected $segmentLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
protected $segmentLabelAnnotationsDataType = 'array';
protected $segmentPresenceLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
protected $segmentPresenceLabelAnnotationsDataType = 'array';
protected $shotAnnotationsType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $shotAnnotationsDataType = 'array';
protected $shotLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
protected $shotLabelAnnotationsDataType = 'array';
protected $shotPresenceLabelAnnotationsType = GoogleCloudVideointelligenceV1LabelAnnotation::class;
protected $shotPresenceLabelAnnotationsDataType = 'array';
protected $speechTranscriptionsType = GoogleCloudVideointelligenceV1SpeechTranscription::class;
protected $speechTranscriptionsDataType = 'array';
protected $textAnnotationsType = GoogleCloudVideointelligenceV1TextAnnotation::class;
protected $textAnnotationsDataType = 'array';
/**
* If set, indicates an error. Note that for a single `AnnotateVideoRequest`
* some videos may succeed and some may fail.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Explicit content annotation.
*
* @param GoogleCloudVideointelligenceV1ExplicitContentAnnotation $explicitAnnotation
*/
public function setExplicitAnnotation(GoogleCloudVideointelligenceV1ExplicitContentAnnotation $explicitAnnotation)
{
$this->explicitAnnotation = $explicitAnnotation;
}
/**
* @return GoogleCloudVideointelligenceV1ExplicitContentAnnotation
*/
public function getExplicitAnnotation()
{
return $this->explicitAnnotation;
}
/**
* Deprecated. Please use `face_detection_annotations` instead.
*
* @deprecated
* @param GoogleCloudVideointelligenceV1FaceAnnotation[] $faceAnnotations
*/
public function setFaceAnnotations($faceAnnotations)
{
$this->faceAnnotations = $faceAnnotations;
}
/**
* @deprecated
* @return GoogleCloudVideointelligenceV1FaceAnnotation[]
*/
public function getFaceAnnotations()
{
return $this->faceAnnotations;
}
/**
* Face detection annotations.
*
* @param GoogleCloudVideointelligenceV1FaceDetectionAnnotation[] $faceDetectionAnnotations
*/
public function setFaceDetectionAnnotations($faceDetectionAnnotations)
{
$this->faceDetectionAnnotations = $faceDetectionAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1FaceDetectionAnnotation[]
*/
public function getFaceDetectionAnnotations()
{
return $this->faceDetectionAnnotations;
}
/**
* Label annotations on frame level. There is exactly one element for each
* unique label.
*
* @param GoogleCloudVideointelligenceV1LabelAnnotation[] $frameLabelAnnotations
*/
public function setFrameLabelAnnotations($frameLabelAnnotations)
{
$this->frameLabelAnnotations = $frameLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1LabelAnnotation[]
*/
public function getFrameLabelAnnotations()
{
return $this->frameLabelAnnotations;
}
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @param string $inputUri
*/
public function setInputUri($inputUri)
{
$this->inputUri = $inputUri;
}
/**
* @return string
*/
public function getInputUri()
{
return $this->inputUri;
}
/**
* Annotations for list of logos detected, tracked and recognized in video.
*
* @param GoogleCloudVideointelligenceV1LogoRecognitionAnnotation[] $logoRecognitionAnnotations
*/
public function setLogoRecognitionAnnotations($logoRecognitionAnnotations)
{
$this->logoRecognitionAnnotations = $logoRecognitionAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1LogoRecognitionAnnotation[]
*/
public function getLogoRecognitionAnnotations()
{
return $this->logoRecognitionAnnotations;
}
/**
* Annotations for list of objects detected and tracked in video.
*
* @param GoogleCloudVideointelligenceV1ObjectTrackingAnnotation[] $objectAnnotations
*/
public function setObjectAnnotations($objectAnnotations)
{
$this->objectAnnotations = $objectAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1ObjectTrackingAnnotation[]
*/
public function getObjectAnnotations()
{
return $this->objectAnnotations;
}
/**
* Person detection annotations.
*
* @param GoogleCloudVideointelligenceV1PersonDetectionAnnotation[] $personDetectionAnnotations
*/
public function setPersonDetectionAnnotations($personDetectionAnnotations)
{
$this->personDetectionAnnotations = $personDetectionAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1PersonDetectionAnnotation[]
*/
public function getPersonDetectionAnnotations()
{
return $this->personDetectionAnnotations;
}
/**
* Video segment on which the annotation is run.
*
* @param GoogleCloudVideointelligenceV1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Topical label annotations on video level or user-specified segment level.
* There is exactly one element for each unique label.
*
* @param GoogleCloudVideointelligenceV1LabelAnnotation[] $segmentLabelAnnotations
*/
public function setSegmentLabelAnnotations($segmentLabelAnnotations)
{
$this->segmentLabelAnnotations = $segmentLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1LabelAnnotation[]
*/
public function getSegmentLabelAnnotations()
{
return $this->segmentLabelAnnotations;
}
/**
* Presence label annotations on video level or user-specified segment level.
* There is exactly one element for each unique label. Compared to the
* existing topical `segment_label_annotations`, this field presents more
* fine-grained, segment-level labels detected in video content and is made
* available only when the client sets `LabelDetectionConfig.model` to
* "builtin/latest" in the request.
*
* @param GoogleCloudVideointelligenceV1LabelAnnotation[] $segmentPresenceLabelAnnotations
*/
public function setSegmentPresenceLabelAnnotations($segmentPresenceLabelAnnotations)
{
$this->segmentPresenceLabelAnnotations = $segmentPresenceLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1LabelAnnotation[]
*/
public function getSegmentPresenceLabelAnnotations()
{
return $this->segmentPresenceLabelAnnotations;
}
/**
* Shot annotations. Each shot is represented as a video segment.
*
* @param GoogleCloudVideointelligenceV1VideoSegment[] $shotAnnotations
*/
public function setShotAnnotations($shotAnnotations)
{
$this->shotAnnotations = $shotAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment[]
*/
public function getShotAnnotations()
{
return $this->shotAnnotations;
}
/**
* Topical label annotations on shot level. There is exactly one element for
* each unique label.
*
* @param GoogleCloudVideointelligenceV1LabelAnnotation[] $shotLabelAnnotations
*/
public function setShotLabelAnnotations($shotLabelAnnotations)
{
$this->shotLabelAnnotations = $shotLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1LabelAnnotation[]
*/
public function getShotLabelAnnotations()
{
return $this->shotLabelAnnotations;
}
/**
* Presence label annotations on shot level. There is exactly one element for
* each unique label. Compared to the existing topical
* `shot_label_annotations`, this field presents more fine-grained, shot-level
* labels detected in video content and is made available only when the client
* sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
*
* @param GoogleCloudVideointelligenceV1LabelAnnotation[] $shotPresenceLabelAnnotations
*/
public function setShotPresenceLabelAnnotations($shotPresenceLabelAnnotations)
{
$this->shotPresenceLabelAnnotations = $shotPresenceLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1LabelAnnotation[]
*/
public function getShotPresenceLabelAnnotations()
{
return $this->shotPresenceLabelAnnotations;
}
/**
* Speech transcription.
*
* @param GoogleCloudVideointelligenceV1SpeechTranscription[] $speechTranscriptions
*/
public function setSpeechTranscriptions($speechTranscriptions)
{
$this->speechTranscriptions = $speechTranscriptions;
}
/**
* @return GoogleCloudVideointelligenceV1SpeechTranscription[]
*/
public function getSpeechTranscriptions()
{
return $this->speechTranscriptions;
}
/**
* OCR text detection and tracking. Annotations for list of detected text
* snippets. Each will have list of frame information associated with it.
*
* @param GoogleCloudVideointelligenceV1TextAnnotation[] $textAnnotations
*/
public function setTextAnnotations($textAnnotations)
{
$this->textAnnotations = $textAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1TextAnnotation[]
*/
public function getTextAnnotations()
{
return $this->textAnnotations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1VideoAnnotationResults::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoAnnotationResults');
@@ -0,0 +1,191 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1VideoContext extends \Google\Collection
{
protected $collection_key = 'segments';
protected $explicitContentDetectionConfigType = GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig::class;
protected $explicitContentDetectionConfigDataType = '';
protected $faceDetectionConfigType = GoogleCloudVideointelligenceV1FaceDetectionConfig::class;
protected $faceDetectionConfigDataType = '';
protected $labelDetectionConfigType = GoogleCloudVideointelligenceV1LabelDetectionConfig::class;
protected $labelDetectionConfigDataType = '';
protected $objectTrackingConfigType = GoogleCloudVideointelligenceV1ObjectTrackingConfig::class;
protected $objectTrackingConfigDataType = '';
protected $personDetectionConfigType = GoogleCloudVideointelligenceV1PersonDetectionConfig::class;
protected $personDetectionConfigDataType = '';
protected $segmentsType = GoogleCloudVideointelligenceV1VideoSegment::class;
protected $segmentsDataType = 'array';
protected $shotChangeDetectionConfigType = GoogleCloudVideointelligenceV1ShotChangeDetectionConfig::class;
protected $shotChangeDetectionConfigDataType = '';
protected $speechTranscriptionConfigType = GoogleCloudVideointelligenceV1SpeechTranscriptionConfig::class;
protected $speechTranscriptionConfigDataType = '';
protected $textDetectionConfigType = GoogleCloudVideointelligenceV1TextDetectionConfig::class;
protected $textDetectionConfigDataType = '';
/**
* Config for EXPLICIT_CONTENT_DETECTION.
*
* @param GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig $explicitContentDetectionConfig
*/
public function setExplicitContentDetectionConfig(GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig $explicitContentDetectionConfig)
{
$this->explicitContentDetectionConfig = $explicitContentDetectionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1ExplicitContentDetectionConfig
*/
public function getExplicitContentDetectionConfig()
{
return $this->explicitContentDetectionConfig;
}
/**
* Config for FACE_DETECTION.
*
* @param GoogleCloudVideointelligenceV1FaceDetectionConfig $faceDetectionConfig
*/
public function setFaceDetectionConfig(GoogleCloudVideointelligenceV1FaceDetectionConfig $faceDetectionConfig)
{
$this->faceDetectionConfig = $faceDetectionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1FaceDetectionConfig
*/
public function getFaceDetectionConfig()
{
return $this->faceDetectionConfig;
}
/**
* Config for LABEL_DETECTION.
*
* @param GoogleCloudVideointelligenceV1LabelDetectionConfig $labelDetectionConfig
*/
public function setLabelDetectionConfig(GoogleCloudVideointelligenceV1LabelDetectionConfig $labelDetectionConfig)
{
$this->labelDetectionConfig = $labelDetectionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1LabelDetectionConfig
*/
public function getLabelDetectionConfig()
{
return $this->labelDetectionConfig;
}
/**
* Config for OBJECT_TRACKING.
*
* @param GoogleCloudVideointelligenceV1ObjectTrackingConfig $objectTrackingConfig
*/
public function setObjectTrackingConfig(GoogleCloudVideointelligenceV1ObjectTrackingConfig $objectTrackingConfig)
{
$this->objectTrackingConfig = $objectTrackingConfig;
}
/**
* @return GoogleCloudVideointelligenceV1ObjectTrackingConfig
*/
public function getObjectTrackingConfig()
{
return $this->objectTrackingConfig;
}
/**
* Config for PERSON_DETECTION.
*
* @param GoogleCloudVideointelligenceV1PersonDetectionConfig $personDetectionConfig
*/
public function setPersonDetectionConfig(GoogleCloudVideointelligenceV1PersonDetectionConfig $personDetectionConfig)
{
$this->personDetectionConfig = $personDetectionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1PersonDetectionConfig
*/
public function getPersonDetectionConfig()
{
return $this->personDetectionConfig;
}
/**
* Video segments to annotate. The segments may overlap and are not required
* to be contiguous or span the whole video. If unspecified, each video is
* treated as a single segment.
*
* @param GoogleCloudVideointelligenceV1VideoSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1VideoSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Config for SHOT_CHANGE_DETECTION.
*
* @param GoogleCloudVideointelligenceV1ShotChangeDetectionConfig $shotChangeDetectionConfig
*/
public function setShotChangeDetectionConfig(GoogleCloudVideointelligenceV1ShotChangeDetectionConfig $shotChangeDetectionConfig)
{
$this->shotChangeDetectionConfig = $shotChangeDetectionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1ShotChangeDetectionConfig
*/
public function getShotChangeDetectionConfig()
{
return $this->shotChangeDetectionConfig;
}
/**
* Config for SPEECH_TRANSCRIPTION.
*
* @param GoogleCloudVideointelligenceV1SpeechTranscriptionConfig $speechTranscriptionConfig
*/
public function setSpeechTranscriptionConfig(GoogleCloudVideointelligenceV1SpeechTranscriptionConfig $speechTranscriptionConfig)
{
$this->speechTranscriptionConfig = $speechTranscriptionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1SpeechTranscriptionConfig
*/
public function getSpeechTranscriptionConfig()
{
return $this->speechTranscriptionConfig;
}
/**
* Config for TEXT_DETECTION.
*
* @param GoogleCloudVideointelligenceV1TextDetectionConfig $textDetectionConfig
*/
public function setTextDetectionConfig(GoogleCloudVideointelligenceV1TextDetectionConfig $textDetectionConfig)
{
$this->textDetectionConfig = $textDetectionConfig;
}
/**
* @return GoogleCloudVideointelligenceV1TextDetectionConfig
*/
public function getTextDetectionConfig()
{
return $this->textDetectionConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1VideoContext::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoContext');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1VideoSegment extends \Google\Model
{
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* end of the segment (inclusive).
*
* @var string
*/
public $endTimeOffset;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* start of the segment (inclusive).
*
* @var string
*/
public $startTimeOffset;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* end of the segment (inclusive).
*
* @param string $endTimeOffset
*/
public function setEndTimeOffset($endTimeOffset)
{
$this->endTimeOffset = $endTimeOffset;
}
/**
* @return string
*/
public function getEndTimeOffset()
{
return $this->endTimeOffset;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* start of the segment (inclusive).
*
* @param string $startTimeOffset
*/
public function setStartTimeOffset($startTimeOffset)
{
$this->startTimeOffset = $startTimeOffset;
}
/**
* @return string
*/
public function getStartTimeOffset()
{
return $this->startTimeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1VideoSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1VideoSegment');
@@ -0,0 +1,190 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1WordInfo extends \Google\Model
{
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @var float
*/
public $confidence;
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the end of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @var string
*/
public $endTime;
/**
* Output only. A distinct string value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word.
*
* @var string
*/
public $speakerLabel;
/**
* Output only. A distinct integer value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word. Value ranges from 1 up to diarization_speaker_count,
* and is only set if speaker diarization is enabled.
*
* @var int
*/
public $speakerTag;
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the start of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @var string
*/
public $startTime;
/**
* The word corresponding to this set of information.
*
* @var string
*/
public $word;
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the end of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. A distinct string value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word.
*
* @param string $speakerLabel
*/
public function setSpeakerLabel($speakerLabel)
{
$this->speakerLabel = $speakerLabel;
}
/**
* @return string
*/
public function getSpeakerLabel()
{
return $this->speakerLabel;
}
/**
* Output only. A distinct integer value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word. Value ranges from 1 up to diarization_speaker_count,
* and is only set if speaker diarization is enabled.
*
* @param int $speakerTag
*/
public function setSpeakerTag($speakerTag)
{
$this->speakerTag = $speakerTag;
}
/**
* @return int
*/
public function getSpeakerTag()
{
return $this->speakerTag;
}
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the start of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* The word corresponding to this set of information.
*
* @param string $word
*/
public function setWord($word)
{
$this->word = $word;
}
/**
* @return string
*/
public function getWord()
{
return $this->word;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1WordInfo::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1WordInfo');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress extends \Google\Collection
{
protected $collection_key = 'annotationProgress';
protected $annotationProgressType = GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress::class;
protected $annotationProgressDataType = 'array';
/**
* Progress metadata for all videos specified in `AnnotateVideoRequest`.
*
* @param GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress[] $annotationProgress
*/
public function setAnnotationProgress($annotationProgress)
{
$this->annotationProgress = $annotationProgress;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress[]
*/
public function getAnnotationProgress()
{
return $this->annotationProgress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2AnnotateVideoProgress');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse extends \Google\Collection
{
protected $collection_key = 'annotationResults';
protected $annotationResultsType = GoogleCloudVideointelligenceV1beta2VideoAnnotationResults::class;
protected $annotationResultsDataType = 'array';
/**
* Annotation results for all videos specified in `AnnotateVideoRequest`.
*
* @param GoogleCloudVideointelligenceV1beta2VideoAnnotationResults[] $annotationResults
*/
public function setAnnotationResults($annotationResults)
{
$this->annotationResults = $annotationResults;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoAnnotationResults[]
*/
public function getAnnotationResults()
{
return $this->annotationResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2AnnotateVideoResponse');
@@ -0,0 +1,96 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2DetectedAttribute extends \Google\Model
{
/**
* Detected attribute confidence. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The name of the attribute, for example, glasses, dark_glasses, mouth_open.
* A full list of supported type names will be provided in the document.
*
* @var string
*/
public $name;
/**
* Text value of the detection result. For example, the value for "HairColor"
* can be "black", "blonde", etc.
*
* @var string
*/
public $value;
/**
* Detected attribute confidence. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The name of the attribute, for example, glasses, dark_glasses, mouth_open.
* A full list of supported type names will be provided in the document.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Text value of the detection result. For example, the value for "HairColor"
* can be "black", "blonde", etc.
*
* @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(GoogleCloudVideointelligenceV1beta2DetectedAttribute::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2DetectedAttribute');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2DetectedLandmark extends \Google\Model
{
/**
* The confidence score of the detected landmark. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The name of this landmark, for example, left_hand, right_shoulder.
*
* @var string
*/
public $name;
protected $pointType = GoogleCloudVideointelligenceV1beta2NormalizedVertex::class;
protected $pointDataType = '';
/**
* The confidence score of the detected landmark. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The name of this landmark, for example, left_hand, right_shoulder.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The 2D point of the detected landmark using the normalized image coordinate
* system. The normalized coordinates have the range from 0 to 1.
*
* @param GoogleCloudVideointelligenceV1beta2NormalizedVertex $point
*/
public function setPoint(GoogleCloudVideointelligenceV1beta2NormalizedVertex $point)
{
$this->point = $point;
}
/**
* @return GoogleCloudVideointelligenceV1beta2NormalizedVertex
*/
public function getPoint()
{
return $this->point;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2DetectedLandmark::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2DetectedLandmark');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2Entity extends \Google\Model
{
/**
* Textual description, e.g., `Fixed-gear bicycle`.
*
* @var string
*/
public $description;
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @var string
*/
public $entityId;
/**
* Language code for `description` in BCP-47 format.
*
* @var string
*/
public $languageCode;
/**
* Textual description, e.g., `Fixed-gear bicycle`.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* Language code for `description` in BCP-47 format.
*
* @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(GoogleCloudVideointelligenceV1beta2Entity::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2Entity');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation extends \Google\Collection
{
protected $collection_key = 'frames';
protected $framesType = GoogleCloudVideointelligenceV1beta2ExplicitContentFrame::class;
protected $framesDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* All video frames where explicit content was detected.
*
* @param GoogleCloudVideointelligenceV1beta2ExplicitContentFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1beta2ExplicitContentFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2ExplicitContentFrame extends \Google\Model
{
/**
* Unspecified likelihood.
*/
public const PORNOGRAPHY_LIKELIHOOD_LIKELIHOOD_UNSPECIFIED = 'LIKELIHOOD_UNSPECIFIED';
/**
* Very unlikely.
*/
public const PORNOGRAPHY_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* Unlikely.
*/
public const PORNOGRAPHY_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* Possible.
*/
public const PORNOGRAPHY_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* Likely.
*/
public const PORNOGRAPHY_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* Very likely.
*/
public const PORNOGRAPHY_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Likelihood of the pornography content..
*
* @var string
*/
public $pornographyLikelihood;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Likelihood of the pornography content..
*
* Accepted values: LIKELIHOOD_UNSPECIFIED, VERY_UNLIKELY, UNLIKELY, POSSIBLE,
* LIKELY, VERY_LIKELY
*
* @param self::PORNOGRAPHY_LIKELIHOOD_* $pornographyLikelihood
*/
public function setPornographyLikelihood($pornographyLikelihood)
{
$this->pornographyLikelihood = $pornographyLikelihood;
}
/**
* @return self::PORNOGRAPHY_LIKELIHOOD_*
*/
public function getPornographyLikelihood()
{
return $this->pornographyLikelihood;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2ExplicitContentFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ExplicitContentFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus extends \Google\Model
{
/**
* Default value.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Export succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* Export failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. State of the `output_uri` export.
*
* @var string
*/
public $state;
protected $statusType = GoogleRpcStatus::class;
protected $statusDataType = '';
/**
* Output only. State of the `output_uri` export.
*
* Accepted values: STATE_UNSPECIFIED, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Only set if state is FAILED.
*
* @param GoogleRpcStatus $status
*/
public function setStatus(GoogleRpcStatus $status)
{
$this->status = $status;
}
/**
* @return GoogleRpcStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus');
@@ -0,0 +1,85 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2FaceAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $framesType = GoogleCloudVideointelligenceV1beta2FaceFrame::class;
protected $framesDataType = 'array';
protected $segmentsType = GoogleCloudVideointelligenceV1beta2FaceSegment::class;
protected $segmentsDataType = 'array';
/**
* Thumbnail of a representative face view (in JPEG format).
*
* @var string
*/
public $thumbnail;
/**
* All video frames where a face was detected.
*
* @param GoogleCloudVideointelligenceV1beta2FaceFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1beta2FaceFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* All video segments where a face was detected.
*
* @param GoogleCloudVideointelligenceV1beta2FaceSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1beta2FaceSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Thumbnail of a representative face view (in JPEG format).
*
* @param string $thumbnail
*/
public function setThumbnail($thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return string
*/
public function getThumbnail()
{
return $this->thumbnail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2FaceAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2FaceAnnotation');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
/**
* The thumbnail of a person's face.
*
* @var string
*/
public $thumbnail;
protected $tracksType = GoogleCloudVideointelligenceV1beta2Track::class;
protected $tracksDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* The thumbnail of a person's face.
*
* @param string $thumbnail
*/
public function setThumbnail($thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return string
*/
public function getThumbnail()
{
return $this->thumbnail;
}
/**
* The face tracks with attributes.
*
* @param GoogleCloudVideointelligenceV1beta2Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Track[]
*/
public function getTracks()
{
return $this->tracks;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2FaceFrame extends \Google\Collection
{
protected $collection_key = 'normalizedBoundingBoxes';
protected $normalizedBoundingBoxesType = GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox::class;
protected $normalizedBoundingBoxesDataType = 'array';
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Normalized Bounding boxes in a frame. There can be more than one boxes if
* the same face is detected in multiple locations within the current frame.
*
* @param GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox[] $normalizedBoundingBoxes
*/
public function setNormalizedBoundingBoxes($normalizedBoundingBoxes)
{
$this->normalizedBoundingBoxes = $normalizedBoundingBoxes;
}
/**
* @return GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox[]
*/
public function getNormalizedBoundingBoxes()
{
return $this->normalizedBoundingBoxes;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2FaceFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2FaceFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2FaceSegment extends \Google\Model
{
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
/**
* Video segment where a face was detected.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2FaceSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2FaceSegment');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2LabelAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $categoryEntitiesType = GoogleCloudVideointelligenceV1beta2Entity::class;
protected $categoryEntitiesDataType = 'array';
protected $entityType = GoogleCloudVideointelligenceV1beta2Entity::class;
protected $entityDataType = '';
protected $framesType = GoogleCloudVideointelligenceV1beta2LabelFrame::class;
protected $framesDataType = 'array';
protected $segmentsType = GoogleCloudVideointelligenceV1beta2LabelSegment::class;
protected $segmentsDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* Common categories for the detected entity. For example, when the label is
* `Terrier`, the category is likely `dog`. And in some cases there might be
* more than one categories e.g., `Terrier` could also be a `pet`.
*
* @param GoogleCloudVideointelligenceV1beta2Entity[] $categoryEntities
*/
public function setCategoryEntities($categoryEntities)
{
$this->categoryEntities = $categoryEntities;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Entity[]
*/
public function getCategoryEntities()
{
return $this->categoryEntities;
}
/**
* Detected entity.
*
* @param GoogleCloudVideointelligenceV1beta2Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1beta2Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* All video frames where a label was detected.
*
* @param GoogleCloudVideointelligenceV1beta2LabelFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* All video segments where a label was detected.
*
* @param GoogleCloudVideointelligenceV1beta2LabelSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2LabelAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2LabelFrame extends \Google\Model
{
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @var float
*/
public $confidence;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2LabelFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelFrame');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2LabelSegment extends \Google\Model
{
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @var float
*/
public $confidence;
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Video segment where a label was detected.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2LabelSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LabelSegment');
@@ -0,0 +1,84 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
protected $entityType = GoogleCloudVideointelligenceV1beta2Entity::class;
protected $entityDataType = '';
protected $segmentsType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentsDataType = 'array';
protected $tracksType = GoogleCloudVideointelligenceV1beta2Track::class;
protected $tracksDataType = 'array';
/**
* Entity category information to specify the logo class that all the logo
* tracks within this LogoRecognitionAnnotation are recognized as.
*
* @param GoogleCloudVideointelligenceV1beta2Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1beta2Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* All video segments where the recognized logo appears. There might be
* multiple instances of the same logo class appearing in one VideoSegment.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* All logo tracks where the recognized logo appears. Each track corresponds
* to one logo instance appearing in consecutive frames.
*
* @param GoogleCloudVideointelligenceV1beta2Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Track[]
*/
public function getTracks()
{
return $this->tracks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox extends \Google\Model
{
/**
* Bottom Y coordinate.
*
* @var float
*/
public $bottom;
/**
* Left X coordinate.
*
* @var float
*/
public $left;
/**
* Right X coordinate.
*
* @var float
*/
public $right;
/**
* Top Y coordinate.
*
* @var float
*/
public $top;
/**
* Bottom Y coordinate.
*
* @param float $bottom
*/
public function setBottom($bottom)
{
$this->bottom = $bottom;
}
/**
* @return float
*/
public function getBottom()
{
return $this->bottom;
}
/**
* Left X coordinate.
*
* @param float $left
*/
public function setLeft($left)
{
$this->left = $left;
}
/**
* @return float
*/
public function getLeft()
{
return $this->left;
}
/**
* Right X coordinate.
*
* @param float $right
*/
public function setRight($right)
{
$this->right = $right;
}
/**
* @return float
*/
public function getRight()
{
return $this->right;
}
/**
* Top Y coordinate.
*
* @param float $top
*/
public function setTop($top)
{
$this->top = $top;
}
/**
* @return float
*/
public function getTop()
{
return $this->top;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly extends \Google\Collection
{
protected $collection_key = 'vertices';
protected $verticesType = GoogleCloudVideointelligenceV1beta2NormalizedVertex::class;
protected $verticesDataType = 'array';
/**
* Normalized vertices of the bounding polygon.
*
* @param GoogleCloudVideointelligenceV1beta2NormalizedVertex[] $vertices
*/
public function setVertices($vertices)
{
$this->vertices = $vertices;
}
/**
* @return GoogleCloudVideointelligenceV1beta2NormalizedVertex[]
*/
public function getVertices()
{
return $this->vertices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2NormalizedVertex 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(GoogleCloudVideointelligenceV1beta2NormalizedVertex::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2NormalizedVertex');
@@ -0,0 +1,159 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation extends \Google\Collection
{
protected $collection_key = 'frames';
/**
* Object category's labeling confidence of this track.
*
* @var float
*/
public $confidence;
protected $entityType = GoogleCloudVideointelligenceV1beta2Entity::class;
protected $entityDataType = '';
protected $framesType = GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame::class;
protected $framesDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
/**
* Streaming mode ONLY. In streaming mode, we do not know the end time of a
* tracked object before it is completed. Hence, there is no VideoSegment info
* returned. Instead, we provide a unique identifiable integer track_id so
* that the customers can correlate the results of the ongoing
* ObjectTrackAnnotation of the same track_id over time.
*
* @var string
*/
public $trackId;
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* Object category's labeling confidence of this track.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Entity to specify the object category that this track is labeled as.
*
* @param GoogleCloudVideointelligenceV1beta2Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1beta2Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* Information corresponding to all frames where this object track appears.
* Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
* messages in frames. Streaming mode: it can only be one ObjectTrackingFrame
* message in frames.
*
* @param GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Non-streaming batch mode ONLY. Each object track corresponds to one video
* segment where it appears.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Streaming mode ONLY. In streaming mode, we do not know the end time of a
* tracked object before it is completed. Hence, there is no VideoSegment info
* returned. Instead, we provide a unique identifiable integer track_id so
* that the customers can correlate the results of the ongoing
* ObjectTrackAnnotation of the same track_id over time.
*
* @param string $trackId
*/
public function setTrackId($trackId)
{
$this->trackId = $trackId;
}
/**
* @return string
*/
public function getTrackId()
{
return $this->trackId;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame extends \Google\Model
{
protected $normalizedBoundingBoxType = GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox::class;
protected $normalizedBoundingBoxDataType = '';
/**
* The timestamp of the frame in microseconds.
*
* @var string
*/
public $timeOffset;
/**
* The normalized bounding box location of this object track for the frame.
*
* @param GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox $normalizedBoundingBox
*/
public function setNormalizedBoundingBox(GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox $normalizedBoundingBox)
{
$this->normalizedBoundingBox = $normalizedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox
*/
public function getNormalizedBoundingBox()
{
return $this->normalizedBoundingBox;
}
/**
* The timestamp of the frame in microseconds.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2ObjectTrackingFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
protected $tracksType = GoogleCloudVideointelligenceV1beta2Track::class;
protected $tracksDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* The detected tracks of a person.
*
* @param GoogleCloudVideointelligenceV1beta2Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1beta2Track[]
*/
public function getTracks()
{
return $this->tracks;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation');
@@ -0,0 +1,101 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative extends \Google\Collection
{
protected $collection_key = 'words';
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @var float
*/
public $confidence;
/**
* Transcript text representing the words that the user spoke.
*
* @var string
*/
public $transcript;
protected $wordsType = GoogleCloudVideointelligenceV1beta2WordInfo::class;
protected $wordsDataType = 'array';
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Transcript text representing the words that the user spoke.
*
* @param string $transcript
*/
public function setTranscript($transcript)
{
$this->transcript = $transcript;
}
/**
* @return string
*/
public function getTranscript()
{
return $this->transcript;
}
/**
* Output only. A list of word-specific information for each recognized word.
* Note: When `enable_speaker_diarization` is set to true, you will see all
* the words from the beginning of the audio.
*
* @param GoogleCloudVideointelligenceV1beta2WordInfo[] $words
*/
public function setWords($words)
{
$this->words = $words;
}
/**
* @return GoogleCloudVideointelligenceV1beta2WordInfo[]
*/
public function getWords()
{
return $this->words;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2SpeechTranscription extends \Google\Collection
{
protected $collection_key = 'alternatives';
protected $alternativesType = GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative::class;
protected $alternativesDataType = 'array';
/**
* Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
* language tag of the language in this result. This language code was
* detected to have the most likelihood of being spoken in the audio.
*
* @var string
*/
public $languageCode;
/**
* May contain one or more recognition hypotheses (up to the maximum specified
* in `max_alternatives`). These alternatives are ordered in terms of
* accuracy, with the top (first) alternative being the most probable, as
* ranked by the recognizer.
*
* @param GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative[] $alternatives
*/
public function setAlternatives($alternatives)
{
$this->alternatives = $alternatives;
}
/**
* @return GoogleCloudVideointelligenceV1beta2SpeechRecognitionAlternative[]
*/
public function getAlternatives()
{
return $this->alternatives;
}
/**
* Output only. The [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
* language tag of the language in this result. This language code was
* detected to have the most likelihood of being spoken in the audio.
*
* @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(GoogleCloudVideointelligenceV1beta2SpeechTranscription::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2SpeechTranscription');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2TextAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $segmentsType = GoogleCloudVideointelligenceV1beta2TextSegment::class;
protected $segmentsDataType = 'array';
/**
* The detected text.
*
* @var string
*/
public $text;
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* All video segments where OCR detected text appears.
*
* @param GoogleCloudVideointelligenceV1beta2TextSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1beta2TextSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* The detected text.
*
* @param string $text
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2TextAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextAnnotation');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2TextFrame extends \Google\Model
{
protected $rotatedBoundingBoxType = GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly::class;
protected $rotatedBoundingBoxDataType = '';
/**
* Timestamp of this frame.
*
* @var string
*/
public $timeOffset;
/**
* Bounding polygon of the detected text for this frame.
*
* @param GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly $rotatedBoundingBox
*/
public function setRotatedBoundingBox(GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly $rotatedBoundingBox)
{
$this->rotatedBoundingBox = $rotatedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1beta2NormalizedBoundingPoly
*/
public function getRotatedBoundingBox()
{
return $this->rotatedBoundingBox;
}
/**
* Timestamp of this frame.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2TextFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextFrame');
@@ -0,0 +1,87 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2TextSegment extends \Google\Collection
{
protected $collection_key = 'frames';
/**
* Confidence for the track of detected text. It is calculated as the highest
* over all frames where OCR detected text appears.
*
* @var float
*/
public $confidence;
protected $framesType = GoogleCloudVideointelligenceV1beta2TextFrame::class;
protected $framesDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
/**
* Confidence for the track of detected text. It is calculated as the highest
* over all frames where OCR detected text appears.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Information related to the frames where OCR detected text appears.
*
* @param GoogleCloudVideointelligenceV1beta2TextFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1beta2TextFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Video segment where a text snippet was detected.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2TextSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TextSegment');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2TimestampedObject extends \Google\Collection
{
protected $collection_key = 'landmarks';
protected $attributesType = GoogleCloudVideointelligenceV1beta2DetectedAttribute::class;
protected $attributesDataType = 'array';
protected $landmarksType = GoogleCloudVideointelligenceV1beta2DetectedLandmark::class;
protected $landmarksDataType = 'array';
protected $normalizedBoundingBoxType = GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox::class;
protected $normalizedBoundingBoxDataType = '';
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this object.
*
* @var string
*/
public $timeOffset;
/**
* Optional. The attributes of the object in the bounding box.
*
* @param GoogleCloudVideointelligenceV1beta2DetectedAttribute[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return GoogleCloudVideointelligenceV1beta2DetectedAttribute[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Optional. The detected landmarks.
*
* @param GoogleCloudVideointelligenceV1beta2DetectedLandmark[] $landmarks
*/
public function setLandmarks($landmarks)
{
$this->landmarks = $landmarks;
}
/**
* @return GoogleCloudVideointelligenceV1beta2DetectedLandmark[]
*/
public function getLandmarks()
{
return $this->landmarks;
}
/**
* Normalized Bounding box in a frame, where the object is located.
*
* @param GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox $normalizedBoundingBox
*/
public function setNormalizedBoundingBox(GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox $normalizedBoundingBox)
{
$this->normalizedBoundingBox = $normalizedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1beta2NormalizedBoundingBox
*/
public function getNormalizedBoundingBox()
{
return $this->normalizedBoundingBox;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this object.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2TimestampedObject::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2TimestampedObject');
@@ -0,0 +1,103 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2Track extends \Google\Collection
{
protected $collection_key = 'timestampedObjects';
protected $attributesType = GoogleCloudVideointelligenceV1beta2DetectedAttribute::class;
protected $attributesDataType = 'array';
/**
* Optional. The confidence score of the tracked object.
*
* @var float
*/
public $confidence;
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
protected $timestampedObjectsType = GoogleCloudVideointelligenceV1beta2TimestampedObject::class;
protected $timestampedObjectsDataType = 'array';
/**
* Optional. Attributes in the track level.
*
* @param GoogleCloudVideointelligenceV1beta2DetectedAttribute[] $attributes
*/
public function setAttributes($attributes)
{
$this->attributes = $attributes;
}
/**
* @return GoogleCloudVideointelligenceV1beta2DetectedAttribute[]
*/
public function getAttributes()
{
return $this->attributes;
}
/**
* Optional. The confidence score of the tracked object.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Video segment of a track.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* The object with timestamp and attributes per frame in the track.
*
* @param GoogleCloudVideointelligenceV1beta2TimestampedObject[] $timestampedObjects
*/
public function setTimestampedObjects($timestampedObjects)
{
$this->timestampedObjects = $timestampedObjects;
}
/**
* @return GoogleCloudVideointelligenceV1beta2TimestampedObject[]
*/
public function getTimestampedObjects()
{
return $this->timestampedObjects;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2Track::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2Track');
@@ -0,0 +1,223 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress extends \Google\Model
{
/**
* Unspecified.
*/
public const FEATURE_FEATURE_UNSPECIFIED = 'FEATURE_UNSPECIFIED';
/**
* Label detection. Detect objects, such as dog or flower.
*/
public const FEATURE_LABEL_DETECTION = 'LABEL_DETECTION';
/**
* Shot change detection.
*/
public const FEATURE_SHOT_CHANGE_DETECTION = 'SHOT_CHANGE_DETECTION';
/**
* Explicit content detection.
*/
public const FEATURE_EXPLICIT_CONTENT_DETECTION = 'EXPLICIT_CONTENT_DETECTION';
/**
* Human face detection.
*/
public const FEATURE_FACE_DETECTION = 'FACE_DETECTION';
/**
* Speech transcription.
*/
public const FEATURE_SPEECH_TRANSCRIPTION = 'SPEECH_TRANSCRIPTION';
/**
* OCR text detection and tracking.
*/
public const FEATURE_TEXT_DETECTION = 'TEXT_DETECTION';
/**
* Object detection and tracking.
*/
public const FEATURE_OBJECT_TRACKING = 'OBJECT_TRACKING';
/**
* Logo detection, tracking, and recognition.
*/
public const FEATURE_LOGO_RECOGNITION = 'LOGO_RECOGNITION';
/**
* Person detection.
*/
public const FEATURE_PERSON_DETECTION = 'PERSON_DETECTION';
protected $exportStatusType = GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus::class;
protected $exportStatusDataType = '';
/**
* Specifies which feature is being tracked if the request contains more than
* one feature.
*
* @var string
*/
public $feature;
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @var string
*/
public $inputUri;
/**
* Approximate percentage processed thus far. Guaranteed to be 100 when fully
* processed.
*
* @var int
*/
public $progressPercent;
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
/**
* Time when the request was received.
*
* @var string
*/
public $startTime;
/**
* Time of the most recent update.
*
* @var string
*/
public $updateTime;
/**
* Status of exporting annotation response to user specified `output_uri`.
* Only set if `output_uri` is set in the request.
*
* @param GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus $exportStatus
*/
public function setExportStatus(GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus $exportStatus)
{
$this->exportStatus = $exportStatus;
}
/**
* @return GoogleCloudVideointelligenceV1beta2ExportToOutputUriStatus
*/
public function getExportStatus()
{
return $this->exportStatus;
}
/**
* Specifies which feature is being tracked if the request contains more than
* one feature.
*
* Accepted values: FEATURE_UNSPECIFIED, LABEL_DETECTION,
* SHOT_CHANGE_DETECTION, EXPLICIT_CONTENT_DETECTION, FACE_DETECTION,
* SPEECH_TRANSCRIPTION, TEXT_DETECTION, OBJECT_TRACKING, LOGO_RECOGNITION,
* PERSON_DETECTION
*
* @param self::FEATURE_* $feature
*/
public function setFeature($feature)
{
$this->feature = $feature;
}
/**
* @return self::FEATURE_*
*/
public function getFeature()
{
return $this->feature;
}
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @param string $inputUri
*/
public function setInputUri($inputUri)
{
$this->inputUri = $inputUri;
}
/**
* @return string
*/
public function getInputUri()
{
return $this->inputUri;
}
/**
* Approximate percentage processed thus far. Guaranteed to be 100 when fully
* processed.
*
* @param int $progressPercent
*/
public function setProgressPercent($progressPercent)
{
$this->progressPercent = $progressPercent;
}
/**
* @return int
*/
public function getProgressPercent()
{
return $this->progressPercent;
}
/**
* Specifies which segment is being tracked if the request contains more than
* one segment.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Time when the request was received.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Time of the most recent update.
*
* @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(GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoAnnotationProgress');
@@ -0,0 +1,353 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2VideoAnnotationResults extends \Google\Collection
{
protected $collection_key = 'textAnnotations';
protected $errorType = GoogleRpcStatus::class;
protected $errorDataType = '';
protected $explicitAnnotationType = GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation::class;
protected $explicitAnnotationDataType = '';
protected $faceAnnotationsType = GoogleCloudVideointelligenceV1beta2FaceAnnotation::class;
protected $faceAnnotationsDataType = 'array';
protected $faceDetectionAnnotationsType = GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation::class;
protected $faceDetectionAnnotationsDataType = 'array';
protected $frameLabelAnnotationsType = GoogleCloudVideointelligenceV1beta2LabelAnnotation::class;
protected $frameLabelAnnotationsDataType = 'array';
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @var string
*/
public $inputUri;
protected $logoRecognitionAnnotationsType = GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation::class;
protected $logoRecognitionAnnotationsDataType = 'array';
protected $objectAnnotationsType = GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation::class;
protected $objectAnnotationsDataType = 'array';
protected $personDetectionAnnotationsType = GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation::class;
protected $personDetectionAnnotationsDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $segmentDataType = '';
protected $segmentLabelAnnotationsType = GoogleCloudVideointelligenceV1beta2LabelAnnotation::class;
protected $segmentLabelAnnotationsDataType = 'array';
protected $segmentPresenceLabelAnnotationsType = GoogleCloudVideointelligenceV1beta2LabelAnnotation::class;
protected $segmentPresenceLabelAnnotationsDataType = 'array';
protected $shotAnnotationsType = GoogleCloudVideointelligenceV1beta2VideoSegment::class;
protected $shotAnnotationsDataType = 'array';
protected $shotLabelAnnotationsType = GoogleCloudVideointelligenceV1beta2LabelAnnotation::class;
protected $shotLabelAnnotationsDataType = 'array';
protected $shotPresenceLabelAnnotationsType = GoogleCloudVideointelligenceV1beta2LabelAnnotation::class;
protected $shotPresenceLabelAnnotationsDataType = 'array';
protected $speechTranscriptionsType = GoogleCloudVideointelligenceV1beta2SpeechTranscription::class;
protected $speechTranscriptionsDataType = 'array';
protected $textAnnotationsType = GoogleCloudVideointelligenceV1beta2TextAnnotation::class;
protected $textAnnotationsDataType = 'array';
/**
* If set, indicates an error. Note that for a single `AnnotateVideoRequest`
* some videos may succeed and some may fail.
*
* @param GoogleRpcStatus $error
*/
public function setError(GoogleRpcStatus $error)
{
$this->error = $error;
}
/**
* @return GoogleRpcStatus
*/
public function getError()
{
return $this->error;
}
/**
* Explicit content annotation.
*
* @param GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation $explicitAnnotation
*/
public function setExplicitAnnotation(GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation $explicitAnnotation)
{
$this->explicitAnnotation = $explicitAnnotation;
}
/**
* @return GoogleCloudVideointelligenceV1beta2ExplicitContentAnnotation
*/
public function getExplicitAnnotation()
{
return $this->explicitAnnotation;
}
/**
* Deprecated. Please use `face_detection_annotations` instead.
*
* @deprecated
* @param GoogleCloudVideointelligenceV1beta2FaceAnnotation[] $faceAnnotations
*/
public function setFaceAnnotations($faceAnnotations)
{
$this->faceAnnotations = $faceAnnotations;
}
/**
* @deprecated
* @return GoogleCloudVideointelligenceV1beta2FaceAnnotation[]
*/
public function getFaceAnnotations()
{
return $this->faceAnnotations;
}
/**
* Face detection annotations.
*
* @param GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation[] $faceDetectionAnnotations
*/
public function setFaceDetectionAnnotations($faceDetectionAnnotations)
{
$this->faceDetectionAnnotations = $faceDetectionAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2FaceDetectionAnnotation[]
*/
public function getFaceDetectionAnnotations()
{
return $this->faceDetectionAnnotations;
}
/**
* Label annotations on frame level. There is exactly one element for each
* unique label.
*
* @param GoogleCloudVideointelligenceV1beta2LabelAnnotation[] $frameLabelAnnotations
*/
public function setFrameLabelAnnotations($frameLabelAnnotations)
{
$this->frameLabelAnnotations = $frameLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelAnnotation[]
*/
public function getFrameLabelAnnotations()
{
return $this->frameLabelAnnotations;
}
/**
* Video file location in [Cloud Storage](https://cloud.google.com/storage/).
*
* @param string $inputUri
*/
public function setInputUri($inputUri)
{
$this->inputUri = $inputUri;
}
/**
* @return string
*/
public function getInputUri()
{
return $this->inputUri;
}
/**
* Annotations for list of logos detected, tracked and recognized in video.
*
* @param GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation[] $logoRecognitionAnnotations
*/
public function setLogoRecognitionAnnotations($logoRecognitionAnnotations)
{
$this->logoRecognitionAnnotations = $logoRecognitionAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LogoRecognitionAnnotation[]
*/
public function getLogoRecognitionAnnotations()
{
return $this->logoRecognitionAnnotations;
}
/**
* Annotations for list of objects detected and tracked in video.
*
* @param GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation[] $objectAnnotations
*/
public function setObjectAnnotations($objectAnnotations)
{
$this->objectAnnotations = $objectAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2ObjectTrackingAnnotation[]
*/
public function getObjectAnnotations()
{
return $this->objectAnnotations;
}
/**
* Person detection annotations.
*
* @param GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation[] $personDetectionAnnotations
*/
public function setPersonDetectionAnnotations($personDetectionAnnotations)
{
$this->personDetectionAnnotations = $personDetectionAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2PersonDetectionAnnotation[]
*/
public function getPersonDetectionAnnotations()
{
return $this->personDetectionAnnotations;
}
/**
* Video segment on which the annotation is run.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1beta2VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Topical label annotations on video level or user-specified segment level.
* There is exactly one element for each unique label.
*
* @param GoogleCloudVideointelligenceV1beta2LabelAnnotation[] $segmentLabelAnnotations
*/
public function setSegmentLabelAnnotations($segmentLabelAnnotations)
{
$this->segmentLabelAnnotations = $segmentLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelAnnotation[]
*/
public function getSegmentLabelAnnotations()
{
return $this->segmentLabelAnnotations;
}
/**
* Presence label annotations on video level or user-specified segment level.
* There is exactly one element for each unique label. Compared to the
* existing topical `segment_label_annotations`, this field presents more
* fine-grained, segment-level labels detected in video content and is made
* available only when the client sets `LabelDetectionConfig.model` to
* "builtin/latest" in the request.
*
* @param GoogleCloudVideointelligenceV1beta2LabelAnnotation[] $segmentPresenceLabelAnnotations
*/
public function setSegmentPresenceLabelAnnotations($segmentPresenceLabelAnnotations)
{
$this->segmentPresenceLabelAnnotations = $segmentPresenceLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelAnnotation[]
*/
public function getSegmentPresenceLabelAnnotations()
{
return $this->segmentPresenceLabelAnnotations;
}
/**
* Shot annotations. Each shot is represented as a video segment.
*
* @param GoogleCloudVideointelligenceV1beta2VideoSegment[] $shotAnnotations
*/
public function setShotAnnotations($shotAnnotations)
{
$this->shotAnnotations = $shotAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2VideoSegment[]
*/
public function getShotAnnotations()
{
return $this->shotAnnotations;
}
/**
* Topical label annotations on shot level. There is exactly one element for
* each unique label.
*
* @param GoogleCloudVideointelligenceV1beta2LabelAnnotation[] $shotLabelAnnotations
*/
public function setShotLabelAnnotations($shotLabelAnnotations)
{
$this->shotLabelAnnotations = $shotLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelAnnotation[]
*/
public function getShotLabelAnnotations()
{
return $this->shotLabelAnnotations;
}
/**
* Presence label annotations on shot level. There is exactly one element for
* each unique label. Compared to the existing topical
* `shot_label_annotations`, this field presents more fine-grained, shot-level
* labels detected in video content and is made available only when the client
* sets `LabelDetectionConfig.model` to "builtin/latest" in the request.
*
* @param GoogleCloudVideointelligenceV1beta2LabelAnnotation[] $shotPresenceLabelAnnotations
*/
public function setShotPresenceLabelAnnotations($shotPresenceLabelAnnotations)
{
$this->shotPresenceLabelAnnotations = $shotPresenceLabelAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2LabelAnnotation[]
*/
public function getShotPresenceLabelAnnotations()
{
return $this->shotPresenceLabelAnnotations;
}
/**
* Speech transcription.
*
* @param GoogleCloudVideointelligenceV1beta2SpeechTranscription[] $speechTranscriptions
*/
public function setSpeechTranscriptions($speechTranscriptions)
{
$this->speechTranscriptions = $speechTranscriptions;
}
/**
* @return GoogleCloudVideointelligenceV1beta2SpeechTranscription[]
*/
public function getSpeechTranscriptions()
{
return $this->speechTranscriptions;
}
/**
* OCR text detection and tracking. Annotations for list of detected text
* snippets. Each will have list of frame information associated with it.
*
* @param GoogleCloudVideointelligenceV1beta2TextAnnotation[] $textAnnotations
*/
public function setTextAnnotations($textAnnotations)
{
$this->textAnnotations = $textAnnotations;
}
/**
* @return GoogleCloudVideointelligenceV1beta2TextAnnotation[]
*/
public function getTextAnnotations()
{
return $this->textAnnotations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2VideoAnnotationResults::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoAnnotationResults');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2VideoSegment extends \Google\Model
{
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* end of the segment (inclusive).
*
* @var string
*/
public $endTimeOffset;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* start of the segment (inclusive).
*
* @var string
*/
public $startTimeOffset;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* end of the segment (inclusive).
*
* @param string $endTimeOffset
*/
public function setEndTimeOffset($endTimeOffset)
{
$this->endTimeOffset = $endTimeOffset;
}
/**
* @return string
*/
public function getEndTimeOffset()
{
return $this->endTimeOffset;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* start of the segment (inclusive).
*
* @param string $startTimeOffset
*/
public function setStartTimeOffset($startTimeOffset)
{
$this->startTimeOffset = $startTimeOffset;
}
/**
* @return string
*/
public function getStartTimeOffset()
{
return $this->startTimeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2VideoSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2VideoSegment');
@@ -0,0 +1,190 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1beta2WordInfo extends \Google\Model
{
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @var float
*/
public $confidence;
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the end of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @var string
*/
public $endTime;
/**
* Output only. A distinct string value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word.
*
* @var string
*/
public $speakerLabel;
/**
* Output only. A distinct integer value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word. Value ranges from 1 up to diarization_speaker_count,
* and is only set if speaker diarization is enabled.
*
* @var int
*/
public $speakerTag;
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the start of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @var string
*/
public $startTime;
/**
* The word corresponding to this set of information.
*
* @var string
*/
public $word;
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the end of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Output only. A distinct string value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word.
*
* @param string $speakerLabel
*/
public function setSpeakerLabel($speakerLabel)
{
$this->speakerLabel = $speakerLabel;
}
/**
* @return string
*/
public function getSpeakerLabel()
{
return $this->speakerLabel;
}
/**
* Output only. A distinct integer value is assigned for every speaker within
* the audio. This field specifies which one of those speakers was detected to
* have spoken this word. Value ranges from 1 up to diarization_speaker_count,
* and is only set if speaker diarization is enabled.
*
* @param int $speakerTag
*/
public function setSpeakerTag($speakerTag)
{
$this->speakerTag = $speakerTag;
}
/**
* @return int
*/
public function getSpeakerTag()
{
return $this->speakerTag;
}
/**
* Time offset relative to the beginning of the audio, and corresponding to
* the start of the spoken word. This field is only set if
* `enable_word_time_offsets=true` and only in the top hypothesis. This is an
* experimental feature and the accuracy of the time offset can vary.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* The word corresponding to this set of information.
*
* @param string $word
*/
public function setWord($word)
{
$this->word = $word;
}
/**
* @return string
*/
public function getWord()
{
return $this->word;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1beta2WordInfo::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1beta2WordInfo');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress extends \Google\Collection
{
protected $collection_key = 'annotationProgress';
protected $annotationProgressType = GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress::class;
protected $annotationProgressDataType = 'array';
/**
* Progress metadata for all videos specified in `AnnotateVideoRequest`.
*
* @param GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress[] $annotationProgress
*/
public function setAnnotationProgress($annotationProgress)
{
$this->annotationProgress = $annotationProgress;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1VideoAnnotationProgress[]
*/
public function getAnnotationProgress()
{
return $this->annotationProgress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1AnnotateVideoProgress');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse extends \Google\Collection
{
protected $collection_key = 'annotationResults';
protected $annotationResultsType = GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults::class;
protected $annotationResultsDataType = 'array';
/**
* Annotation results for all videos specified in `AnnotateVideoRequest`.
*
* @param GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults[] $annotationResults
*/
public function setAnnotationResults($annotationResults)
{
$this->annotationResults = $annotationResults;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1VideoAnnotationResults[]
*/
public function getAnnotationResults()
{
return $this->annotationResults;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1AnnotateVideoResponse');
@@ -0,0 +1,96 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1DetectedAttribute extends \Google\Model
{
/**
* Detected attribute confidence. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The name of the attribute, for example, glasses, dark_glasses, mouth_open.
* A full list of supported type names will be provided in the document.
*
* @var string
*/
public $name;
/**
* Text value of the detection result. For example, the value for "HairColor"
* can be "black", "blonde", etc.
*
* @var string
*/
public $value;
/**
* Detected attribute confidence. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The name of the attribute, for example, glasses, dark_glasses, mouth_open.
* A full list of supported type names will be provided in the document.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Text value of the detection result. For example, the value for "HairColor"
* can be "black", "blonde", etc.
*
* @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(GoogleCloudVideointelligenceV1p1beta1DetectedAttribute::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1DetectedAttribute');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1DetectedLandmark extends \Google\Model
{
/**
* The confidence score of the detected landmark. Range [0, 1].
*
* @var float
*/
public $confidence;
/**
* The name of this landmark, for example, left_hand, right_shoulder.
*
* @var string
*/
public $name;
protected $pointType = GoogleCloudVideointelligenceV1p1beta1NormalizedVertex::class;
protected $pointDataType = '';
/**
* The confidence score of the detected landmark. Range [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The name of this landmark, for example, left_hand, right_shoulder.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The 2D point of the detected landmark using the normalized image coordinate
* system. The normalized coordinates have the range from 0 to 1.
*
* @param GoogleCloudVideointelligenceV1p1beta1NormalizedVertex $point
*/
public function setPoint(GoogleCloudVideointelligenceV1p1beta1NormalizedVertex $point)
{
$this->point = $point;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1NormalizedVertex
*/
public function getPoint()
{
return $this->point;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1DetectedLandmark::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1DetectedLandmark');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1Entity extends \Google\Model
{
/**
* Textual description, e.g., `Fixed-gear bicycle`.
*
* @var string
*/
public $description;
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @var string
*/
public $entityId;
/**
* Language code for `description` in BCP-47 format.
*
* @var string
*/
public $languageCode;
/**
* Textual description, e.g., `Fixed-gear bicycle`.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Opaque entity ID. Some IDs may be available in [Google Knowledge Graph
* Search API](https://developers.google.com/knowledge-graph/).
*
* @param string $entityId
*/
public function setEntityId($entityId)
{
$this->entityId = $entityId;
}
/**
* @return string
*/
public function getEntityId()
{
return $this->entityId;
}
/**
* Language code for `description` in BCP-47 format.
*
* @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(GoogleCloudVideointelligenceV1p1beta1Entity::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1Entity');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation extends \Google\Collection
{
protected $collection_key = 'frames';
protected $framesType = GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame::class;
protected $framesDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* All video frames where explicit content was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ExplicitContentAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame extends \Google\Model
{
/**
* Unspecified likelihood.
*/
public const PORNOGRAPHY_LIKELIHOOD_LIKELIHOOD_UNSPECIFIED = 'LIKELIHOOD_UNSPECIFIED';
/**
* Very unlikely.
*/
public const PORNOGRAPHY_LIKELIHOOD_VERY_UNLIKELY = 'VERY_UNLIKELY';
/**
* Unlikely.
*/
public const PORNOGRAPHY_LIKELIHOOD_UNLIKELY = 'UNLIKELY';
/**
* Possible.
*/
public const PORNOGRAPHY_LIKELIHOOD_POSSIBLE = 'POSSIBLE';
/**
* Likely.
*/
public const PORNOGRAPHY_LIKELIHOOD_LIKELY = 'LIKELY';
/**
* Very likely.
*/
public const PORNOGRAPHY_LIKELIHOOD_VERY_LIKELY = 'VERY_LIKELY';
/**
* Likelihood of the pornography content..
*
* @var string
*/
public $pornographyLikelihood;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Likelihood of the pornography content..
*
* Accepted values: LIKELIHOOD_UNSPECIFIED, VERY_UNLIKELY, UNLIKELY, POSSIBLE,
* LIKELY, VERY_LIKELY
*
* @param self::PORNOGRAPHY_LIKELIHOOD_* $pornographyLikelihood
*/
public function setPornographyLikelihood($pornographyLikelihood)
{
$this->pornographyLikelihood = $pornographyLikelihood;
}
/**
* @return self::PORNOGRAPHY_LIKELIHOOD_*
*/
public function getPornographyLikelihood()
{
return $this->pornographyLikelihood;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ExplicitContentFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus extends \Google\Model
{
/**
* Default value.
*/
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Export succeeded.
*/
public const STATE_SUCCEEDED = 'SUCCEEDED';
/**
* Export failed.
*/
public const STATE_FAILED = 'FAILED';
/**
* Output only. State of the `output_uri` export.
*
* @var string
*/
public $state;
protected $statusType = GoogleRpcStatus::class;
protected $statusDataType = '';
/**
* Output only. State of the `output_uri` export.
*
* Accepted values: STATE_UNSPECIFIED, SUCCEEDED, FAILED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Output only. Only set if state is FAILED.
*
* @param GoogleRpcStatus $status
*/
public function setStatus(GoogleRpcStatus $status)
{
$this->status = $status;
}
/**
* @return GoogleRpcStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ExportToOutputUriStatus');
@@ -0,0 +1,85 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1FaceAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $framesType = GoogleCloudVideointelligenceV1p1beta1FaceFrame::class;
protected $framesDataType = 'array';
protected $segmentsType = GoogleCloudVideointelligenceV1p1beta1FaceSegment::class;
protected $segmentsDataType = 'array';
/**
* Thumbnail of a representative face view (in JPEG format).
*
* @var string
*/
public $thumbnail;
/**
* All video frames where a face was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1FaceFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1FaceFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* All video segments where a face was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1FaceSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1FaceSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Thumbnail of a representative face view (in JPEG format).
*
* @param string $thumbnail
*/
public function setThumbnail($thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return string
*/
public function getThumbnail()
{
return $this->thumbnail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1FaceAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceAnnotation');
@@ -0,0 +1,89 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
/**
* The thumbnail of a person's face.
*
* @var string
*/
public $thumbnail;
protected $tracksType = GoogleCloudVideointelligenceV1p1beta1Track::class;
protected $tracksDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* The thumbnail of a person's face.
*
* @param string $thumbnail
*/
public function setThumbnail($thumbnail)
{
$this->thumbnail = $thumbnail;
}
/**
* @return string
*/
public function getThumbnail()
{
return $this->thumbnail;
}
/**
* The face tracks with attributes.
*
* @param GoogleCloudVideointelligenceV1p1beta1Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Track[]
*/
public function getTracks()
{
return $this->tracks;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceDetectionAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1FaceFrame extends \Google\Collection
{
protected $collection_key = 'normalizedBoundingBoxes';
protected $normalizedBoundingBoxesType = GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::class;
protected $normalizedBoundingBoxesDataType = 'array';
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Normalized Bounding boxes in a frame. There can be more than one boxes if
* the same face is detected in multiple locations within the current frame.
*
* @param GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox[] $normalizedBoundingBoxes
*/
public function setNormalizedBoundingBoxes($normalizedBoundingBoxes)
{
$this->normalizedBoundingBoxes = $normalizedBoundingBoxes;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox[]
*/
public function getNormalizedBoundingBoxes()
{
return $this->normalizedBoundingBoxes;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1FaceFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1FaceSegment extends \Google\Model
{
protected $segmentType = GoogleCloudVideointelligenceV1p1beta1VideoSegment::class;
protected $segmentDataType = '';
/**
* Video segment where a face was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1FaceSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1FaceSegment');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1LabelAnnotation extends \Google\Collection
{
protected $collection_key = 'segments';
protected $categoryEntitiesType = GoogleCloudVideointelligenceV1p1beta1Entity::class;
protected $categoryEntitiesDataType = 'array';
protected $entityType = GoogleCloudVideointelligenceV1p1beta1Entity::class;
protected $entityDataType = '';
protected $framesType = GoogleCloudVideointelligenceV1p1beta1LabelFrame::class;
protected $framesDataType = 'array';
protected $segmentsType = GoogleCloudVideointelligenceV1p1beta1LabelSegment::class;
protected $segmentsDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* Common categories for the detected entity. For example, when the label is
* `Terrier`, the category is likely `dog`. And in some cases there might be
* more than one categories e.g., `Terrier` could also be a `pet`.
*
* @param GoogleCloudVideointelligenceV1p1beta1Entity[] $categoryEntities
*/
public function setCategoryEntities($categoryEntities)
{
$this->categoryEntities = $categoryEntities;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Entity[]
*/
public function getCategoryEntities()
{
return $this->categoryEntities;
}
/**
* Detected entity.
*
* @param GoogleCloudVideointelligenceV1p1beta1Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1p1beta1Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* All video frames where a label was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1LabelFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1LabelFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* All video segments where a label was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1LabelSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1LabelSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1LabelAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1LabelFrame extends \Google\Model
{
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @var float
*/
public $confidence;
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @var string
*/
public $timeOffset;
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Time-offset, relative to the beginning of the video, corresponding to the
* video frame for this location.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1LabelFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelFrame');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1LabelSegment extends \Google\Model
{
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @var float
*/
public $confidence;
protected $segmentType = GoogleCloudVideointelligenceV1p1beta1VideoSegment::class;
protected $segmentDataType = '';
/**
* Confidence that the label is accurate. Range: [0, 1].
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Video segment where a label was detected.
*
* @param GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1LabelSegment::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LabelSegment');
@@ -0,0 +1,84 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
protected $entityType = GoogleCloudVideointelligenceV1p1beta1Entity::class;
protected $entityDataType = '';
protected $segmentsType = GoogleCloudVideointelligenceV1p1beta1VideoSegment::class;
protected $segmentsDataType = 'array';
protected $tracksType = GoogleCloudVideointelligenceV1p1beta1Track::class;
protected $tracksDataType = 'array';
/**
* Entity category information to specify the logo class that all the logo
* tracks within this LogoRecognitionAnnotation are recognized as.
*
* @param GoogleCloudVideointelligenceV1p1beta1Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1p1beta1Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* All video segments where the recognized logo appears. There might be
* multiple instances of the same logo class appearing in one VideoSegment.
*
* @param GoogleCloudVideointelligenceV1p1beta1VideoSegment[] $segments
*/
public function setSegments($segments)
{
$this->segments = $segments;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1VideoSegment[]
*/
public function getSegments()
{
return $this->segments;
}
/**
* All logo tracks where the recognized logo appears. Each track corresponds
* to one logo instance appearing in consecutive frames.
*
* @param GoogleCloudVideointelligenceV1p1beta1Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Track[]
*/
public function getTracks()
{
return $this->tracks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1LogoRecognitionAnnotation');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox extends \Google\Model
{
/**
* Bottom Y coordinate.
*
* @var float
*/
public $bottom;
/**
* Left X coordinate.
*
* @var float
*/
public $left;
/**
* Right X coordinate.
*
* @var float
*/
public $right;
/**
* Top Y coordinate.
*
* @var float
*/
public $top;
/**
* Bottom Y coordinate.
*
* @param float $bottom
*/
public function setBottom($bottom)
{
$this->bottom = $bottom;
}
/**
* @return float
*/
public function getBottom()
{
return $this->bottom;
}
/**
* Left X coordinate.
*
* @param float $left
*/
public function setLeft($left)
{
$this->left = $left;
}
/**
* @return float
*/
public function getLeft()
{
return $this->left;
}
/**
* Right X coordinate.
*
* @param float $right
*/
public function setRight($right)
{
$this->right = $right;
}
/**
* @return float
*/
public function getRight()
{
return $this->right;
}
/**
* Top Y coordinate.
*
* @param float $top
*/
public function setTop($top)
{
$this->top = $top;
}
/**
* @return float
*/
public function getTop()
{
return $this->top;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly extends \Google\Collection
{
protected $collection_key = 'vertices';
protected $verticesType = GoogleCloudVideointelligenceV1p1beta1NormalizedVertex::class;
protected $verticesDataType = 'array';
/**
* Normalized vertices of the bounding polygon.
*
* @param GoogleCloudVideointelligenceV1p1beta1NormalizedVertex[] $vertices
*/
public function setVertices($vertices)
{
$this->vertices = $vertices;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1NormalizedVertex[]
*/
public function getVertices()
{
return $this->vertices;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingPoly');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1NormalizedVertex 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(GoogleCloudVideointelligenceV1p1beta1NormalizedVertex::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1NormalizedVertex');
@@ -0,0 +1,159 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation extends \Google\Collection
{
protected $collection_key = 'frames';
/**
* Object category's labeling confidence of this track.
*
* @var float
*/
public $confidence;
protected $entityType = GoogleCloudVideointelligenceV1p1beta1Entity::class;
protected $entityDataType = '';
protected $framesType = GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame::class;
protected $framesDataType = 'array';
protected $segmentType = GoogleCloudVideointelligenceV1p1beta1VideoSegment::class;
protected $segmentDataType = '';
/**
* Streaming mode ONLY. In streaming mode, we do not know the end time of a
* tracked object before it is completed. Hence, there is no VideoSegment info
* returned. Instead, we provide a unique identifiable integer track_id so
* that the customers can correlate the results of the ongoing
* ObjectTrackAnnotation of the same track_id over time.
*
* @var string
*/
public $trackId;
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* Object category's labeling confidence of this track.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Entity to specify the object category that this track is labeled as.
*
* @param GoogleCloudVideointelligenceV1p1beta1Entity $entity
*/
public function setEntity(GoogleCloudVideointelligenceV1p1beta1Entity $entity)
{
$this->entity = $entity;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Entity
*/
public function getEntity()
{
return $this->entity;
}
/**
* Information corresponding to all frames where this object track appears.
* Non-streaming batch mode: it may be one or multiple ObjectTrackingFrame
* messages in frames. Streaming mode: it can only be one ObjectTrackingFrame
* message in frames.
*
* @param GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame[] $frames
*/
public function setFrames($frames)
{
$this->frames = $frames;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame[]
*/
public function getFrames()
{
return $this->frames;
}
/**
* Non-streaming batch mode ONLY. Each object track corresponds to one video
* segment where it appears.
*
* @param GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment
*/
public function setSegment(GoogleCloudVideointelligenceV1p1beta1VideoSegment $segment)
{
$this->segment = $segment;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1VideoSegment
*/
public function getSegment()
{
return $this->segment;
}
/**
* Streaming mode ONLY. In streaming mode, we do not know the end time of a
* tracked object before it is completed. Hence, there is no VideoSegment info
* returned. Instead, we provide a unique identifiable integer track_id so
* that the customers can correlate the results of the ongoing
* ObjectTrackAnnotation of the same track_id over time.
*
* @param string $trackId
*/
public function setTrackId($trackId)
{
$this->trackId = $trackId;
}
/**
* @return string
*/
public function getTrackId()
{
return $this->trackId;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingAnnotation');
@@ -0,0 +1,66 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame extends \Google\Model
{
protected $normalizedBoundingBoxType = GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox::class;
protected $normalizedBoundingBoxDataType = '';
/**
* The timestamp of the frame in microseconds.
*
* @var string
*/
public $timeOffset;
/**
* The normalized bounding box location of this object track for the frame.
*
* @param GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox $normalizedBoundingBox
*/
public function setNormalizedBoundingBox(GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox $normalizedBoundingBox)
{
$this->normalizedBoundingBox = $normalizedBoundingBox;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1NormalizedBoundingBox
*/
public function getNormalizedBoundingBox()
{
return $this->normalizedBoundingBox;
}
/**
* The timestamp of the frame in microseconds.
*
* @param string $timeOffset
*/
public function setTimeOffset($timeOffset)
{
$this->timeOffset = $timeOffset;
}
/**
* @return string
*/
public function getTimeOffset()
{
return $this->timeOffset;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1ObjectTrackingFrame');
@@ -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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation extends \Google\Collection
{
protected $collection_key = 'tracks';
protected $tracksType = GoogleCloudVideointelligenceV1p1beta1Track::class;
protected $tracksDataType = 'array';
/**
* Feature version.
*
* @var string
*/
public $version;
/**
* The detected tracks of a person.
*
* @param GoogleCloudVideointelligenceV1p1beta1Track[] $tracks
*/
public function setTracks($tracks)
{
$this->tracks = $tracks;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1Track[]
*/
public function getTracks()
{
return $this->tracks;
}
/**
* Feature version.
*
* @param string $version
*/
public function setVersion($version)
{
$this->version = $version;
}
/**
* @return string
*/
public function getVersion()
{
return $this->version;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1PersonDetectionAnnotation');
@@ -0,0 +1,101 @@
<?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\CloudVideoIntelligence;
class GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative extends \Google\Collection
{
protected $collection_key = 'words';
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @var float
*/
public $confidence;
/**
* Transcript text representing the words that the user spoke.
*
* @var string
*/
public $transcript;
protected $wordsType = GoogleCloudVideointelligenceV1p1beta1WordInfo::class;
protected $wordsDataType = 'array';
/**
* Output only. The confidence estimate between 0.0 and 1.0. A higher number
* indicates an estimated greater likelihood that the recognized words are
* correct. This field is set only for the top alternative. This field is not
* guaranteed to be accurate and users should not rely on it to be always
* provided. The default of 0.0 is a sentinel value indicating `confidence`
* was not set.
*
* @param float $confidence
*/
public function setConfidence($confidence)
{
$this->confidence = $confidence;
}
/**
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* Transcript text representing the words that the user spoke.
*
* @param string $transcript
*/
public function setTranscript($transcript)
{
$this->transcript = $transcript;
}
/**
* @return string
*/
public function getTranscript()
{
return $this->transcript;
}
/**
* Output only. A list of word-specific information for each recognized word.
* Note: When `enable_speaker_diarization` is set to true, you will see all
* the words from the beginning of the audio.
*
* @param GoogleCloudVideointelligenceV1p1beta1WordInfo[] $words
*/
public function setWords($words)
{
$this->words = $words;
}
/**
* @return GoogleCloudVideointelligenceV1p1beta1WordInfo[]
*/
public function getWords()
{
return $this->words;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative::class, 'Google_Service_CloudVideoIntelligence_GoogleCloudVideointelligenceV1p1beta1SpeechRecognitionAlternative');

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