Mise à jour des librairies

This commit is contained in:
lars
2019-03-10 23:30:23 +01:00
parent 2040b7be39
commit 7df3d72953
3603 changed files with 233169 additions and 107764 deletions

View File

@@ -0,0 +1,47 @@
<?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.
*/
class Google_Service_Speech_ListOperationsResponse extends Google_Collection
{
protected $collection_key = 'operations';
public $nextPageToken;
protected $operationsType = 'Google_Service_Speech_Operation';
protected $operationsDataType = 'array';
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Google_Service_Speech_Operation
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return Google_Service_Speech_Operation
*/
public function getOperations()
{
return $this->operations;
}
}

View File

@@ -0,0 +1,48 @@
<?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.
*/
class Google_Service_Speech_LongRunningRecognizeMetadata extends Google_Model
{
public $lastUpdateTime;
public $progressPercent;
public $startTime;
public function setLastUpdateTime($lastUpdateTime)
{
$this->lastUpdateTime = $lastUpdateTime;
}
public function getLastUpdateTime()
{
return $this->lastUpdateTime;
}
public function setProgressPercent($progressPercent)
{
$this->progressPercent = $progressPercent;
}
public function getProgressPercent()
{
return $this->progressPercent;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
}

View File

@@ -0,0 +1,38 @@
<?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.
*/
class Google_Service_Speech_LongRunningRecognizeResponse extends Google_Collection
{
protected $collection_key = 'results';
protected $resultsType = 'Google_Service_Speech_SpeechRecognitionResult';
protected $resultsDataType = 'array';
/**
* @param Google_Service_Speech_SpeechRecognitionResult
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return Google_Service_Speech_SpeechRecognitionResult
*/
public function getResults()
{
return $this->results;
}
}

View File

@@ -18,15 +18,46 @@
class Google_Service_Speech_RecognitionConfig extends Google_Collection
{
protected $collection_key = 'speechContexts';
public $audioChannelCount;
public $enableAutomaticPunctuation;
public $enableSeparateRecognitionPerChannel;
public $enableWordTimeOffsets;
public $encoding;
public $languageCode;
public $maxAlternatives;
protected $metadataType = 'Google_Service_Speech_RecognitionMetadata';
protected $metadataDataType = '';
public $model;
public $profanityFilter;
public $sampleRateHertz;
protected $speechContextsType = 'Google_Service_Speech_SpeechContext';
protected $speechContextsDataType = 'array';
public $useEnhanced;
public function setAudioChannelCount($audioChannelCount)
{
$this->audioChannelCount = $audioChannelCount;
}
public function getAudioChannelCount()
{
return $this->audioChannelCount;
}
public function setEnableAutomaticPunctuation($enableAutomaticPunctuation)
{
$this->enableAutomaticPunctuation = $enableAutomaticPunctuation;
}
public function getEnableAutomaticPunctuation()
{
return $this->enableAutomaticPunctuation;
}
public function setEnableSeparateRecognitionPerChannel($enableSeparateRecognitionPerChannel)
{
$this->enableSeparateRecognitionPerChannel = $enableSeparateRecognitionPerChannel;
}
public function getEnableSeparateRecognitionPerChannel()
{
return $this->enableSeparateRecognitionPerChannel;
}
public function setEnableWordTimeOffsets($enableWordTimeOffsets)
{
$this->enableWordTimeOffsets = $enableWordTimeOffsets;
@@ -59,6 +90,28 @@ class Google_Service_Speech_RecognitionConfig extends Google_Collection
{
return $this->maxAlternatives;
}
/**
* @param Google_Service_Speech_RecognitionMetadata
*/
public function setMetadata(Google_Service_Speech_RecognitionMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return Google_Service_Speech_RecognitionMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
public function setModel($model)
{
$this->model = $model;
}
public function getModel()
{
return $this->model;
}
public function setProfanityFilter($profanityFilter)
{
$this->profanityFilter = $profanityFilter;
@@ -89,4 +142,12 @@ class Google_Service_Speech_RecognitionConfig extends Google_Collection
{
return $this->speechContexts;
}
public function setUseEnhanced($useEnhanced)
{
$this->useEnhanced = $useEnhanced;
}
public function getUseEnhanced()
{
return $this->useEnhanced;
}
}

View File

@@ -0,0 +1,102 @@
<?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.
*/
class Google_Service_Speech_RecognitionMetadata extends Google_Model
{
public $audioTopic;
public $industryNaicsCodeOfAudio;
public $interactionType;
public $microphoneDistance;
public $obfuscatedId;
public $originalMediaType;
public $originalMimeType;
public $recordingDeviceName;
public $recordingDeviceType;
public function setAudioTopic($audioTopic)
{
$this->audioTopic = $audioTopic;
}
public function getAudioTopic()
{
return $this->audioTopic;
}
public function setIndustryNaicsCodeOfAudio($industryNaicsCodeOfAudio)
{
$this->industryNaicsCodeOfAudio = $industryNaicsCodeOfAudio;
}
public function getIndustryNaicsCodeOfAudio()
{
return $this->industryNaicsCodeOfAudio;
}
public function setInteractionType($interactionType)
{
$this->interactionType = $interactionType;
}
public function getInteractionType()
{
return $this->interactionType;
}
public function setMicrophoneDistance($microphoneDistance)
{
$this->microphoneDistance = $microphoneDistance;
}
public function getMicrophoneDistance()
{
return $this->microphoneDistance;
}
public function setObfuscatedId($obfuscatedId)
{
$this->obfuscatedId = $obfuscatedId;
}
public function getObfuscatedId()
{
return $this->obfuscatedId;
}
public function setOriginalMediaType($originalMediaType)
{
$this->originalMediaType = $originalMediaType;
}
public function getOriginalMediaType()
{
return $this->originalMediaType;
}
public function setOriginalMimeType($originalMimeType)
{
$this->originalMimeType = $originalMimeType;
}
public function getOriginalMimeType()
{
return $this->originalMimeType;
}
public function setRecordingDeviceName($recordingDeviceName)
{
$this->recordingDeviceName = $recordingDeviceName;
}
public function getRecordingDeviceName()
{
return $this->recordingDeviceName;
}
public function setRecordingDeviceType($recordingDeviceType)
{
$this->recordingDeviceType = $recordingDeviceType;
}
public function getRecordingDeviceType()
{
return $this->recordingDeviceType;
}
}

View File

@@ -40,4 +40,30 @@ class Google_Service_Speech_Resource_Operations extends Google_Service_Resource
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Speech_Operation");
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
*
* NOTE: the `name` binding allows API services to override the binding to use
* different resource name schemes, such as `users/operations`. To override the
* binding, API services can add a binding such as
* `"/v1/{name=users}/operations"` to their service configuration. For backwards
* compatibility, the default name includes the operations collection id,
* however overriding users must ensure the name binding is the parent resource,
* without the operations collection id. (operations.listOperations)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter The standard list filter.
* @opt_param string name The name of the operation's parent resource.
* @opt_param string pageToken The standard list page token.
* @opt_param int pageSize The standard list page size.
* @return Google_Service_Speech_ListOperationsResponse
*/
public function listOperations($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Speech_ListOperationsResponse");
}
}

View File

@@ -0,0 +1,28 @@
<?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.
*/
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google_Service_Speech(...);
* $projects = $speechService->projects;
* </code>
*/
class Google_Service_Speech_Resource_Projects extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,28 @@
<?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.
*/
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google_Service_Speech(...);
* $locations = $speechService->locations;
* </code>
*/
class Google_Service_Speech_Resource_ProjectsLocations extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google_Service_Speech(...);
* $operations = $speechService->operations;
* </code>
*/
class Google_Service_Speech_Resource_ProjectsLocationsOperations extends Google_Service_Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (operations.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Google_Service_Speech_Operation
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Speech_Operation");
}
/**
* Lists operations that match the specified filter in the request. If the
* server doesn't support this method, it returns `UNIMPLEMENTED`.
*
* NOTE: the `name` binding allows API services to override the binding to use
* different resource name schemes, such as `users/operations`. To override the
* binding, API services can add a binding such as
* `"/v1/{name=users}/operations"` to their service configuration. For backwards
* compatibility, the default name includes the operations collection id,
* however overriding users must ensure the name binding is the parent resource,
* without the operations collection id.
* (operations.listProjectsLocationsOperations)
*
* @param string $name The name of the operation's parent resource.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken The standard list page token.
* @opt_param int pageSize The standard list page size.
* @opt_param string filter The standard list filter.
* @return Google_Service_Speech_ListOperationsResponse
*/
public function listProjectsLocationsOperations($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Speech_ListOperationsResponse");
}
}

View File

@@ -0,0 +1,28 @@
<?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.
*/
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google_Service_Speech(...);
* $operations = $speechService->operations;
* </code>
*/
class Google_Service_Speech_Resource_ProjectsOperations extends Google_Service_Resource
{
}

View File

@@ -0,0 +1,43 @@
<?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.
*/
/**
* The "manualRecognitionTasks" collection of methods.
* Typical usage is:
* <code>
* $speechService = new Google_Service_Speech(...);
* $manualRecognitionTasks = $speechService->manualRecognitionTasks;
* </code>
*/
class Google_Service_Speech_Resource_ProjectsOperationsManualRecognitionTasks extends Google_Service_Resource
{
/**
* Gets the latest state of a long-running operation. Clients can use this
* method to poll the operation result at intervals as recommended by the API
* service. (manualRecognitionTasks.get)
*
* @param string $name The name of the operation resource.
* @param array $optParams Optional parameters.
* @return Google_Service_Speech_Operation
*/
public function get($name, $optParams = array())
{
$params = array('name' => $name);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Speech_Operation");
}
}

View File

@@ -20,6 +20,7 @@ class Google_Service_Speech_SpeechRecognitionResult extends Google_Collection
protected $collection_key = 'alternatives';
protected $alternativesType = 'Google_Service_Speech_SpeechRecognitionAlternative';
protected $alternativesDataType = 'array';
public $channelTag;
/**
* @param Google_Service_Speech_SpeechRecognitionAlternative
@@ -35,4 +36,12 @@ class Google_Service_Speech_SpeechRecognitionResult extends Google_Collection
{
return $this->alternatives;
}
public function setChannelTag($channelTag)
{
$this->channelTag = $channelTag;
}
public function getChannelTag()
{
return $this->channelTag;
}
}

View File

@@ -18,7 +18,6 @@
class Google_Service_Speech_WordInfo extends Google_Model
{
public $endTime;
public $speakerTag;
public $startTime;
public $word;
@@ -30,14 +29,6 @@ class Google_Service_Speech_WordInfo extends Google_Model
{
return $this->endTime;
}
public function setSpeakerTag($speakerTag)
{
$this->speakerTag = $speakerTag;
}
public function getSpeakerTag()
{
return $this->speakerTag;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;