Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
<?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\CloudNaturalLanguage;
class AnalyzeEntitiesRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @var string
*/
public $encodingType;
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
/**
* @param string
*/
public function setEncodingType($encodingType)
{
$this->encodingType = $encodingType;
}
/**
* @return string
*/
public function getEncodingType()
{
return $this->encodingType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeEntitiesRequest::class, 'Google_Service_CloudNaturalLanguage_AnalyzeEntitiesRequest');

View File

@@ -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\CloudNaturalLanguage;
class AnalyzeEntitiesResponse extends \Google\Collection
{
protected $collection_key = 'entities';
protected $entitiesType = Entity::class;
protected $entitiesDataType = 'array';
/**
* @var string
*/
public $languageCode;
/**
* @var bool
*/
public $languageSupported;
/**
* @param Entity[]
*/
public function setEntities($entities)
{
$this->entities = $entities;
}
/**
* @return Entity[]
*/
public function getEntities()
{
return $this->entities;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param bool
*/
public function setLanguageSupported($languageSupported)
{
$this->languageSupported = $languageSupported;
}
/**
* @return bool
*/
public function getLanguageSupported()
{
return $this->languageSupported;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeEntitiesResponse::class, 'Google_Service_CloudNaturalLanguage_AnalyzeEntitiesResponse');

View File

@@ -0,0 +1,60 @@
<?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\CloudNaturalLanguage;
class AnalyzeEntitySentimentRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @var string
*/
public $encodingType;
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
/**
* @param string
*/
public function setEncodingType($encodingType)
{
$this->encodingType = $encodingType;
}
/**
* @return string
*/
public function getEncodingType()
{
return $this->encodingType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeEntitySentimentRequest::class, 'Google_Service_CloudNaturalLanguage_AnalyzeEntitySentimentRequest');

View File

@@ -0,0 +1,61 @@
<?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\CloudNaturalLanguage;
class AnalyzeEntitySentimentResponse extends \Google\Collection
{
protected $collection_key = 'entities';
protected $entitiesType = Entity::class;
protected $entitiesDataType = 'array';
/**
* @var string
*/
public $language;
/**
* @param Entity[]
*/
public function setEntities($entities)
{
$this->entities = $entities;
}
/**
* @return Entity[]
*/
public function getEntities()
{
return $this->entities;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeEntitySentimentResponse::class, 'Google_Service_CloudNaturalLanguage_AnalyzeEntitySentimentResponse');

View File

@@ -0,0 +1,60 @@
<?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\CloudNaturalLanguage;
class AnalyzeSentimentRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @var string
*/
public $encodingType;
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
/**
* @param string
*/
public function setEncodingType($encodingType)
{
$this->encodingType = $encodingType;
}
/**
* @return string
*/
public function getEncodingType()
{
return $this->encodingType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeSentimentRequest::class, 'Google_Service_CloudNaturalLanguage_AnalyzeSentimentRequest');

View File

@@ -0,0 +1,95 @@
<?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\CloudNaturalLanguage;
class AnalyzeSentimentResponse extends \Google\Collection
{
protected $collection_key = 'sentences';
protected $documentSentimentType = Sentiment::class;
protected $documentSentimentDataType = '';
/**
* @var string
*/
public $languageCode;
/**
* @var bool
*/
public $languageSupported;
protected $sentencesType = Sentence::class;
protected $sentencesDataType = 'array';
/**
* @param Sentiment
*/
public function setDocumentSentiment(Sentiment $documentSentiment)
{
$this->documentSentiment = $documentSentiment;
}
/**
* @return Sentiment
*/
public function getDocumentSentiment()
{
return $this->documentSentiment;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param bool
*/
public function setLanguageSupported($languageSupported)
{
$this->languageSupported = $languageSupported;
}
/**
* @return bool
*/
public function getLanguageSupported()
{
return $this->languageSupported;
}
/**
* @param Sentence[]
*/
public function setSentences($sentences)
{
$this->sentences = $sentences;
}
/**
* @return Sentence[]
*/
public function getSentences()
{
return $this->sentences;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeSentimentResponse::class, 'Google_Service_CloudNaturalLanguage_AnalyzeSentimentResponse');

View File

@@ -0,0 +1,60 @@
<?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\CloudNaturalLanguage;
class AnalyzeSyntaxRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @var string
*/
public $encodingType;
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
/**
* @param string
*/
public function setEncodingType($encodingType)
{
$this->encodingType = $encodingType;
}
/**
* @return string
*/
public function getEncodingType()
{
return $this->encodingType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeSyntaxRequest::class, 'Google_Service_CloudNaturalLanguage_AnalyzeSyntaxRequest');

View File

@@ -0,0 +1,77 @@
<?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\CloudNaturalLanguage;
class AnalyzeSyntaxResponse extends \Google\Collection
{
protected $collection_key = 'tokens';
/**
* @var string
*/
public $language;
protected $sentencesType = Sentence::class;
protected $sentencesDataType = 'array';
protected $tokensType = Token::class;
protected $tokensDataType = 'array';
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param Sentence[]
*/
public function setSentences($sentences)
{
$this->sentences = $sentences;
}
/**
* @return Sentence[]
*/
public function getSentences()
{
return $this->sentences;
}
/**
* @param Token[]
*/
public function setTokens($tokens)
{
$this->tokens = $tokens;
}
/**
* @return Token[]
*/
public function getTokens()
{
return $this->tokens;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnalyzeSyntaxResponse::class, 'Google_Service_CloudNaturalLanguage_AnalyzeSyntaxResponse');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class AnnotateTextRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @var string
*/
public $encodingType;
protected $featuresType = AnnotateTextRequestFeatures::class;
protected $featuresDataType = '';
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
/**
* @param string
*/
public function setEncodingType($encodingType)
{
$this->encodingType = $encodingType;
}
/**
* @return string
*/
public function getEncodingType()
{
return $this->encodingType;
}
/**
* @param AnnotateTextRequestFeatures
*/
public function setFeatures(AnnotateTextRequestFeatures $features)
{
$this->features = $features;
}
/**
* @return AnnotateTextRequestFeatures
*/
public function getFeatures()
{
return $this->features;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateTextRequest::class, 'Google_Service_CloudNaturalLanguage_AnnotateTextRequest');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class AnnotateTextRequestFeatures extends \Google\Model
{
/**
* @var bool
*/
public $classifyText;
/**
* @var bool
*/
public $extractDocumentSentiment;
/**
* @var bool
*/
public $extractEntities;
/**
* @var bool
*/
public $moderateText;
/**
* @param bool
*/
public function setClassifyText($classifyText)
{
$this->classifyText = $classifyText;
}
/**
* @return bool
*/
public function getClassifyText()
{
return $this->classifyText;
}
/**
* @param bool
*/
public function setExtractDocumentSentiment($extractDocumentSentiment)
{
$this->extractDocumentSentiment = $extractDocumentSentiment;
}
/**
* @return bool
*/
public function getExtractDocumentSentiment()
{
return $this->extractDocumentSentiment;
}
/**
* @param bool
*/
public function setExtractEntities($extractEntities)
{
$this->extractEntities = $extractEntities;
}
/**
* @return bool
*/
public function getExtractEntities()
{
return $this->extractEntities;
}
/**
* @param bool
*/
public function setModerateText($moderateText)
{
$this->moderateText = $moderateText;
}
/**
* @return bool
*/
public function getModerateText()
{
return $this->moderateText;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateTextRequestFeatures::class, 'Google_Service_CloudNaturalLanguage_AnnotateTextRequestFeatures');

View File

@@ -0,0 +1,143 @@
<?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\CloudNaturalLanguage;
class AnnotateTextResponse extends \Google\Collection
{
protected $collection_key = 'sentences';
protected $categoriesType = ClassificationCategory::class;
protected $categoriesDataType = 'array';
protected $documentSentimentType = Sentiment::class;
protected $documentSentimentDataType = '';
protected $entitiesType = Entity::class;
protected $entitiesDataType = 'array';
/**
* @var string
*/
public $languageCode;
/**
* @var bool
*/
public $languageSupported;
protected $moderationCategoriesType = ClassificationCategory::class;
protected $moderationCategoriesDataType = 'array';
protected $sentencesType = Sentence::class;
protected $sentencesDataType = 'array';
/**
* @param ClassificationCategory[]
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return ClassificationCategory[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* @param Sentiment
*/
public function setDocumentSentiment(Sentiment $documentSentiment)
{
$this->documentSentiment = $documentSentiment;
}
/**
* @return Sentiment
*/
public function getDocumentSentiment()
{
return $this->documentSentiment;
}
/**
* @param Entity[]
*/
public function setEntities($entities)
{
$this->entities = $entities;
}
/**
* @return Entity[]
*/
public function getEntities()
{
return $this->entities;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param bool
*/
public function setLanguageSupported($languageSupported)
{
$this->languageSupported = $languageSupported;
}
/**
* @return bool
*/
public function getLanguageSupported()
{
return $this->languageSupported;
}
/**
* @param ClassificationCategory[]
*/
public function setModerationCategories($moderationCategories)
{
$this->moderationCategories = $moderationCategories;
}
/**
* @return ClassificationCategory[]
*/
public function getModerationCategories()
{
return $this->moderationCategories;
}
/**
* @param Sentence[]
*/
public function setSentences($sentences)
{
$this->sentences = $sentences;
}
/**
* @return Sentence[]
*/
public function getSentences()
{
return $this->sentences;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AnnotateTextResponse::class, 'Google_Service_CloudNaturalLanguage_AnnotateTextResponse');

View File

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

View File

@@ -0,0 +1,58 @@
<?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\CloudNaturalLanguage;
class ClassificationModelOptions extends \Google\Model
{
protected $v1ModelType = V1Model::class;
protected $v1ModelDataType = '';
protected $v2ModelType = V2Model::class;
protected $v2ModelDataType = '';
/**
* @param V1Model
*/
public function setV1Model(V1Model $v1Model)
{
$this->v1Model = $v1Model;
}
/**
* @return V1Model
*/
public function getV1Model()
{
return $this->v1Model;
}
/**
* @param V2Model
*/
public function setV2Model(V2Model $v2Model)
{
$this->v2Model = $v2Model;
}
/**
* @return V2Model
*/
public function getV2Model()
{
return $this->v2Model;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClassificationModelOptions::class, 'Google_Service_CloudNaturalLanguage_ClassificationModelOptions');

View File

@@ -0,0 +1,42 @@
<?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\CloudNaturalLanguage;
class ClassifyTextRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClassifyTextRequest::class, 'Google_Service_CloudNaturalLanguage_ClassifyTextRequest');

View File

@@ -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\CloudNaturalLanguage;
class ClassifyTextResponse extends \Google\Collection
{
protected $collection_key = 'categories';
protected $categoriesType = ClassificationCategory::class;
protected $categoriesDataType = 'array';
/**
* @var string
*/
public $languageCode;
/**
* @var bool
*/
public $languageSupported;
/**
* @param ClassificationCategory[]
*/
public function setCategories($categories)
{
$this->categories = $categories;
}
/**
* @return ClassificationCategory[]
*/
public function getCategories()
{
return $this->categories;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param bool
*/
public function setLanguageSupported($languageSupported)
{
$this->languageSupported = $languageSupported;
}
/**
* @return bool
*/
public function getLanguageSupported()
{
return $this->languageSupported;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClassifyTextResponse::class, 'Google_Service_CloudNaturalLanguage_ClassifyTextResponse');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class Color extends \Google\Model
{
/**
* @var float
*/
public $alpha;
/**
* @var float
*/
public $blue;
/**
* @var float
*/
public $green;
/**
* @var float
*/
public $red;
/**
* @param float
*/
public function setAlpha($alpha)
{
$this->alpha = $alpha;
}
/**
* @return float
*/
public function getAlpha()
{
return $this->alpha;
}
/**
* @param float
*/
public function setBlue($blue)
{
$this->blue = $blue;
}
/**
* @return float
*/
public function getBlue()
{
return $this->blue;
}
/**
* @param float
*/
public function setGreen($green)
{
$this->green = $green;
}
/**
* @return float
*/
public function getGreen()
{
return $this->green;
}
/**
* @param float
*/
public function setRed($red)
{
$this->red = $red;
}
/**
* @return float
*/
public function getRed()
{
return $this->red;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Color::class, 'Google_Service_CloudNaturalLanguage_Color');

View File

@@ -0,0 +1,116 @@
<?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\CloudNaturalLanguage;
class CpuMetric extends \Google\Model
{
/**
* @var string
*/
public $coreNumber;
/**
* @var string
*/
public $coreSec;
/**
* @var string
*/
public $cpuType;
/**
* @var string
*/
public $machineSpec;
/**
* @var string[]
*/
public $trackingLabels;
/**
* @param string
*/
public function setCoreNumber($coreNumber)
{
$this->coreNumber = $coreNumber;
}
/**
* @return string
*/
public function getCoreNumber()
{
return $this->coreNumber;
}
/**
* @param string
*/
public function setCoreSec($coreSec)
{
$this->coreSec = $coreSec;
}
/**
* @return string
*/
public function getCoreSec()
{
return $this->coreSec;
}
/**
* @param string
*/
public function setCpuType($cpuType)
{
$this->cpuType = $cpuType;
}
/**
* @return string
*/
public function getCpuType()
{
return $this->cpuType;
}
/**
* @param string
*/
public function setMachineSpec($machineSpec)
{
$this->machineSpec = $machineSpec;
}
/**
* @return string
*/
public function getMachineSpec()
{
return $this->machineSpec;
}
/**
* @param string[]
*/
public function setTrackingLabels($trackingLabels)
{
$this->trackingLabels = $trackingLabels;
}
/**
* @return string[]
*/
public function getTrackingLabels()
{
return $this->trackingLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CpuMetric::class, 'Google_Service_CloudNaturalLanguage_CpuMetric');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class DependencyEdge extends \Google\Model
{
/**
* @var int
*/
public $headTokenIndex;
/**
* @var string
*/
public $label;
/**
* @param int
*/
public function setHeadTokenIndex($headTokenIndex)
{
$this->headTokenIndex = $headTokenIndex;
}
/**
* @return int
*/
public function getHeadTokenIndex()
{
return $this->headTokenIndex;
}
/**
* @param string
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DependencyEdge::class, 'Google_Service_CloudNaturalLanguage_DependencyEdge');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class DiskMetric extends \Google\Model
{
/**
* @var string
*/
public $diskType;
/**
* @var string
*/
public $gibSec;
/**
* @param string
*/
public function setDiskType($diskType)
{
$this->diskType = $diskType;
}
/**
* @return string
*/
public function getDiskType()
{
return $this->diskType;
}
/**
* @param string
*/
public function setGibSec($gibSec)
{
$this->gibSec = $gibSec;
}
/**
* @return string
*/
public function getGibSec()
{
return $this->gibSec;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DiskMetric::class, 'Google_Service_CloudNaturalLanguage_DiskMetric');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class Document extends \Google\Model
{
/**
* @var string
*/
public $content;
/**
* @var string
*/
public $gcsContentUri;
/**
* @var string
*/
public $languageCode;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setGcsContentUri($gcsContentUri)
{
$this->gcsContentUri = $gcsContentUri;
}
/**
* @return string
*/
public function getGcsContentUri()
{
return $this->gcsContentUri;
}
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Document::class, 'Google_Service_CloudNaturalLanguage_Document');

View File

@@ -0,0 +1,113 @@
<?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\CloudNaturalLanguage;
class Entity extends \Google\Collection
{
protected $collection_key = 'mentions';
protected $mentionsType = EntityMention::class;
protected $mentionsDataType = 'array';
/**
* @var string[]
*/
public $metadata;
/**
* @var string
*/
public $name;
protected $sentimentType = Sentiment::class;
protected $sentimentDataType = '';
/**
* @var string
*/
public $type;
/**
* @param EntityMention[]
*/
public function setMentions($mentions)
{
$this->mentions = $mentions;
}
/**
* @return EntityMention[]
*/
public function getMentions()
{
return $this->mentions;
}
/**
* @param string[]
*/
public function setMetadata($metadata)
{
$this->metadata = $metadata;
}
/**
* @return string[]
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Sentiment
*/
public function setSentiment(Sentiment $sentiment)
{
$this->sentiment = $sentiment;
}
/**
* @return Sentiment
*/
public function getSentiment()
{
return $this->sentiment;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entity::class, 'Google_Service_CloudNaturalLanguage_Entity');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class EntityMention extends \Google\Model
{
/**
* @var float
*/
public $probability;
protected $sentimentType = Sentiment::class;
protected $sentimentDataType = '';
protected $textType = TextSpan::class;
protected $textDataType = '';
/**
* @var string
*/
public $type;
/**
* @param float
*/
public function setProbability($probability)
{
$this->probability = $probability;
}
/**
* @return float
*/
public function getProbability()
{
return $this->probability;
}
/**
* @param Sentiment
*/
public function setSentiment(Sentiment $sentiment)
{
$this->sentiment = $sentiment;
}
/**
* @return Sentiment
*/
public function getSentiment()
{
return $this->sentiment;
}
/**
* @param TextSpan
*/
public function setText(TextSpan $text)
{
$this->text = $text;
}
/**
* @return TextSpan
*/
public function getText()
{
return $this->text;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityMention::class, 'Google_Service_CloudNaturalLanguage_EntityMention');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class Features extends \Google\Model
{
/**
* @var bool
*/
public $classifyText;
/**
* @var bool
*/
public $extractDocumentSentiment;
/**
* @var bool
*/
public $extractEntities;
/**
* @var bool
*/
public $moderateText;
/**
* @param bool
*/
public function setClassifyText($classifyText)
{
$this->classifyText = $classifyText;
}
/**
* @return bool
*/
public function getClassifyText()
{
return $this->classifyText;
}
/**
* @param bool
*/
public function setExtractDocumentSentiment($extractDocumentSentiment)
{
$this->extractDocumentSentiment = $extractDocumentSentiment;
}
/**
* @return bool
*/
public function getExtractDocumentSentiment()
{
return $this->extractDocumentSentiment;
}
/**
* @param bool
*/
public function setExtractEntities($extractEntities)
{
$this->extractEntities = $extractEntities;
}
/**
* @return bool
*/
public function getExtractEntities()
{
return $this->extractEntities;
}
/**
* @param bool
*/
public function setModerateText($moderateText)
{
$this->moderateText = $moderateText;
}
/**
* @return bool
*/
public function getModerateText()
{
return $this->moderateText;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Features::class, 'Google_Service_CloudNaturalLanguage_Features');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class GpuMetric extends \Google\Model
{
/**
* @var string
*/
public $gpuSec;
/**
* @var string
*/
public $gpuType;
/**
* @var string
*/
public $machineSpec;
/**
* @var string[]
*/
public $trackingLabels;
/**
* @param string
*/
public function setGpuSec($gpuSec)
{
$this->gpuSec = $gpuSec;
}
/**
* @return string
*/
public function getGpuSec()
{
return $this->gpuSec;
}
/**
* @param string
*/
public function setGpuType($gpuType)
{
$this->gpuType = $gpuType;
}
/**
* @return string
*/
public function getGpuType()
{
return $this->gpuType;
}
/**
* @param string
*/
public function setMachineSpec($machineSpec)
{
$this->machineSpec = $machineSpec;
}
/**
* @return string
*/
public function getMachineSpec()
{
return $this->machineSpec;
}
/**
* @param string[]
*/
public function setTrackingLabels($trackingLabels)
{
$this->trackingLabels = $trackingLabels;
}
/**
* @return string[]
*/
public function getTrackingLabels()
{
return $this->trackingLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GpuMetric::class, 'Google_Service_CloudNaturalLanguage_GpuMetric');

View File

@@ -0,0 +1,107 @@
<?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\CloudNaturalLanguage;
class InfraUsage extends \Google\Collection
{
protected $collection_key = 'tpuMetrics';
protected $cpuMetricsType = CpuMetric::class;
protected $cpuMetricsDataType = 'array';
protected $diskMetricsType = DiskMetric::class;
protected $diskMetricsDataType = 'array';
protected $gpuMetricsType = GpuMetric::class;
protected $gpuMetricsDataType = 'array';
protected $ramMetricsType = RamMetric::class;
protected $ramMetricsDataType = 'array';
protected $tpuMetricsType = TpuMetric::class;
protected $tpuMetricsDataType = 'array';
/**
* @param CpuMetric[]
*/
public function setCpuMetrics($cpuMetrics)
{
$this->cpuMetrics = $cpuMetrics;
}
/**
* @return CpuMetric[]
*/
public function getCpuMetrics()
{
return $this->cpuMetrics;
}
/**
* @param DiskMetric[]
*/
public function setDiskMetrics($diskMetrics)
{
$this->diskMetrics = $diskMetrics;
}
/**
* @return DiskMetric[]
*/
public function getDiskMetrics()
{
return $this->diskMetrics;
}
/**
* @param GpuMetric[]
*/
public function setGpuMetrics($gpuMetrics)
{
$this->gpuMetrics = $gpuMetrics;
}
/**
* @return GpuMetric[]
*/
public function getGpuMetrics()
{
return $this->gpuMetrics;
}
/**
* @param RamMetric[]
*/
public function setRamMetrics($ramMetrics)
{
$this->ramMetrics = $ramMetrics;
}
/**
* @return RamMetric[]
*/
public function getRamMetrics()
{
return $this->ramMetrics;
}
/**
* @param TpuMetric[]
*/
public function setTpuMetrics($tpuMetrics)
{
$this->tpuMetrics = $tpuMetrics;
}
/**
* @return TpuMetric[]
*/
public function getTpuMetrics()
{
return $this->tpuMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(InfraUsage::class, 'Google_Service_CloudNaturalLanguage_InfraUsage');

View File

@@ -0,0 +1,60 @@
<?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\CloudNaturalLanguage;
class ModerateTextRequest extends \Google\Model
{
protected $documentType = Document::class;
protected $documentDataType = '';
/**
* @var string
*/
public $modelVersion;
/**
* @param Document
*/
public function setDocument(Document $document)
{
$this->document = $document;
}
/**
* @return Document
*/
public function getDocument()
{
return $this->document;
}
/**
* @param string
*/
public function setModelVersion($modelVersion)
{
$this->modelVersion = $modelVersion;
}
/**
* @return string
*/
public function getModelVersion()
{
return $this->modelVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModerateTextRequest::class, 'Google_Service_CloudNaturalLanguage_ModerateTextRequest');

View File

@@ -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\CloudNaturalLanguage;
class ModerateTextResponse extends \Google\Collection
{
protected $collection_key = 'moderationCategories';
/**
* @var string
*/
public $languageCode;
/**
* @var bool
*/
public $languageSupported;
protected $moderationCategoriesType = ClassificationCategory::class;
protected $moderationCategoriesDataType = 'array';
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param bool
*/
public function setLanguageSupported($languageSupported)
{
$this->languageSupported = $languageSupported;
}
/**
* @return bool
*/
public function getLanguageSupported()
{
return $this->languageSupported;
}
/**
* @param ClassificationCategory[]
*/
public function setModerationCategories($moderationCategories)
{
$this->moderationCategories = $moderationCategories;
}
/**
* @return ClassificationCategory[]
*/
public function getModerationCategories()
{
return $this->moderationCategories;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ModerateTextResponse::class, 'Google_Service_CloudNaturalLanguage_ModerateTextResponse');

View File

@@ -0,0 +1,242 @@
<?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\CloudNaturalLanguage;
class PartOfSpeech extends \Google\Model
{
/**
* @var string
*/
public $aspect;
/**
* @var string
*/
public $case;
/**
* @var string
*/
public $form;
/**
* @var string
*/
public $gender;
/**
* @var string
*/
public $mood;
/**
* @var string
*/
public $number;
/**
* @var string
*/
public $person;
/**
* @var string
*/
public $proper;
/**
* @var string
*/
public $reciprocity;
/**
* @var string
*/
public $tag;
/**
* @var string
*/
public $tense;
/**
* @var string
*/
public $voice;
/**
* @param string
*/
public function setAspect($aspect)
{
$this->aspect = $aspect;
}
/**
* @return string
*/
public function getAspect()
{
return $this->aspect;
}
/**
* @param string
*/
public function setCase($case)
{
$this->case = $case;
}
/**
* @return string
*/
public function getCase()
{
return $this->case;
}
/**
* @param string
*/
public function setForm($form)
{
$this->form = $form;
}
/**
* @return string
*/
public function getForm()
{
return $this->form;
}
/**
* @param string
*/
public function setGender($gender)
{
$this->gender = $gender;
}
/**
* @return string
*/
public function getGender()
{
return $this->gender;
}
/**
* @param string
*/
public function setMood($mood)
{
$this->mood = $mood;
}
/**
* @return string
*/
public function getMood()
{
return $this->mood;
}
/**
* @param string
*/
public function setNumber($number)
{
$this->number = $number;
}
/**
* @return string
*/
public function getNumber()
{
return $this->number;
}
/**
* @param string
*/
public function setPerson($person)
{
$this->person = $person;
}
/**
* @return string
*/
public function getPerson()
{
return $this->person;
}
/**
* @param string
*/
public function setProper($proper)
{
$this->proper = $proper;
}
/**
* @return string
*/
public function getProper()
{
return $this->proper;
}
/**
* @param string
*/
public function setReciprocity($reciprocity)
{
$this->reciprocity = $reciprocity;
}
/**
* @return string
*/
public function getReciprocity()
{
return $this->reciprocity;
}
/**
* @param string
*/
public function setTag($tag)
{
$this->tag = $tag;
}
/**
* @return string
*/
public function getTag()
{
return $this->tag;
}
/**
* @param string
*/
public function setTense($tense)
{
$this->tense = $tense;
}
/**
* @return string
*/
public function getTense()
{
return $this->tense;
}
/**
* @param string
*/
public function setVoice($voice)
{
$this->voice = $voice;
}
/**
* @return string
*/
public function getVoice()
{
return $this->voice;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PartOfSpeech::class, 'Google_Service_CloudNaturalLanguage_PartOfSpeech');

View File

@@ -0,0 +1,107 @@
<?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\CloudNaturalLanguage;
class RamMetric extends \Google\Model
{
/**
* @var string
*/
public $gibSec;
/**
* @var string
*/
public $machineSpec;
public $memories;
/**
* @var string
*/
public $ramType;
/**
* @var string[]
*/
public $trackingLabels;
/**
* @param string
*/
public function setGibSec($gibSec)
{
$this->gibSec = $gibSec;
}
/**
* @return string
*/
public function getGibSec()
{
return $this->gibSec;
}
/**
* @param string
*/
public function setMachineSpec($machineSpec)
{
$this->machineSpec = $machineSpec;
}
/**
* @return string
*/
public function getMachineSpec()
{
return $this->machineSpec;
}
public function setMemories($memories)
{
$this->memories = $memories;
}
public function getMemories()
{
return $this->memories;
}
/**
* @param string
*/
public function setRamType($ramType)
{
$this->ramType = $ramType;
}
/**
* @return string
*/
public function getRamType()
{
return $this->ramType;
}
/**
* @param string[]
*/
public function setTrackingLabels($trackingLabels)
{
$this->trackingLabels = $trackingLabels;
}
/**
* @return string[]
*/
public function getTrackingLabels()
{
return $this->trackingLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RamMetric::class, 'Google_Service_CloudNaturalLanguage_RamMetric');

View File

@@ -0,0 +1,118 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage\Resource;
use Google\Service\CloudNaturalLanguage\AnalyzeEntitiesRequest;
use Google\Service\CloudNaturalLanguage\AnalyzeEntitiesResponse;
use Google\Service\CloudNaturalLanguage\AnalyzeSentimentRequest;
use Google\Service\CloudNaturalLanguage\AnalyzeSentimentResponse;
use Google\Service\CloudNaturalLanguage\AnnotateTextRequest;
use Google\Service\CloudNaturalLanguage\AnnotateTextResponse;
use Google\Service\CloudNaturalLanguage\ClassifyTextRequest;
use Google\Service\CloudNaturalLanguage\ClassifyTextResponse;
use Google\Service\CloudNaturalLanguage\ModerateTextRequest;
use Google\Service\CloudNaturalLanguage\ModerateTextResponse;
/**
* The "documents" collection of methods.
* Typical usage is:
* <code>
* $languageService = new Google\Service\CloudNaturalLanguage(...);
* $documents = $languageService->documents;
* </code>
*/
class Documents extends \Google\Service\Resource
{
/**
* Finds named entities (currently proper names and common nouns) in the text
* along with entity types, probability, mentions for each entity, and other
* properties. (documents.analyzeEntities)
*
* @param AnalyzeEntitiesRequest $postBody
* @param array $optParams Optional parameters.
* @return AnalyzeEntitiesResponse
* @throws \Google\Service\Exception
*/
public function analyzeEntities(AnalyzeEntitiesRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('analyzeEntities', [$params], AnalyzeEntitiesResponse::class);
}
/**
* Analyzes the sentiment of the provided text. (documents.analyzeSentiment)
*
* @param AnalyzeSentimentRequest $postBody
* @param array $optParams Optional parameters.
* @return AnalyzeSentimentResponse
* @throws \Google\Service\Exception
*/
public function analyzeSentiment(AnalyzeSentimentRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('analyzeSentiment', [$params], AnalyzeSentimentResponse::class);
}
/**
* A convenience method that provides all features in one call.
* (documents.annotateText)
*
* @param AnnotateTextRequest $postBody
* @param array $optParams Optional parameters.
* @return AnnotateTextResponse
* @throws \Google\Service\Exception
*/
public function annotateText(AnnotateTextRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('annotateText', [$params], AnnotateTextResponse::class);
}
/**
* Classifies a document into categories. (documents.classifyText)
*
* @param ClassifyTextRequest $postBody
* @param array $optParams Optional parameters.
* @return ClassifyTextResponse
* @throws \Google\Service\Exception
*/
public function classifyText(ClassifyTextRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('classifyText', [$params], ClassifyTextResponse::class);
}
/**
* Moderates a document for harmful and sensitive categories.
* (documents.moderateText)
*
* @param ModerateTextRequest $postBody
* @param array $optParams Optional parameters.
* @return ModerateTextResponse
* @throws \Google\Service\Exception
*/
public function moderateText(ModerateTextRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('moderateText', [$params], ModerateTextResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Documents::class, 'Google_Service_CloudNaturalLanguage_Resource_Documents');

View File

@@ -0,0 +1,58 @@
<?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\CloudNaturalLanguage;
class Sentence extends \Google\Model
{
protected $sentimentType = Sentiment::class;
protected $sentimentDataType = '';
protected $textType = TextSpan::class;
protected $textDataType = '';
/**
* @param Sentiment
*/
public function setSentiment(Sentiment $sentiment)
{
$this->sentiment = $sentiment;
}
/**
* @return Sentiment
*/
public function getSentiment()
{
return $this->sentiment;
}
/**
* @param TextSpan
*/
public function setText(TextSpan $text)
{
$this->text = $text;
}
/**
* @return TextSpan
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sentence::class, 'Google_Service_CloudNaturalLanguage_Sentence');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class Sentiment extends \Google\Model
{
/**
* @var float
*/
public $magnitude;
/**
* @var float
*/
public $score;
/**
* @param float
*/
public function setMagnitude($magnitude)
{
$this->magnitude = $magnitude;
}
/**
* @return float
*/
public function getMagnitude()
{
return $this->magnitude;
}
/**
* @param float
*/
public function setScore($score)
{
$this->score = $score;
}
/**
* @return float
*/
public function getScore()
{
return $this->score;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Sentiment::class, 'Google_Service_CloudNaturalLanguage_Sentiment');

View File

@@ -0,0 +1,81 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* @var int
*/
public $code;
/**
* @var array[]
*/
public $details;
/**
* @var string
*/
public $message;
/**
* @param int
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_CloudNaturalLanguage_Status');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class TextSpan extends \Google\Model
{
/**
* @var int
*/
public $beginOffset;
/**
* @var string
*/
public $content;
/**
* @param int
*/
public function setBeginOffset($beginOffset)
{
$this->beginOffset = $beginOffset;
}
/**
* @return int
*/
public function getBeginOffset()
{
return $this->beginOffset;
}
/**
* @param string
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return string
*/
public function getContent()
{
return $this->content;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextSpan::class, 'Google_Service_CloudNaturalLanguage_TextSpan');

View File

@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class Token extends \Google\Model
{
protected $dependencyEdgeType = DependencyEdge::class;
protected $dependencyEdgeDataType = '';
/**
* @var string
*/
public $lemma;
protected $partOfSpeechType = PartOfSpeech::class;
protected $partOfSpeechDataType = '';
protected $textType = TextSpan::class;
protected $textDataType = '';
/**
* @param DependencyEdge
*/
public function setDependencyEdge(DependencyEdge $dependencyEdge)
{
$this->dependencyEdge = $dependencyEdge;
}
/**
* @return DependencyEdge
*/
public function getDependencyEdge()
{
return $this->dependencyEdge;
}
/**
* @param string
*/
public function setLemma($lemma)
{
$this->lemma = $lemma;
}
/**
* @return string
*/
public function getLemma()
{
return $this->lemma;
}
/**
* @param PartOfSpeech
*/
public function setPartOfSpeech(PartOfSpeech $partOfSpeech)
{
$this->partOfSpeech = $partOfSpeech;
}
/**
* @return PartOfSpeech
*/
public function getPartOfSpeech()
{
return $this->partOfSpeech;
}
/**
* @param TextSpan
*/
public function setText(TextSpan $text)
{
$this->text = $text;
}
/**
* @return TextSpan
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Token::class, 'Google_Service_CloudNaturalLanguage_Token');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class TpuMetric extends \Google\Model
{
/**
* @var string
*/
public $tpuSec;
/**
* @var string
*/
public $tpuType;
/**
* @param string
*/
public function setTpuSec($tpuSec)
{
$this->tpuSec = $tpuSec;
}
/**
* @return string
*/
public function getTpuSec()
{
return $this->tpuSec;
}
/**
* @param string
*/
public function setTpuType($tpuType)
{
$this->tpuType = $tpuType;
}
/**
* @return string
*/
public function getTpuType()
{
return $this->tpuType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TpuMetric::class, 'Google_Service_CloudNaturalLanguage_TpuMetric');

View File

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

View File

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

View File

@@ -0,0 +1,58 @@
<?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\CloudNaturalLanguage;
class XPSArrayStats extends \Google\Model
{
protected $commonStatsType = XPSCommonStats::class;
protected $commonStatsDataType = '';
protected $memberStatsType = XPSDataStats::class;
protected $memberStatsDataType = '';
/**
* @param XPSCommonStats
*/
public function setCommonStats(XPSCommonStats $commonStats)
{
$this->commonStats = $commonStats;
}
/**
* @return XPSCommonStats
*/
public function getCommonStats()
{
return $this->commonStats;
}
/**
* @param XPSDataStats
*/
public function setMemberStats(XPSDataStats $memberStats)
{
$this->memberStats = $memberStats;
}
/**
* @return XPSDataStats
*/
public function getMemberStats()
{
return $this->memberStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSArrayStats::class, 'Google_Service_CloudNaturalLanguage_XPSArrayStats');

View File

@@ -0,0 +1,42 @@
<?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\CloudNaturalLanguage;
class XPSBatchPredictResponse extends \Google\Model
{
protected $exampleSetType = XPSExampleSet::class;
protected $exampleSetDataType = '';
/**
* @param XPSExampleSet
*/
public function setExampleSet(XPSExampleSet $exampleSet)
{
$this->exampleSet = $exampleSet;
}
/**
* @return XPSExampleSet
*/
public function getExampleSet()
{
return $this->exampleSet;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSBatchPredictResponse::class, 'Google_Service_CloudNaturalLanguage_XPSBatchPredictResponse');

View File

@@ -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\CloudNaturalLanguage;
class XPSBoundingBoxMetricsEntry extends \Google\Collection
{
protected $collection_key = 'confidenceMetricsEntries';
protected $confidenceMetricsEntriesType = XPSBoundingBoxMetricsEntryConfidenceMetricsEntry::class;
protected $confidenceMetricsEntriesDataType = 'array';
/**
* @var float
*/
public $iouThreshold;
/**
* @var float
*/
public $meanAveragePrecision;
/**
* @param XPSBoundingBoxMetricsEntryConfidenceMetricsEntry[]
*/
public function setConfidenceMetricsEntries($confidenceMetricsEntries)
{
$this->confidenceMetricsEntries = $confidenceMetricsEntries;
}
/**
* @return XPSBoundingBoxMetricsEntryConfidenceMetricsEntry[]
*/
public function getConfidenceMetricsEntries()
{
return $this->confidenceMetricsEntries;
}
/**
* @param float
*/
public function setIouThreshold($iouThreshold)
{
$this->iouThreshold = $iouThreshold;
}
/**
* @return float
*/
public function getIouThreshold()
{
return $this->iouThreshold;
}
/**
* @param float
*/
public function setMeanAveragePrecision($meanAveragePrecision)
{
$this->meanAveragePrecision = $meanAveragePrecision;
}
/**
* @return float
*/
public function getMeanAveragePrecision()
{
return $this->meanAveragePrecision;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSBoundingBoxMetricsEntry::class, 'Google_Service_CloudNaturalLanguage_XPSBoundingBoxMetricsEntry');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSBoundingBoxMetricsEntryConfidenceMetricsEntry extends \Google\Model
{
/**
* @var float
*/
public $confidenceThreshold;
/**
* @var float
*/
public $f1Score;
/**
* @var float
*/
public $precision;
/**
* @var float
*/
public $recall;
/**
* @param float
*/
public function setConfidenceThreshold($confidenceThreshold)
{
$this->confidenceThreshold = $confidenceThreshold;
}
/**
* @return float
*/
public function getConfidenceThreshold()
{
return $this->confidenceThreshold;
}
/**
* @param float
*/
public function setF1Score($f1Score)
{
$this->f1Score = $f1Score;
}
/**
* @return float
*/
public function getF1Score()
{
return $this->f1Score;
}
/**
* @param float
*/
public function setPrecision($precision)
{
$this->precision = $precision;
}
/**
* @return float
*/
public function getPrecision()
{
return $this->precision;
}
/**
* @param float
*/
public function setRecall($recall)
{
$this->recall = $recall;
}
/**
* @return float
*/
public function getRecall()
{
return $this->recall;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSBoundingBoxMetricsEntryConfidenceMetricsEntry::class, 'Google_Service_CloudNaturalLanguage_XPSBoundingBoxMetricsEntryConfidenceMetricsEntry');

View File

@@ -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\CloudNaturalLanguage;
class XPSCategoryStats extends \Google\Collection
{
protected $collection_key = 'topCategoryStats';
protected $commonStatsType = XPSCommonStats::class;
protected $commonStatsDataType = '';
protected $topCategoryStatsType = XPSCategoryStatsSingleCategoryStats::class;
protected $topCategoryStatsDataType = 'array';
/**
* @param XPSCommonStats
*/
public function setCommonStats(XPSCommonStats $commonStats)
{
$this->commonStats = $commonStats;
}
/**
* @return XPSCommonStats
*/
public function getCommonStats()
{
return $this->commonStats;
}
/**
* @param XPSCategoryStatsSingleCategoryStats[]
*/
public function setTopCategoryStats($topCategoryStats)
{
$this->topCategoryStats = $topCategoryStats;
}
/**
* @return XPSCategoryStatsSingleCategoryStats[]
*/
public function getTopCategoryStats()
{
return $this->topCategoryStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSCategoryStats::class, 'Google_Service_CloudNaturalLanguage_XPSCategoryStats');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSCategoryStatsSingleCategoryStats extends \Google\Model
{
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
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(XPSCategoryStatsSingleCategoryStats::class, 'Google_Service_CloudNaturalLanguage_XPSCategoryStatsSingleCategoryStats');

View File

@@ -0,0 +1,149 @@
<?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\CloudNaturalLanguage;
class XPSClassificationEvaluationMetrics extends \Google\Collection
{
protected $collection_key = 'confidenceMetricsEntries';
/**
* @var float
*/
public $auPrc;
/**
* @var float
*/
public $auRoc;
/**
* @var float
*/
public $baseAuPrc;
protected $confidenceMetricsEntriesType = XPSConfidenceMetricsEntry::class;
protected $confidenceMetricsEntriesDataType = 'array';
protected $confusionMatrixType = XPSConfusionMatrix::class;
protected $confusionMatrixDataType = '';
/**
* @var int
*/
public $evaluatedExamplesCount;
/**
* @var float
*/
public $logLoss;
/**
* @param float
*/
public function setAuPrc($auPrc)
{
$this->auPrc = $auPrc;
}
/**
* @return float
*/
public function getAuPrc()
{
return $this->auPrc;
}
/**
* @param float
*/
public function setAuRoc($auRoc)
{
$this->auRoc = $auRoc;
}
/**
* @return float
*/
public function getAuRoc()
{
return $this->auRoc;
}
/**
* @param float
*/
public function setBaseAuPrc($baseAuPrc)
{
$this->baseAuPrc = $baseAuPrc;
}
/**
* @return float
*/
public function getBaseAuPrc()
{
return $this->baseAuPrc;
}
/**
* @param XPSConfidenceMetricsEntry[]
*/
public function setConfidenceMetricsEntries($confidenceMetricsEntries)
{
$this->confidenceMetricsEntries = $confidenceMetricsEntries;
}
/**
* @return XPSConfidenceMetricsEntry[]
*/
public function getConfidenceMetricsEntries()
{
return $this->confidenceMetricsEntries;
}
/**
* @param XPSConfusionMatrix
*/
public function setConfusionMatrix(XPSConfusionMatrix $confusionMatrix)
{
$this->confusionMatrix = $confusionMatrix;
}
/**
* @return XPSConfusionMatrix
*/
public function getConfusionMatrix()
{
return $this->confusionMatrix;
}
/**
* @param int
*/
public function setEvaluatedExamplesCount($evaluatedExamplesCount)
{
$this->evaluatedExamplesCount = $evaluatedExamplesCount;
}
/**
* @return int
*/
public function getEvaluatedExamplesCount()
{
return $this->evaluatedExamplesCount;
}
/**
* @param float
*/
public function setLogLoss($logLoss)
{
$this->logLoss = $logLoss;
}
/**
* @return float
*/
public function getLogLoss()
{
return $this->logLoss;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSClassificationEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSClassificationEvaluationMetrics');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSColorMap extends \Google\Model
{
/**
* @var string
*/
public $annotationSpecIdToken;
protected $colorType = Color::class;
protected $colorDataType = '';
/**
* @var string
*/
public $displayName;
protected $intColorType = XPSColorMapIntColor::class;
protected $intColorDataType = '';
/**
* @param string
*/
public function setAnnotationSpecIdToken($annotationSpecIdToken)
{
$this->annotationSpecIdToken = $annotationSpecIdToken;
}
/**
* @return string
*/
public function getAnnotationSpecIdToken()
{
return $this->annotationSpecIdToken;
}
/**
* @param Color
*/
public function setColor(Color $color)
{
$this->color = $color;
}
/**
* @return Color
*/
public function getColor()
{
return $this->color;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param XPSColorMapIntColor
*/
public function setIntColor(XPSColorMapIntColor $intColor)
{
$this->intColor = $intColor;
}
/**
* @return XPSColorMapIntColor
*/
public function getIntColor()
{
return $this->intColor;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSColorMap::class, 'Google_Service_CloudNaturalLanguage_XPSColorMap');

View File

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

View File

@@ -0,0 +1,127 @@
<?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\CloudNaturalLanguage;
class XPSColumnSpec extends \Google\Collection
{
protected $collection_key = 'topCorrelatedColumns';
/**
* @var int
*/
public $columnId;
protected $dataStatsType = XPSDataStats::class;
protected $dataStatsDataType = '';
protected $dataTypeType = XPSDataType::class;
protected $dataTypeDataType = '';
/**
* @var string
*/
public $displayName;
protected $forecastingMetadataType = XPSColumnSpecForecastingMetadata::class;
protected $forecastingMetadataDataType = '';
protected $topCorrelatedColumnsType = XPSColumnSpecCorrelatedColumn::class;
protected $topCorrelatedColumnsDataType = 'array';
/**
* @param int
*/
public function setColumnId($columnId)
{
$this->columnId = $columnId;
}
/**
* @return int
*/
public function getColumnId()
{
return $this->columnId;
}
/**
* @param XPSDataStats
*/
public function setDataStats(XPSDataStats $dataStats)
{
$this->dataStats = $dataStats;
}
/**
* @return XPSDataStats
*/
public function getDataStats()
{
return $this->dataStats;
}
/**
* @param XPSDataType
*/
public function setDataType(XPSDataType $dataType)
{
$this->dataType = $dataType;
}
/**
* @return XPSDataType
*/
public function getDataType()
{
return $this->dataType;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param XPSColumnSpecForecastingMetadata
*/
public function setForecastingMetadata(XPSColumnSpecForecastingMetadata $forecastingMetadata)
{
$this->forecastingMetadata = $forecastingMetadata;
}
/**
* @return XPSColumnSpecForecastingMetadata
*/
public function getForecastingMetadata()
{
return $this->forecastingMetadata;
}
/**
* @param XPSColumnSpecCorrelatedColumn[]
*/
public function setTopCorrelatedColumns($topCorrelatedColumns)
{
$this->topCorrelatedColumns = $topCorrelatedColumns;
}
/**
* @return XPSColumnSpecCorrelatedColumn[]
*/
public function getTopCorrelatedColumns()
{
return $this->topCorrelatedColumns;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSColumnSpec::class, 'Google_Service_CloudNaturalLanguage_XPSColumnSpec');

View File

@@ -0,0 +1,60 @@
<?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\CloudNaturalLanguage;
class XPSColumnSpecCorrelatedColumn extends \Google\Model
{
/**
* @var int
*/
public $columnId;
protected $correlationStatsType = XPSCorrelationStats::class;
protected $correlationStatsDataType = '';
/**
* @param int
*/
public function setColumnId($columnId)
{
$this->columnId = $columnId;
}
/**
* @return int
*/
public function getColumnId()
{
return $this->columnId;
}
/**
* @param XPSCorrelationStats
*/
public function setCorrelationStats(XPSCorrelationStats $correlationStats)
{
$this->correlationStats = $correlationStats;
}
/**
* @return XPSCorrelationStats
*/
public function getCorrelationStats()
{
return $this->correlationStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSColumnSpecCorrelatedColumn::class, 'Google_Service_CloudNaturalLanguage_XPSColumnSpecCorrelatedColumn');

View File

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

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSCommonStats extends \Google\Model
{
/**
* @var string
*/
public $distinctValueCount;
/**
* @var string
*/
public $nullValueCount;
/**
* @var string
*/
public $validValueCount;
/**
* @param string
*/
public function setDistinctValueCount($distinctValueCount)
{
$this->distinctValueCount = $distinctValueCount;
}
/**
* @return string
*/
public function getDistinctValueCount()
{
return $this->distinctValueCount;
}
/**
* @param string
*/
public function setNullValueCount($nullValueCount)
{
$this->nullValueCount = $nullValueCount;
}
/**
* @return string
*/
public function getNullValueCount()
{
return $this->nullValueCount;
}
/**
* @param string
*/
public function setValidValueCount($validValueCount)
{
$this->validValueCount = $validValueCount;
}
/**
* @return string
*/
public function getValidValueCount()
{
return $this->validValueCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSCommonStats::class, 'Google_Service_CloudNaturalLanguage_XPSCommonStats');

View File

@@ -0,0 +1,278 @@
<?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\CloudNaturalLanguage;
class XPSConfidenceMetricsEntry extends \Google\Model
{
/**
* @var float
*/
public $confidenceThreshold;
/**
* @var float
*/
public $f1Score;
/**
* @var float
*/
public $f1ScoreAt1;
/**
* @var string
*/
public $falseNegativeCount;
/**
* @var string
*/
public $falsePositiveCount;
/**
* @var float
*/
public $falsePositiveRate;
/**
* @var float
*/
public $falsePositiveRateAt1;
/**
* @var int
*/
public $positionThreshold;
/**
* @var float
*/
public $precision;
/**
* @var float
*/
public $precisionAt1;
/**
* @var float
*/
public $recall;
/**
* @var float
*/
public $recallAt1;
/**
* @var string
*/
public $trueNegativeCount;
/**
* @var string
*/
public $truePositiveCount;
/**
* @param float
*/
public function setConfidenceThreshold($confidenceThreshold)
{
$this->confidenceThreshold = $confidenceThreshold;
}
/**
* @return float
*/
public function getConfidenceThreshold()
{
return $this->confidenceThreshold;
}
/**
* @param float
*/
public function setF1Score($f1Score)
{
$this->f1Score = $f1Score;
}
/**
* @return float
*/
public function getF1Score()
{
return $this->f1Score;
}
/**
* @param float
*/
public function setF1ScoreAt1($f1ScoreAt1)
{
$this->f1ScoreAt1 = $f1ScoreAt1;
}
/**
* @return float
*/
public function getF1ScoreAt1()
{
return $this->f1ScoreAt1;
}
/**
* @param string
*/
public function setFalseNegativeCount($falseNegativeCount)
{
$this->falseNegativeCount = $falseNegativeCount;
}
/**
* @return string
*/
public function getFalseNegativeCount()
{
return $this->falseNegativeCount;
}
/**
* @param string
*/
public function setFalsePositiveCount($falsePositiveCount)
{
$this->falsePositiveCount = $falsePositiveCount;
}
/**
* @return string
*/
public function getFalsePositiveCount()
{
return $this->falsePositiveCount;
}
/**
* @param float
*/
public function setFalsePositiveRate($falsePositiveRate)
{
$this->falsePositiveRate = $falsePositiveRate;
}
/**
* @return float
*/
public function getFalsePositiveRate()
{
return $this->falsePositiveRate;
}
/**
* @param float
*/
public function setFalsePositiveRateAt1($falsePositiveRateAt1)
{
$this->falsePositiveRateAt1 = $falsePositiveRateAt1;
}
/**
* @return float
*/
public function getFalsePositiveRateAt1()
{
return $this->falsePositiveRateAt1;
}
/**
* @param int
*/
public function setPositionThreshold($positionThreshold)
{
$this->positionThreshold = $positionThreshold;
}
/**
* @return int
*/
public function getPositionThreshold()
{
return $this->positionThreshold;
}
/**
* @param float
*/
public function setPrecision($precision)
{
$this->precision = $precision;
}
/**
* @return float
*/
public function getPrecision()
{
return $this->precision;
}
/**
* @param float
*/
public function setPrecisionAt1($precisionAt1)
{
$this->precisionAt1 = $precisionAt1;
}
/**
* @return float
*/
public function getPrecisionAt1()
{
return $this->precisionAt1;
}
/**
* @param float
*/
public function setRecall($recall)
{
$this->recall = $recall;
}
/**
* @return float
*/
public function getRecall()
{
return $this->recall;
}
/**
* @param float
*/
public function setRecallAt1($recallAt1)
{
$this->recallAt1 = $recallAt1;
}
/**
* @return float
*/
public function getRecallAt1()
{
return $this->recallAt1;
}
/**
* @param string
*/
public function setTrueNegativeCount($trueNegativeCount)
{
$this->trueNegativeCount = $trueNegativeCount;
}
/**
* @return string
*/
public function getTrueNegativeCount()
{
return $this->trueNegativeCount;
}
/**
* @param string
*/
public function setTruePositiveCount($truePositiveCount)
{
$this->truePositiveCount = $truePositiveCount;
}
/**
* @return string
*/
public function getTruePositiveCount()
{
return $this->truePositiveCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSConfidenceMetricsEntry::class, 'Google_Service_CloudNaturalLanguage_XPSConfidenceMetricsEntry');

View File

@@ -0,0 +1,97 @@
<?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\CloudNaturalLanguage;
class XPSConfusionMatrix extends \Google\Collection
{
protected $collection_key = 'sentimentLabel';
/**
* @var string[]
*/
public $annotationSpecIdToken;
/**
* @var int[]
*/
public $category;
protected $rowType = XPSConfusionMatrixRow::class;
protected $rowDataType = 'array';
/**
* @var int[]
*/
public $sentimentLabel;
/**
* @param string[]
*/
public function setAnnotationSpecIdToken($annotationSpecIdToken)
{
$this->annotationSpecIdToken = $annotationSpecIdToken;
}
/**
* @return string[]
*/
public function getAnnotationSpecIdToken()
{
return $this->annotationSpecIdToken;
}
/**
* @param int[]
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return int[]
*/
public function getCategory()
{
return $this->category;
}
/**
* @param XPSConfusionMatrixRow[]
*/
public function setRow($row)
{
$this->row = $row;
}
/**
* @return XPSConfusionMatrixRow[]
*/
public function getRow()
{
return $this->row;
}
/**
* @param int[]
*/
public function setSentimentLabel($sentimentLabel)
{
$this->sentimentLabel = $sentimentLabel;
}
/**
* @return int[]
*/
public function getSentimentLabel()
{
return $this->sentimentLabel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSConfusionMatrix::class, 'Google_Service_CloudNaturalLanguage_XPSConfusionMatrix');

View File

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

View File

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

View File

@@ -0,0 +1,35 @@
<?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\CloudNaturalLanguage;
class XPSCorrelationStats extends \Google\Model
{
public $cramersV;
public function setCramersV($cramersV)
{
$this->cramersV = $cramersV;
}
public function getCramersV()
{
return $this->cramersV;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSCorrelationStats::class, 'Google_Service_CloudNaturalLanguage_XPSCorrelationStats');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSDataErrors extends \Google\Model
{
/**
* @var int
*/
public $count;
/**
* @var string
*/
public $errorType;
/**
* @param int
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
public function setErrorType($errorType)
{
$this->errorType = $errorType;
}
/**
* @return string
*/
public function getErrorType()
{
return $this->errorType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSDataErrors::class, 'Google_Service_CloudNaturalLanguage_XPSDataErrors');

View File

@@ -0,0 +1,176 @@
<?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\CloudNaturalLanguage;
class XPSDataStats extends \Google\Model
{
protected $arrayStatsType = XPSArrayStats::class;
protected $arrayStatsDataType = '';
protected $categoryStatsType = XPSCategoryStats::class;
protected $categoryStatsDataType = '';
/**
* @var string
*/
public $distinctValueCount;
protected $float64StatsType = XPSFloat64Stats::class;
protected $float64StatsDataType = '';
/**
* @var string
*/
public $nullValueCount;
protected $stringStatsType = XPSStringStats::class;
protected $stringStatsDataType = '';
protected $structStatsType = XPSStructStats::class;
protected $structStatsDataType = '';
protected $timestampStatsType = XPSTimestampStats::class;
protected $timestampStatsDataType = '';
/**
* @var string
*/
public $validValueCount;
/**
* @param XPSArrayStats
*/
public function setArrayStats(XPSArrayStats $arrayStats)
{
$this->arrayStats = $arrayStats;
}
/**
* @return XPSArrayStats
*/
public function getArrayStats()
{
return $this->arrayStats;
}
/**
* @param XPSCategoryStats
*/
public function setCategoryStats(XPSCategoryStats $categoryStats)
{
$this->categoryStats = $categoryStats;
}
/**
* @return XPSCategoryStats
*/
public function getCategoryStats()
{
return $this->categoryStats;
}
/**
* @param string
*/
public function setDistinctValueCount($distinctValueCount)
{
$this->distinctValueCount = $distinctValueCount;
}
/**
* @return string
*/
public function getDistinctValueCount()
{
return $this->distinctValueCount;
}
/**
* @param XPSFloat64Stats
*/
public function setFloat64Stats(XPSFloat64Stats $float64Stats)
{
$this->float64Stats = $float64Stats;
}
/**
* @return XPSFloat64Stats
*/
public function getFloat64Stats()
{
return $this->float64Stats;
}
/**
* @param string
*/
public function setNullValueCount($nullValueCount)
{
$this->nullValueCount = $nullValueCount;
}
/**
* @return string
*/
public function getNullValueCount()
{
return $this->nullValueCount;
}
/**
* @param XPSStringStats
*/
public function setStringStats(XPSStringStats $stringStats)
{
$this->stringStats = $stringStats;
}
/**
* @return XPSStringStats
*/
public function getStringStats()
{
return $this->stringStats;
}
/**
* @param XPSStructStats
*/
public function setStructStats(XPSStructStats $structStats)
{
$this->structStats = $structStats;
}
/**
* @return XPSStructStats
*/
public function getStructStats()
{
return $this->structStats;
}
/**
* @param XPSTimestampStats
*/
public function setTimestampStats(XPSTimestampStats $timestampStats)
{
$this->timestampStats = $timestampStats;
}
/**
* @return XPSTimestampStats
*/
public function getTimestampStats()
{
return $this->timestampStats;
}
/**
* @param string
*/
public function setValidValueCount($validValueCount)
{
$this->validValueCount = $validValueCount;
}
/**
* @return string
*/
public function getValidValueCount()
{
return $this->validValueCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSDataStats::class, 'Google_Service_CloudNaturalLanguage_XPSDataStats');

View File

@@ -0,0 +1,129 @@
<?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\CloudNaturalLanguage;
class XPSDataType extends \Google\Collection
{
protected $collection_key = 'compatibleDataTypes';
protected $compatibleDataTypesType = XPSDataType::class;
protected $compatibleDataTypesDataType = 'array';
protected $listElementTypeType = XPSDataType::class;
protected $listElementTypeDataType = '';
/**
* @var bool
*/
public $nullable;
protected $structTypeType = XPSStructType::class;
protected $structTypeDataType = '';
/**
* @var string
*/
public $timeFormat;
/**
* @var string
*/
public $typeCode;
/**
* @param XPSDataType[]
*/
public function setCompatibleDataTypes($compatibleDataTypes)
{
$this->compatibleDataTypes = $compatibleDataTypes;
}
/**
* @return XPSDataType[]
*/
public function getCompatibleDataTypes()
{
return $this->compatibleDataTypes;
}
/**
* @param XPSDataType
*/
public function setListElementType(XPSDataType $listElementType)
{
$this->listElementType = $listElementType;
}
/**
* @return XPSDataType
*/
public function getListElementType()
{
return $this->listElementType;
}
/**
* @param bool
*/
public function setNullable($nullable)
{
$this->nullable = $nullable;
}
/**
* @return bool
*/
public function getNullable()
{
return $this->nullable;
}
/**
* @param XPSStructType
*/
public function setStructType(XPSStructType $structType)
{
$this->structType = $structType;
}
/**
* @return XPSStructType
*/
public function getStructType()
{
return $this->structType;
}
/**
* @param string
*/
public function setTimeFormat($timeFormat)
{
$this->timeFormat = $timeFormat;
}
/**
* @return string
*/
public function getTimeFormat()
{
return $this->timeFormat;
}
/**
* @param string
*/
public function setTypeCode($typeCode)
{
$this->typeCode = $typeCode;
}
/**
* @return string
*/
public function getTypeCode()
{
return $this->typeCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSDataType::class, 'Google_Service_CloudNaturalLanguage_XPSDataType');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSDockerFormat extends \Google\Model
{
/**
* @var string
*/
public $cpuArchitecture;
/**
* @var string
*/
public $gpuArchitecture;
/**
* @param string
*/
public function setCpuArchitecture($cpuArchitecture)
{
$this->cpuArchitecture = $cpuArchitecture;
}
/**
* @return string
*/
public function getCpuArchitecture()
{
return $this->cpuArchitecture;
}
/**
* @param string
*/
public function setGpuArchitecture($gpuArchitecture)
{
$this->gpuArchitecture = $gpuArchitecture;
}
/**
* @return string
*/
public function getGpuArchitecture()
{
return $this->gpuArchitecture;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSDockerFormat::class, 'Google_Service_CloudNaturalLanguage_XPSDockerFormat');

View File

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

View File

@@ -0,0 +1,306 @@
<?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\CloudNaturalLanguage;
class XPSEvaluationMetrics extends \Google\Model
{
/**
* @var string
*/
public $annotationSpecIdToken;
/**
* @var int
*/
public $category;
/**
* @var int
*/
public $evaluatedExampleCount;
protected $imageClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
protected $imageClassificationEvalMetricsDataType = '';
protected $imageObjectDetectionEvalMetricsType = XPSImageObjectDetectionEvaluationMetrics::class;
protected $imageObjectDetectionEvalMetricsDataType = '';
protected $imageSegmentationEvalMetricsType = XPSImageSegmentationEvaluationMetrics::class;
protected $imageSegmentationEvalMetricsDataType = '';
/**
* @var string
*/
public $label;
protected $regressionEvalMetricsType = XPSRegressionEvaluationMetrics::class;
protected $regressionEvalMetricsDataType = '';
protected $tablesClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
protected $tablesClassificationEvalMetricsDataType = '';
protected $tablesEvalMetricsType = XPSTablesEvaluationMetrics::class;
protected $tablesEvalMetricsDataType = '';
protected $textClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
protected $textClassificationEvalMetricsDataType = '';
protected $textExtractionEvalMetricsType = XPSTextExtractionEvaluationMetrics::class;
protected $textExtractionEvalMetricsDataType = '';
protected $textSentimentEvalMetricsType = XPSTextSentimentEvaluationMetrics::class;
protected $textSentimentEvalMetricsDataType = '';
protected $translationEvalMetricsType = XPSTranslationEvaluationMetrics::class;
protected $translationEvalMetricsDataType = '';
protected $videoActionRecognitionEvalMetricsType = XPSVideoActionRecognitionEvaluationMetrics::class;
protected $videoActionRecognitionEvalMetricsDataType = '';
protected $videoClassificationEvalMetricsType = XPSClassificationEvaluationMetrics::class;
protected $videoClassificationEvalMetricsDataType = '';
protected $videoObjectTrackingEvalMetricsType = XPSVideoObjectTrackingEvaluationMetrics::class;
protected $videoObjectTrackingEvalMetricsDataType = '';
/**
* @param string
*/
public function setAnnotationSpecIdToken($annotationSpecIdToken)
{
$this->annotationSpecIdToken = $annotationSpecIdToken;
}
/**
* @return string
*/
public function getAnnotationSpecIdToken()
{
return $this->annotationSpecIdToken;
}
/**
* @param int
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return int
*/
public function getCategory()
{
return $this->category;
}
/**
* @param int
*/
public function setEvaluatedExampleCount($evaluatedExampleCount)
{
$this->evaluatedExampleCount = $evaluatedExampleCount;
}
/**
* @return int
*/
public function getEvaluatedExampleCount()
{
return $this->evaluatedExampleCount;
}
/**
* @param XPSClassificationEvaluationMetrics
*/
public function setImageClassificationEvalMetrics(XPSClassificationEvaluationMetrics $imageClassificationEvalMetrics)
{
$this->imageClassificationEvalMetrics = $imageClassificationEvalMetrics;
}
/**
* @return XPSClassificationEvaluationMetrics
*/
public function getImageClassificationEvalMetrics()
{
return $this->imageClassificationEvalMetrics;
}
/**
* @param XPSImageObjectDetectionEvaluationMetrics
*/
public function setImageObjectDetectionEvalMetrics(XPSImageObjectDetectionEvaluationMetrics $imageObjectDetectionEvalMetrics)
{
$this->imageObjectDetectionEvalMetrics = $imageObjectDetectionEvalMetrics;
}
/**
* @return XPSImageObjectDetectionEvaluationMetrics
*/
public function getImageObjectDetectionEvalMetrics()
{
return $this->imageObjectDetectionEvalMetrics;
}
/**
* @param XPSImageSegmentationEvaluationMetrics
*/
public function setImageSegmentationEvalMetrics(XPSImageSegmentationEvaluationMetrics $imageSegmentationEvalMetrics)
{
$this->imageSegmentationEvalMetrics = $imageSegmentationEvalMetrics;
}
/**
* @return XPSImageSegmentationEvaluationMetrics
*/
public function getImageSegmentationEvalMetrics()
{
return $this->imageSegmentationEvalMetrics;
}
/**
* @param string
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* @param XPSRegressionEvaluationMetrics
*/
public function setRegressionEvalMetrics(XPSRegressionEvaluationMetrics $regressionEvalMetrics)
{
$this->regressionEvalMetrics = $regressionEvalMetrics;
}
/**
* @return XPSRegressionEvaluationMetrics
*/
public function getRegressionEvalMetrics()
{
return $this->regressionEvalMetrics;
}
/**
* @param XPSClassificationEvaluationMetrics
*/
public function setTablesClassificationEvalMetrics(XPSClassificationEvaluationMetrics $tablesClassificationEvalMetrics)
{
$this->tablesClassificationEvalMetrics = $tablesClassificationEvalMetrics;
}
/**
* @return XPSClassificationEvaluationMetrics
*/
public function getTablesClassificationEvalMetrics()
{
return $this->tablesClassificationEvalMetrics;
}
/**
* @param XPSTablesEvaluationMetrics
*/
public function setTablesEvalMetrics(XPSTablesEvaluationMetrics $tablesEvalMetrics)
{
$this->tablesEvalMetrics = $tablesEvalMetrics;
}
/**
* @return XPSTablesEvaluationMetrics
*/
public function getTablesEvalMetrics()
{
return $this->tablesEvalMetrics;
}
/**
* @param XPSClassificationEvaluationMetrics
*/
public function setTextClassificationEvalMetrics(XPSClassificationEvaluationMetrics $textClassificationEvalMetrics)
{
$this->textClassificationEvalMetrics = $textClassificationEvalMetrics;
}
/**
* @return XPSClassificationEvaluationMetrics
*/
public function getTextClassificationEvalMetrics()
{
return $this->textClassificationEvalMetrics;
}
/**
* @param XPSTextExtractionEvaluationMetrics
*/
public function setTextExtractionEvalMetrics(XPSTextExtractionEvaluationMetrics $textExtractionEvalMetrics)
{
$this->textExtractionEvalMetrics = $textExtractionEvalMetrics;
}
/**
* @return XPSTextExtractionEvaluationMetrics
*/
public function getTextExtractionEvalMetrics()
{
return $this->textExtractionEvalMetrics;
}
/**
* @param XPSTextSentimentEvaluationMetrics
*/
public function setTextSentimentEvalMetrics(XPSTextSentimentEvaluationMetrics $textSentimentEvalMetrics)
{
$this->textSentimentEvalMetrics = $textSentimentEvalMetrics;
}
/**
* @return XPSTextSentimentEvaluationMetrics
*/
public function getTextSentimentEvalMetrics()
{
return $this->textSentimentEvalMetrics;
}
/**
* @param XPSTranslationEvaluationMetrics
*/
public function setTranslationEvalMetrics(XPSTranslationEvaluationMetrics $translationEvalMetrics)
{
$this->translationEvalMetrics = $translationEvalMetrics;
}
/**
* @return XPSTranslationEvaluationMetrics
*/
public function getTranslationEvalMetrics()
{
return $this->translationEvalMetrics;
}
/**
* @param XPSVideoActionRecognitionEvaluationMetrics
*/
public function setVideoActionRecognitionEvalMetrics(XPSVideoActionRecognitionEvaluationMetrics $videoActionRecognitionEvalMetrics)
{
$this->videoActionRecognitionEvalMetrics = $videoActionRecognitionEvalMetrics;
}
/**
* @return XPSVideoActionRecognitionEvaluationMetrics
*/
public function getVideoActionRecognitionEvalMetrics()
{
return $this->videoActionRecognitionEvalMetrics;
}
/**
* @param XPSClassificationEvaluationMetrics
*/
public function setVideoClassificationEvalMetrics(XPSClassificationEvaluationMetrics $videoClassificationEvalMetrics)
{
$this->videoClassificationEvalMetrics = $videoClassificationEvalMetrics;
}
/**
* @return XPSClassificationEvaluationMetrics
*/
public function getVideoClassificationEvalMetrics()
{
return $this->videoClassificationEvalMetrics;
}
/**
* @param XPSVideoObjectTrackingEvaluationMetrics
*/
public function setVideoObjectTrackingEvalMetrics(XPSVideoObjectTrackingEvaluationMetrics $videoObjectTrackingEvalMetrics)
{
$this->videoObjectTrackingEvalMetrics = $videoObjectTrackingEvalMetrics;
}
/**
* @return XPSVideoObjectTrackingEvaluationMetrics
*/
public function getVideoObjectTrackingEvalMetrics()
{
return $this->videoObjectTrackingEvalMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSEvaluationMetrics');

View File

@@ -0,0 +1,77 @@
<?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\CloudNaturalLanguage;
class XPSEvaluationMetricsSet extends \Google\Collection
{
protected $collection_key = 'evaluationMetrics';
protected $evaluationMetricsType = XPSEvaluationMetrics::class;
protected $evaluationMetricsDataType = 'array';
protected $fileSpecType = XPSFileSpec::class;
protected $fileSpecDataType = '';
/**
* @var string
*/
public $numEvaluationMetrics;
/**
* @param XPSEvaluationMetrics[]
*/
public function setEvaluationMetrics($evaluationMetrics)
{
$this->evaluationMetrics = $evaluationMetrics;
}
/**
* @return XPSEvaluationMetrics[]
*/
public function getEvaluationMetrics()
{
return $this->evaluationMetrics;
}
/**
* @param XPSFileSpec
*/
public function setFileSpec(XPSFileSpec $fileSpec)
{
$this->fileSpec = $fileSpec;
}
/**
* @return XPSFileSpec
*/
public function getFileSpec()
{
return $this->fileSpec;
}
/**
* @param string
*/
public function setNumEvaluationMetrics($numEvaluationMetrics)
{
$this->numEvaluationMetrics = $numEvaluationMetrics;
}
/**
* @return string
*/
public function getNumEvaluationMetrics()
{
return $this->numEvaluationMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSEvaluationMetricsSet::class, 'Google_Service_CloudNaturalLanguage_XPSEvaluationMetricsSet');

View File

@@ -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\CloudNaturalLanguage;
class XPSExampleSet extends \Google\Model
{
protected $fileSpecType = XPSFileSpec::class;
protected $fileSpecDataType = '';
/**
* @var string
*/
public $fingerprint;
/**
* @var string
*/
public $numExamples;
/**
* @var string
*/
public $numInputSources;
/**
* @param XPSFileSpec
*/
public function setFileSpec(XPSFileSpec $fileSpec)
{
$this->fileSpec = $fileSpec;
}
/**
* @return XPSFileSpec
*/
public function getFileSpec()
{
return $this->fileSpec;
}
/**
* @param string
*/
public function setFingerprint($fingerprint)
{
$this->fingerprint = $fingerprint;
}
/**
* @return string
*/
public function getFingerprint()
{
return $this->fingerprint;
}
/**
* @param string
*/
public function setNumExamples($numExamples)
{
$this->numExamples = $numExamples;
}
/**
* @return string
*/
public function getNumExamples()
{
return $this->numExamples;
}
/**
* @param string
*/
public function setNumInputSources($numInputSources)
{
$this->numInputSources = $numInputSources;
}
/**
* @return string
*/
public function getNumInputSources()
{
return $this->numInputSources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSExampleSet::class, 'Google_Service_CloudNaturalLanguage_XPSExampleSet');

View File

@@ -0,0 +1,176 @@
<?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\CloudNaturalLanguage;
class XPSExportModelOutputConfig extends \Google\Model
{
protected $coreMlFormatType = XPSCoreMlFormat::class;
protected $coreMlFormatDataType = '';
protected $dockerFormatType = XPSDockerFormat::class;
protected $dockerFormatDataType = '';
protected $edgeTpuTfLiteFormatType = XPSEdgeTpuTfLiteFormat::class;
protected $edgeTpuTfLiteFormatDataType = '';
/**
* @var bool
*/
public $exportFirebaseAuxiliaryInfo;
/**
* @var string
*/
public $outputGcrUri;
/**
* @var string
*/
public $outputGcsUri;
protected $tfJsFormatType = XPSTfJsFormat::class;
protected $tfJsFormatDataType = '';
protected $tfLiteFormatType = XPSTfLiteFormat::class;
protected $tfLiteFormatDataType = '';
protected $tfSavedModelFormatType = XPSTfSavedModelFormat::class;
protected $tfSavedModelFormatDataType = '';
/**
* @param XPSCoreMlFormat
*/
public function setCoreMlFormat(XPSCoreMlFormat $coreMlFormat)
{
$this->coreMlFormat = $coreMlFormat;
}
/**
* @return XPSCoreMlFormat
*/
public function getCoreMlFormat()
{
return $this->coreMlFormat;
}
/**
* @param XPSDockerFormat
*/
public function setDockerFormat(XPSDockerFormat $dockerFormat)
{
$this->dockerFormat = $dockerFormat;
}
/**
* @return XPSDockerFormat
*/
public function getDockerFormat()
{
return $this->dockerFormat;
}
/**
* @param XPSEdgeTpuTfLiteFormat
*/
public function setEdgeTpuTfLiteFormat(XPSEdgeTpuTfLiteFormat $edgeTpuTfLiteFormat)
{
$this->edgeTpuTfLiteFormat = $edgeTpuTfLiteFormat;
}
/**
* @return XPSEdgeTpuTfLiteFormat
*/
public function getEdgeTpuTfLiteFormat()
{
return $this->edgeTpuTfLiteFormat;
}
/**
* @param bool
*/
public function setExportFirebaseAuxiliaryInfo($exportFirebaseAuxiliaryInfo)
{
$this->exportFirebaseAuxiliaryInfo = $exportFirebaseAuxiliaryInfo;
}
/**
* @return bool
*/
public function getExportFirebaseAuxiliaryInfo()
{
return $this->exportFirebaseAuxiliaryInfo;
}
/**
* @param string
*/
public function setOutputGcrUri($outputGcrUri)
{
$this->outputGcrUri = $outputGcrUri;
}
/**
* @return string
*/
public function getOutputGcrUri()
{
return $this->outputGcrUri;
}
/**
* @param string
*/
public function setOutputGcsUri($outputGcsUri)
{
$this->outputGcsUri = $outputGcsUri;
}
/**
* @return string
*/
public function getOutputGcsUri()
{
return $this->outputGcsUri;
}
/**
* @param XPSTfJsFormat
*/
public function setTfJsFormat(XPSTfJsFormat $tfJsFormat)
{
$this->tfJsFormat = $tfJsFormat;
}
/**
* @return XPSTfJsFormat
*/
public function getTfJsFormat()
{
return $this->tfJsFormat;
}
/**
* @param XPSTfLiteFormat
*/
public function setTfLiteFormat(XPSTfLiteFormat $tfLiteFormat)
{
$this->tfLiteFormat = $tfLiteFormat;
}
/**
* @return XPSTfLiteFormat
*/
public function getTfLiteFormat()
{
return $this->tfLiteFormat;
}
/**
* @param XPSTfSavedModelFormat
*/
public function setTfSavedModelFormat(XPSTfSavedModelFormat $tfSavedModelFormat)
{
$this->tfSavedModelFormat = $tfSavedModelFormat;
}
/**
* @return XPSTfSavedModelFormat
*/
public function getTfSavedModelFormat()
{
return $this->tfSavedModelFormat;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSExportModelOutputConfig::class, 'Google_Service_CloudNaturalLanguage_XPSExportModelOutputConfig');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSFileSpec extends \Google\Model
{
/**
* @var string
*/
public $directoryPath;
/**
* @var string
*/
public $fileFormat;
/**
* @var string
*/
public $fileSpec;
/**
* @var string
*/
public $singleFilePath;
/**
* @param string
*/
public function setDirectoryPath($directoryPath)
{
$this->directoryPath = $directoryPath;
}
/**
* @return string
*/
public function getDirectoryPath()
{
return $this->directoryPath;
}
/**
* @param string
*/
public function setFileFormat($fileFormat)
{
$this->fileFormat = $fileFormat;
}
/**
* @return string
*/
public function getFileFormat()
{
return $this->fileFormat;
}
/**
* @param string
*/
public function setFileSpec($fileSpec)
{
$this->fileSpec = $fileSpec;
}
/**
* @return string
*/
public function getFileSpec()
{
return $this->fileSpec;
}
/**
* @param string
*/
public function setSingleFilePath($singleFilePath)
{
$this->singleFilePath = $singleFilePath;
}
/**
* @return string
*/
public function getSingleFilePath()
{
return $this->singleFilePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSFileSpec::class, 'Google_Service_CloudNaturalLanguage_XPSFileSpec');

View File

@@ -0,0 +1,86 @@
<?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\CloudNaturalLanguage;
class XPSFloat64Stats extends \Google\Collection
{
protected $collection_key = 'quantiles';
protected $commonStatsType = XPSCommonStats::class;
protected $commonStatsDataType = '';
protected $histogramBucketsType = XPSFloat64StatsHistogramBucket::class;
protected $histogramBucketsDataType = 'array';
public $mean;
public $quantiles;
public $standardDeviation;
/**
* @param XPSCommonStats
*/
public function setCommonStats(XPSCommonStats $commonStats)
{
$this->commonStats = $commonStats;
}
/**
* @return XPSCommonStats
*/
public function getCommonStats()
{
return $this->commonStats;
}
/**
* @param XPSFloat64StatsHistogramBucket[]
*/
public function setHistogramBuckets($histogramBuckets)
{
$this->histogramBuckets = $histogramBuckets;
}
/**
* @return XPSFloat64StatsHistogramBucket[]
*/
public function getHistogramBuckets()
{
return $this->histogramBuckets;
}
public function setMean($mean)
{
$this->mean = $mean;
}
public function getMean()
{
return $this->mean;
}
public function setQuantiles($quantiles)
{
$this->quantiles = $quantiles;
}
public function getQuantiles()
{
return $this->quantiles;
}
public function setStandardDeviation($standardDeviation)
{
$this->standardDeviation = $standardDeviation;
}
public function getStandardDeviation()
{
return $this->standardDeviation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSFloat64Stats::class, 'Google_Service_CloudNaturalLanguage_XPSFloat64Stats');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSFloat64StatsHistogramBucket extends \Google\Model
{
/**
* @var string
*/
public $count;
public $max;
public $min;
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
public function setMax($max)
{
$this->max = $max;
}
public function getMax()
{
return $this->max;
}
public function setMin($min)
{
$this->min = $min;
}
public function getMin()
{
return $this->min;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSFloat64StatsHistogramBucket::class, 'Google_Service_CloudNaturalLanguage_XPSFloat64StatsHistogramBucket');

View File

@@ -0,0 +1,146 @@
<?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\CloudNaturalLanguage;
class XPSImageClassificationTrainResponse extends \Google\Model
{
/**
* @var string
*/
public $classCount;
protected $exportModelSpecType = XPSImageExportModelSpec::class;
protected $exportModelSpecDataType = '';
protected $modelArtifactSpecType = XPSImageModelArtifactSpec::class;
protected $modelArtifactSpecDataType = '';
protected $modelServingSpecType = XPSImageModelServingSpec::class;
protected $modelServingSpecDataType = '';
/**
* @var string
*/
public $stopReason;
/**
* @var string
*/
public $trainCostInNodeTime;
/**
* @var string
*/
public $trainCostNodeSeconds;
/**
* @param string
*/
public function setClassCount($classCount)
{
$this->classCount = $classCount;
}
/**
* @return string
*/
public function getClassCount()
{
return $this->classCount;
}
/**
* @param XPSImageExportModelSpec
*/
public function setExportModelSpec(XPSImageExportModelSpec $exportModelSpec)
{
$this->exportModelSpec = $exportModelSpec;
}
/**
* @return XPSImageExportModelSpec
*/
public function getExportModelSpec()
{
return $this->exportModelSpec;
}
/**
* @param XPSImageModelArtifactSpec
*/
public function setModelArtifactSpec(XPSImageModelArtifactSpec $modelArtifactSpec)
{
$this->modelArtifactSpec = $modelArtifactSpec;
}
/**
* @return XPSImageModelArtifactSpec
*/
public function getModelArtifactSpec()
{
return $this->modelArtifactSpec;
}
/**
* @param XPSImageModelServingSpec
*/
public function setModelServingSpec(XPSImageModelServingSpec $modelServingSpec)
{
$this->modelServingSpec = $modelServingSpec;
}
/**
* @return XPSImageModelServingSpec
*/
public function getModelServingSpec()
{
return $this->modelServingSpec;
}
/**
* @param string
*/
public function setStopReason($stopReason)
{
$this->stopReason = $stopReason;
}
/**
* @return string
*/
public function getStopReason()
{
return $this->stopReason;
}
/**
* @param string
*/
public function setTrainCostInNodeTime($trainCostInNodeTime)
{
$this->trainCostInNodeTime = $trainCostInNodeTime;
}
/**
* @return string
*/
public function getTrainCostInNodeTime()
{
return $this->trainCostInNodeTime;
}
/**
* @param string
*/
public function setTrainCostNodeSeconds($trainCostNodeSeconds)
{
$this->trainCostNodeSeconds = $trainCostNodeSeconds;
}
/**
* @return string
*/
public function getTrainCostNodeSeconds()
{
return $this->trainCostNodeSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageClassificationTrainResponse::class, 'Google_Service_CloudNaturalLanguage_XPSImageClassificationTrainResponse');

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.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSImageExportModelSpec extends \Google\Collection
{
protected $collection_key = 'exportModelOutputConfig';
protected $exportModelOutputConfigType = XPSExportModelOutputConfig::class;
protected $exportModelOutputConfigDataType = 'array';
/**
* @param XPSExportModelOutputConfig[]
*/
public function setExportModelOutputConfig($exportModelOutputConfig)
{
$this->exportModelOutputConfig = $exportModelOutputConfig;
}
/**
* @return XPSExportModelOutputConfig[]
*/
public function getExportModelOutputConfig()
{
return $this->exportModelOutputConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageExportModelSpec::class, 'Google_Service_CloudNaturalLanguage_XPSImageExportModelSpec');

View File

@@ -0,0 +1,129 @@
<?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\CloudNaturalLanguage;
class XPSImageModelArtifactSpec extends \Google\Collection
{
protected $collection_key = 'exportArtifact';
protected $checkpointArtifactType = XPSModelArtifactItem::class;
protected $checkpointArtifactDataType = '';
protected $exportArtifactType = XPSModelArtifactItem::class;
protected $exportArtifactDataType = 'array';
/**
* @var string
*/
public $labelGcsUri;
protected $servingArtifactType = XPSModelArtifactItem::class;
protected $servingArtifactDataType = '';
/**
* @var string
*/
public $tfJsBinaryGcsPrefix;
/**
* @var string
*/
public $tfLiteMetadataGcsUri;
/**
* @param XPSModelArtifactItem
*/
public function setCheckpointArtifact(XPSModelArtifactItem $checkpointArtifact)
{
$this->checkpointArtifact = $checkpointArtifact;
}
/**
* @return XPSModelArtifactItem
*/
public function getCheckpointArtifact()
{
return $this->checkpointArtifact;
}
/**
* @param XPSModelArtifactItem[]
*/
public function setExportArtifact($exportArtifact)
{
$this->exportArtifact = $exportArtifact;
}
/**
* @return XPSModelArtifactItem[]
*/
public function getExportArtifact()
{
return $this->exportArtifact;
}
/**
* @param string
*/
public function setLabelGcsUri($labelGcsUri)
{
$this->labelGcsUri = $labelGcsUri;
}
/**
* @return string
*/
public function getLabelGcsUri()
{
return $this->labelGcsUri;
}
/**
* @param XPSModelArtifactItem
*/
public function setServingArtifact(XPSModelArtifactItem $servingArtifact)
{
$this->servingArtifact = $servingArtifact;
}
/**
* @return XPSModelArtifactItem
*/
public function getServingArtifact()
{
return $this->servingArtifact;
}
/**
* @param string
*/
public function setTfJsBinaryGcsPrefix($tfJsBinaryGcsPrefix)
{
$this->tfJsBinaryGcsPrefix = $tfJsBinaryGcsPrefix;
}
/**
* @return string
*/
public function getTfJsBinaryGcsPrefix()
{
return $this->tfJsBinaryGcsPrefix;
}
/**
* @param string
*/
public function setTfLiteMetadataGcsUri($tfLiteMetadataGcsUri)
{
$this->tfLiteMetadataGcsUri = $tfLiteMetadataGcsUri;
}
/**
* @return string
*/
public function getTfLiteMetadataGcsUri()
{
return $this->tfLiteMetadataGcsUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageModelArtifactSpec::class, 'Google_Service_CloudNaturalLanguage_XPSImageModelArtifactSpec');

View File

@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSImageModelServingSpec extends \Google\Collection
{
protected $collection_key = 'modelThroughputEstimation';
protected $modelThroughputEstimationType = XPSImageModelServingSpecModelThroughputEstimation::class;
protected $modelThroughputEstimationDataType = 'array';
public $nodeQps;
/**
* @var string
*/
public $tfRuntimeVersion;
/**
* @param XPSImageModelServingSpecModelThroughputEstimation[]
*/
public function setModelThroughputEstimation($modelThroughputEstimation)
{
$this->modelThroughputEstimation = $modelThroughputEstimation;
}
/**
* @return XPSImageModelServingSpecModelThroughputEstimation[]
*/
public function getModelThroughputEstimation()
{
return $this->modelThroughputEstimation;
}
public function setNodeQps($nodeQps)
{
$this->nodeQps = $nodeQps;
}
public function getNodeQps()
{
return $this->nodeQps;
}
/**
* @param string
*/
public function setTfRuntimeVersion($tfRuntimeVersion)
{
$this->tfRuntimeVersion = $tfRuntimeVersion;
}
/**
* @return string
*/
public function getTfRuntimeVersion()
{
return $this->tfRuntimeVersion;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageModelServingSpec::class, 'Google_Service_CloudNaturalLanguage_XPSImageModelServingSpec');

View File

@@ -0,0 +1,80 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSImageModelServingSpecModelThroughputEstimation extends \Google\Model
{
/**
* @var string
*/
public $computeEngineAcceleratorType;
public $latencyInMilliseconds;
public $nodeQps;
/**
* @var string
*/
public $servomaticPartitionType;
/**
* @param string
*/
public function setComputeEngineAcceleratorType($computeEngineAcceleratorType)
{
$this->computeEngineAcceleratorType = $computeEngineAcceleratorType;
}
/**
* @return string
*/
public function getComputeEngineAcceleratorType()
{
return $this->computeEngineAcceleratorType;
}
public function setLatencyInMilliseconds($latencyInMilliseconds)
{
$this->latencyInMilliseconds = $latencyInMilliseconds;
}
public function getLatencyInMilliseconds()
{
return $this->latencyInMilliseconds;
}
public function setNodeQps($nodeQps)
{
$this->nodeQps = $nodeQps;
}
public function getNodeQps()
{
return $this->nodeQps;
}
/**
* @param string
*/
public function setServomaticPartitionType($servomaticPartitionType)
{
$this->servomaticPartitionType = $servomaticPartitionType;
}
/**
* @return string
*/
public function getServomaticPartitionType()
{
return $this->servomaticPartitionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageModelServingSpecModelThroughputEstimation::class, 'Google_Service_CloudNaturalLanguage_XPSImageModelServingSpecModelThroughputEstimation');

View File

@@ -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\CloudNaturalLanguage;
class XPSImageObjectDetectionEvaluationMetrics extends \Google\Collection
{
protected $collection_key = 'boundingBoxMetricsEntries';
/**
* @var float
*/
public $boundingBoxMeanAveragePrecision;
protected $boundingBoxMetricsEntriesType = XPSBoundingBoxMetricsEntry::class;
protected $boundingBoxMetricsEntriesDataType = 'array';
/**
* @var int
*/
public $evaluatedBoundingBoxCount;
/**
* @param float
*/
public function setBoundingBoxMeanAveragePrecision($boundingBoxMeanAveragePrecision)
{
$this->boundingBoxMeanAveragePrecision = $boundingBoxMeanAveragePrecision;
}
/**
* @return float
*/
public function getBoundingBoxMeanAveragePrecision()
{
return $this->boundingBoxMeanAveragePrecision;
}
/**
* @param XPSBoundingBoxMetricsEntry[]
*/
public function setBoundingBoxMetricsEntries($boundingBoxMetricsEntries)
{
$this->boundingBoxMetricsEntries = $boundingBoxMetricsEntries;
}
/**
* @return XPSBoundingBoxMetricsEntry[]
*/
public function getBoundingBoxMetricsEntries()
{
return $this->boundingBoxMetricsEntries;
}
/**
* @param int
*/
public function setEvaluatedBoundingBoxCount($evaluatedBoundingBoxCount)
{
$this->evaluatedBoundingBoxCount = $evaluatedBoundingBoxCount;
}
/**
* @return int
*/
public function getEvaluatedBoundingBoxCount()
{
return $this->evaluatedBoundingBoxCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageObjectDetectionEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSImageObjectDetectionEvaluationMetrics');

View File

@@ -0,0 +1,146 @@
<?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\CloudNaturalLanguage;
class XPSImageObjectDetectionModelSpec extends \Google\Model
{
/**
* @var string
*/
public $classCount;
protected $exportModelSpecType = XPSImageExportModelSpec::class;
protected $exportModelSpecDataType = '';
/**
* @var string
*/
public $maxBoundingBoxCount;
protected $modelArtifactSpecType = XPSImageModelArtifactSpec::class;
protected $modelArtifactSpecDataType = '';
protected $modelServingSpecType = XPSImageModelServingSpec::class;
protected $modelServingSpecDataType = '';
/**
* @var string
*/
public $stopReason;
/**
* @var string
*/
public $trainCostNodeSeconds;
/**
* @param string
*/
public function setClassCount($classCount)
{
$this->classCount = $classCount;
}
/**
* @return string
*/
public function getClassCount()
{
return $this->classCount;
}
/**
* @param XPSImageExportModelSpec
*/
public function setExportModelSpec(XPSImageExportModelSpec $exportModelSpec)
{
$this->exportModelSpec = $exportModelSpec;
}
/**
* @return XPSImageExportModelSpec
*/
public function getExportModelSpec()
{
return $this->exportModelSpec;
}
/**
* @param string
*/
public function setMaxBoundingBoxCount($maxBoundingBoxCount)
{
$this->maxBoundingBoxCount = $maxBoundingBoxCount;
}
/**
* @return string
*/
public function getMaxBoundingBoxCount()
{
return $this->maxBoundingBoxCount;
}
/**
* @param XPSImageModelArtifactSpec
*/
public function setModelArtifactSpec(XPSImageModelArtifactSpec $modelArtifactSpec)
{
$this->modelArtifactSpec = $modelArtifactSpec;
}
/**
* @return XPSImageModelArtifactSpec
*/
public function getModelArtifactSpec()
{
return $this->modelArtifactSpec;
}
/**
* @param XPSImageModelServingSpec
*/
public function setModelServingSpec(XPSImageModelServingSpec $modelServingSpec)
{
$this->modelServingSpec = $modelServingSpec;
}
/**
* @return XPSImageModelServingSpec
*/
public function getModelServingSpec()
{
return $this->modelServingSpec;
}
/**
* @param string
*/
public function setStopReason($stopReason)
{
$this->stopReason = $stopReason;
}
/**
* @return string
*/
public function getStopReason()
{
return $this->stopReason;
}
/**
* @param string
*/
public function setTrainCostNodeSeconds($trainCostNodeSeconds)
{
$this->trainCostNodeSeconds = $trainCostNodeSeconds;
}
/**
* @return string
*/
public function getTrainCostNodeSeconds()
{
return $this->trainCostNodeSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageObjectDetectionModelSpec::class, 'Google_Service_CloudNaturalLanguage_XPSImageObjectDetectionModelSpec');

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.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSImageSegmentationEvaluationMetrics extends \Google\Collection
{
protected $collection_key = 'confidenceMetricsEntries';
protected $confidenceMetricsEntriesType = XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry::class;
protected $confidenceMetricsEntriesDataType = 'array';
/**
* @param XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry[]
*/
public function setConfidenceMetricsEntries($confidenceMetricsEntries)
{
$this->confidenceMetricsEntries = $confidenceMetricsEntries;
}
/**
* @return XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry[]
*/
public function getConfidenceMetricsEntries()
{
return $this->confidenceMetricsEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageSegmentationEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSImageSegmentationEvaluationMetrics');

View File

@@ -0,0 +1,132 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry extends \Google\Model
{
/**
* @var float
*/
public $confidenceThreshold;
protected $confusionMatrixType = XPSConfusionMatrix::class;
protected $confusionMatrixDataType = '';
/**
* @var float
*/
public $diceScoreCoefficient;
/**
* @var float
*/
public $iouScore;
/**
* @var float
*/
public $precision;
/**
* @var float
*/
public $recall;
/**
* @param float
*/
public function setConfidenceThreshold($confidenceThreshold)
{
$this->confidenceThreshold = $confidenceThreshold;
}
/**
* @return float
*/
public function getConfidenceThreshold()
{
return $this->confidenceThreshold;
}
/**
* @param XPSConfusionMatrix
*/
public function setConfusionMatrix(XPSConfusionMatrix $confusionMatrix)
{
$this->confusionMatrix = $confusionMatrix;
}
/**
* @return XPSConfusionMatrix
*/
public function getConfusionMatrix()
{
return $this->confusionMatrix;
}
/**
* @param float
*/
public function setDiceScoreCoefficient($diceScoreCoefficient)
{
$this->diceScoreCoefficient = $diceScoreCoefficient;
}
/**
* @return float
*/
public function getDiceScoreCoefficient()
{
return $this->diceScoreCoefficient;
}
/**
* @param float
*/
public function setIouScore($iouScore)
{
$this->iouScore = $iouScore;
}
/**
* @return float
*/
public function getIouScore()
{
return $this->iouScore;
}
/**
* @param float
*/
public function setPrecision($precision)
{
$this->precision = $precision;
}
/**
* @return float
*/
public function getPrecision()
{
return $this->precision;
}
/**
* @param float
*/
public function setRecall($recall)
{
$this->recall = $recall;
}
/**
* @return float
*/
public function getRecall()
{
return $this->recall;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry::class, 'Google_Service_CloudNaturalLanguage_XPSImageSegmentationEvaluationMetricsConfidenceMetricsEntry');

View File

@@ -0,0 +1,127 @@
<?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\CloudNaturalLanguage;
class XPSImageSegmentationTrainResponse extends \Google\Collection
{
protected $collection_key = 'colorMaps';
protected $colorMapsType = XPSColorMap::class;
protected $colorMapsDataType = 'array';
protected $exportModelSpecType = XPSImageExportModelSpec::class;
protected $exportModelSpecDataType = '';
protected $modelArtifactSpecType = XPSImageModelArtifactSpec::class;
protected $modelArtifactSpecDataType = '';
protected $modelServingSpecType = XPSImageModelServingSpec::class;
protected $modelServingSpecDataType = '';
/**
* @var string
*/
public $stopReason;
/**
* @var string
*/
public $trainCostNodeSeconds;
/**
* @param XPSColorMap[]
*/
public function setColorMaps($colorMaps)
{
$this->colorMaps = $colorMaps;
}
/**
* @return XPSColorMap[]
*/
public function getColorMaps()
{
return $this->colorMaps;
}
/**
* @param XPSImageExportModelSpec
*/
public function setExportModelSpec(XPSImageExportModelSpec $exportModelSpec)
{
$this->exportModelSpec = $exportModelSpec;
}
/**
* @return XPSImageExportModelSpec
*/
public function getExportModelSpec()
{
return $this->exportModelSpec;
}
/**
* @param XPSImageModelArtifactSpec
*/
public function setModelArtifactSpec(XPSImageModelArtifactSpec $modelArtifactSpec)
{
$this->modelArtifactSpec = $modelArtifactSpec;
}
/**
* @return XPSImageModelArtifactSpec
*/
public function getModelArtifactSpec()
{
return $this->modelArtifactSpec;
}
/**
* @param XPSImageModelServingSpec
*/
public function setModelServingSpec(XPSImageModelServingSpec $modelServingSpec)
{
$this->modelServingSpec = $modelServingSpec;
}
/**
* @return XPSImageModelServingSpec
*/
public function getModelServingSpec()
{
return $this->modelServingSpec;
}
/**
* @param string
*/
public function setStopReason($stopReason)
{
$this->stopReason = $stopReason;
}
/**
* @return string
*/
public function getStopReason()
{
return $this->stopReason;
}
/**
* @param string
*/
public function setTrainCostNodeSeconds($trainCostNodeSeconds)
{
$this->trainCostNodeSeconds = $trainCostNodeSeconds;
}
/**
* @return string
*/
public function getTrainCostNodeSeconds()
{
return $this->trainCostNodeSeconds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSImageSegmentationTrainResponse::class, 'Google_Service_CloudNaturalLanguage_XPSImageSegmentationTrainResponse');

View File

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

View File

@@ -0,0 +1,106 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSMetricEntry extends \Google\Collection
{
protected $collection_key = 'systemLabels';
/**
* @var string
*/
public $argentumMetricId;
public $doubleValue;
/**
* @var string
*/
public $int64Value;
/**
* @var string
*/
public $metricName;
protected $systemLabelsType = XPSMetricEntryLabel::class;
protected $systemLabelsDataType = 'array';
/**
* @param string
*/
public function setArgentumMetricId($argentumMetricId)
{
$this->argentumMetricId = $argentumMetricId;
}
/**
* @return string
*/
public function getArgentumMetricId()
{
return $this->argentumMetricId;
}
public function setDoubleValue($doubleValue)
{
$this->doubleValue = $doubleValue;
}
public function getDoubleValue()
{
return $this->doubleValue;
}
/**
* @param string
*/
public function setInt64Value($int64Value)
{
$this->int64Value = $int64Value;
}
/**
* @return string
*/
public function getInt64Value()
{
return $this->int64Value;
}
/**
* @param string
*/
public function setMetricName($metricName)
{
$this->metricName = $metricName;
}
/**
* @return string
*/
public function getMetricName()
{
return $this->metricName;
}
/**
* @param XPSMetricEntryLabel[]
*/
public function setSystemLabels($systemLabels)
{
$this->systemLabels = $systemLabels;
}
/**
* @return XPSMetricEntryLabel[]
*/
public function getSystemLabels()
{
return $this->systemLabels;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSMetricEntry::class, 'Google_Service_CloudNaturalLanguage_XPSMetricEntry');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSMetricEntryLabel extends \Google\Model
{
/**
* @var string
*/
public $labelName;
/**
* @var string
*/
public $labelValue;
/**
* @param string
*/
public function setLabelName($labelName)
{
$this->labelName = $labelName;
}
/**
* @return string
*/
public function getLabelName()
{
return $this->labelName;
}
/**
* @param string
*/
public function setLabelValue($labelValue)
{
$this->labelValue = $labelValue;
}
/**
* @return string
*/
public function getLabelValue()
{
return $this->labelValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSMetricEntryLabel::class, 'Google_Service_CloudNaturalLanguage_XPSMetricEntryLabel');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSModelArtifactItem extends \Google\Model
{
/**
* @var string
*/
public $artifactFormat;
/**
* @var string
*/
public $gcsUri;
/**
* @param string
*/
public function setArtifactFormat($artifactFormat)
{
$this->artifactFormat = $artifactFormat;
}
/**
* @return string
*/
public function getArtifactFormat()
{
return $this->artifactFormat;
}
/**
* @param string
*/
public function setGcsUri($gcsUri)
{
$this->gcsUri = $gcsUri;
}
/**
* @return string
*/
public function getGcsUri()
{
return $this->gcsUri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSModelArtifactItem::class, 'Google_Service_CloudNaturalLanguage_XPSModelArtifactItem');

View File

@@ -0,0 +1,90 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSPreprocessResponse extends \Google\Model
{
protected $outputExampleSetType = XPSExampleSet::class;
protected $outputExampleSetDataType = '';
protected $speechPreprocessRespType = XPSSpeechPreprocessResponse::class;
protected $speechPreprocessRespDataType = '';
protected $tablesPreprocessResponseType = XPSTablesPreprocessResponse::class;
protected $tablesPreprocessResponseDataType = '';
protected $translationPreprocessRespType = XPSTranslationPreprocessResponse::class;
protected $translationPreprocessRespDataType = '';
/**
* @param XPSExampleSet
*/
public function setOutputExampleSet(XPSExampleSet $outputExampleSet)
{
$this->outputExampleSet = $outputExampleSet;
}
/**
* @return XPSExampleSet
*/
public function getOutputExampleSet()
{
return $this->outputExampleSet;
}
/**
* @param XPSSpeechPreprocessResponse
*/
public function setSpeechPreprocessResp(XPSSpeechPreprocessResponse $speechPreprocessResp)
{
$this->speechPreprocessResp = $speechPreprocessResp;
}
/**
* @return XPSSpeechPreprocessResponse
*/
public function getSpeechPreprocessResp()
{
return $this->speechPreprocessResp;
}
/**
* @param XPSTablesPreprocessResponse
*/
public function setTablesPreprocessResponse(XPSTablesPreprocessResponse $tablesPreprocessResponse)
{
$this->tablesPreprocessResponse = $tablesPreprocessResponse;
}
/**
* @return XPSTablesPreprocessResponse
*/
public function getTablesPreprocessResponse()
{
return $this->tablesPreprocessResponse;
}
/**
* @param XPSTranslationPreprocessResponse
*/
public function setTranslationPreprocessResp(XPSTranslationPreprocessResponse $translationPreprocessResp)
{
$this->translationPreprocessResp = $translationPreprocessResp;
}
/**
* @return XPSTranslationPreprocessResponse
*/
public function getTranslationPreprocessResp()
{
return $this->translationPreprocessResp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSPreprocessResponse::class, 'Google_Service_CloudNaturalLanguage_XPSPreprocessResponse');

View File

@@ -0,0 +1,133 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSRegressionEvaluationMetrics extends \Google\Collection
{
protected $collection_key = 'regressionMetricsEntries';
/**
* @var float
*/
public $meanAbsoluteError;
/**
* @var float
*/
public $meanAbsolutePercentageError;
/**
* @var float
*/
public $rSquared;
protected $regressionMetricsEntriesType = XPSRegressionMetricsEntry::class;
protected $regressionMetricsEntriesDataType = 'array';
/**
* @var float
*/
public $rootMeanSquaredError;
/**
* @var float
*/
public $rootMeanSquaredLogError;
/**
* @param float
*/
public function setMeanAbsoluteError($meanAbsoluteError)
{
$this->meanAbsoluteError = $meanAbsoluteError;
}
/**
* @return float
*/
public function getMeanAbsoluteError()
{
return $this->meanAbsoluteError;
}
/**
* @param float
*/
public function setMeanAbsolutePercentageError($meanAbsolutePercentageError)
{
$this->meanAbsolutePercentageError = $meanAbsolutePercentageError;
}
/**
* @return float
*/
public function getMeanAbsolutePercentageError()
{
return $this->meanAbsolutePercentageError;
}
/**
* @param float
*/
public function setRSquared($rSquared)
{
$this->rSquared = $rSquared;
}
/**
* @return float
*/
public function getRSquared()
{
return $this->rSquared;
}
/**
* @param XPSRegressionMetricsEntry[]
*/
public function setRegressionMetricsEntries($regressionMetricsEntries)
{
$this->regressionMetricsEntries = $regressionMetricsEntries;
}
/**
* @return XPSRegressionMetricsEntry[]
*/
public function getRegressionMetricsEntries()
{
return $this->regressionMetricsEntries;
}
/**
* @param float
*/
public function setRootMeanSquaredError($rootMeanSquaredError)
{
$this->rootMeanSquaredError = $rootMeanSquaredError;
}
/**
* @return float
*/
public function getRootMeanSquaredError()
{
return $this->rootMeanSquaredError;
}
/**
* @param float
*/
public function setRootMeanSquaredLogError($rootMeanSquaredLogError)
{
$this->rootMeanSquaredLogError = $rootMeanSquaredLogError;
}
/**
* @return float
*/
public function getRootMeanSquaredLogError()
{
return $this->rootMeanSquaredLogError;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSRegressionEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSRegressionEvaluationMetrics');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSRegressionMetricsEntry extends \Google\Model
{
/**
* @var float
*/
public $predictedValue;
/**
* @var float
*/
public $trueValue;
/**
* @param float
*/
public function setPredictedValue($predictedValue)
{
$this->predictedValue = $predictedValue;
}
/**
* @return float
*/
public function getPredictedValue()
{
return $this->predictedValue;
}
/**
* @param float
*/
public function setTrueValue($trueValue)
{
$this->trueValue = $trueValue;
}
/**
* @return float
*/
public function getTrueValue()
{
return $this->trueValue;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSRegressionMetricsEntry::class, 'Google_Service_CloudNaturalLanguage_XPSRegressionMetricsEntry');

View File

@@ -0,0 +1,61 @@
<?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\CloudNaturalLanguage;
class XPSReportingMetrics extends \Google\Collection
{
protected $collection_key = 'metricEntries';
/**
* @var string
*/
public $effectiveTrainingDuration;
protected $metricEntriesType = XPSMetricEntry::class;
protected $metricEntriesDataType = 'array';
/**
* @param string
*/
public function setEffectiveTrainingDuration($effectiveTrainingDuration)
{
$this->effectiveTrainingDuration = $effectiveTrainingDuration;
}
/**
* @return string
*/
public function getEffectiveTrainingDuration()
{
return $this->effectiveTrainingDuration;
}
/**
* @param XPSMetricEntry[]
*/
public function setMetricEntries($metricEntries)
{
$this->metricEntries = $metricEntries;
}
/**
* @return XPSMetricEntry[]
*/
public function getMetricEntries()
{
return $this->metricEntries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSReportingMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSReportingMetrics');

View File

@@ -0,0 +1,58 @@
<?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\CloudNaturalLanguage;
class XPSResponseExplanationMetadata extends \Google\Model
{
protected $inputsType = XPSResponseExplanationMetadataInputMetadata::class;
protected $inputsDataType = 'map';
protected $outputsType = XPSResponseExplanationMetadataOutputMetadata::class;
protected $outputsDataType = 'map';
/**
* @param XPSResponseExplanationMetadataInputMetadata[]
*/
public function setInputs($inputs)
{
$this->inputs = $inputs;
}
/**
* @return XPSResponseExplanationMetadataInputMetadata[]
*/
public function getInputs()
{
return $this->inputs;
}
/**
* @param XPSResponseExplanationMetadataOutputMetadata[]
*/
public function setOutputs($outputs)
{
$this->outputs = $outputs;
}
/**
* @return XPSResponseExplanationMetadataOutputMetadata[]
*/
public function getOutputs()
{
return $this->outputs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSResponseExplanationMetadata::class, 'Google_Service_CloudNaturalLanguage_XPSResponseExplanationMetadata');

View File

@@ -0,0 +1,78 @@
<?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\CloudNaturalLanguage;
class XPSResponseExplanationMetadataInputMetadata extends \Google\Model
{
/**
* @var string
*/
public $inputTensorName;
/**
* @var string
*/
public $modality;
protected $visualizationConfigType = XPSVisualization::class;
protected $visualizationConfigDataType = '';
/**
* @param string
*/
public function setInputTensorName($inputTensorName)
{
$this->inputTensorName = $inputTensorName;
}
/**
* @return string
*/
public function getInputTensorName()
{
return $this->inputTensorName;
}
/**
* @param string
*/
public function setModality($modality)
{
$this->modality = $modality;
}
/**
* @return string
*/
public function getModality()
{
return $this->modality;
}
/**
* @param XPSVisualization
*/
public function setVisualizationConfig(XPSVisualization $visualizationConfig)
{
$this->visualizationConfig = $visualizationConfig;
}
/**
* @return XPSVisualization
*/
public function getVisualizationConfig()
{
return $this->visualizationConfig;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSResponseExplanationMetadataInputMetadata::class, 'Google_Service_CloudNaturalLanguage_XPSResponseExplanationMetadataInputMetadata');

View File

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

View File

@@ -0,0 +1,58 @@
<?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\CloudNaturalLanguage;
class XPSResponseExplanationParameters extends \Google\Model
{
protected $integratedGradientsAttributionType = XPSIntegratedGradientsAttribution::class;
protected $integratedGradientsAttributionDataType = '';
protected $xraiAttributionType = XPSXraiAttribution::class;
protected $xraiAttributionDataType = '';
/**
* @param XPSIntegratedGradientsAttribution
*/
public function setIntegratedGradientsAttribution(XPSIntegratedGradientsAttribution $integratedGradientsAttribution)
{
$this->integratedGradientsAttribution = $integratedGradientsAttribution;
}
/**
* @return XPSIntegratedGradientsAttribution
*/
public function getIntegratedGradientsAttribution()
{
return $this->integratedGradientsAttribution;
}
/**
* @param XPSXraiAttribution
*/
public function setXraiAttribution(XPSXraiAttribution $xraiAttribution)
{
$this->xraiAttribution = $xraiAttribution;
}
/**
* @return XPSXraiAttribution
*/
public function getXraiAttribution()
{
return $this->xraiAttribution;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSResponseExplanationParameters::class, 'Google_Service_CloudNaturalLanguage_XPSResponseExplanationParameters');

View File

@@ -0,0 +1,76 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSResponseExplanationSpec extends \Google\Model
{
/**
* @var string
*/
public $explanationType;
protected $metadataType = XPSResponseExplanationMetadata::class;
protected $metadataDataType = '';
protected $parametersType = XPSResponseExplanationParameters::class;
protected $parametersDataType = '';
/**
* @param string
*/
public function setExplanationType($explanationType)
{
$this->explanationType = $explanationType;
}
/**
* @return string
*/
public function getExplanationType()
{
return $this->explanationType;
}
/**
* @param XPSResponseExplanationMetadata
*/
public function setMetadata(XPSResponseExplanationMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return XPSResponseExplanationMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* @param XPSResponseExplanationParameters
*/
public function setParameters(XPSResponseExplanationParameters $parameters)
{
$this->parameters = $parameters;
}
/**
* @return XPSResponseExplanationParameters
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSResponseExplanationSpec::class, 'Google_Service_CloudNaturalLanguage_XPSResponseExplanationSpec');

View File

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

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.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSSpeechEvaluationMetrics extends \Google\Collection
{
protected $collection_key = 'subModelEvaluationMetrics';
protected $subModelEvaluationMetricsType = XPSSpeechEvaluationMetricsSubModelEvaluationMetric::class;
protected $subModelEvaluationMetricsDataType = 'array';
/**
* @param XPSSpeechEvaluationMetricsSubModelEvaluationMetric[]
*/
public function setSubModelEvaluationMetrics($subModelEvaluationMetrics)
{
$this->subModelEvaluationMetrics = $subModelEvaluationMetrics;
}
/**
* @return XPSSpeechEvaluationMetricsSubModelEvaluationMetric[]
*/
public function getSubModelEvaluationMetrics()
{
return $this->subModelEvaluationMetrics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSSpeechEvaluationMetrics::class, 'Google_Service_CloudNaturalLanguage_XPSSpeechEvaluationMetrics');

View File

@@ -0,0 +1,170 @@
<?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\CloudNaturalLanguage;
class XPSSpeechEvaluationMetricsSubModelEvaluationMetric extends \Google\Model
{
/**
* @var string
*/
public $biasingModelType;
/**
* @var bool
*/
public $isEnhancedModel;
/**
* @var int
*/
public $numDeletions;
/**
* @var int
*/
public $numInsertions;
/**
* @var int
*/
public $numSubstitutions;
/**
* @var int
*/
public $numUtterances;
/**
* @var int
*/
public $numWords;
public $sentenceAccuracy;
public $wer;
/**
* @param string
*/
public function setBiasingModelType($biasingModelType)
{
$this->biasingModelType = $biasingModelType;
}
/**
* @return string
*/
public function getBiasingModelType()
{
return $this->biasingModelType;
}
/**
* @param bool
*/
public function setIsEnhancedModel($isEnhancedModel)
{
$this->isEnhancedModel = $isEnhancedModel;
}
/**
* @return bool
*/
public function getIsEnhancedModel()
{
return $this->isEnhancedModel;
}
/**
* @param int
*/
public function setNumDeletions($numDeletions)
{
$this->numDeletions = $numDeletions;
}
/**
* @return int
*/
public function getNumDeletions()
{
return $this->numDeletions;
}
/**
* @param int
*/
public function setNumInsertions($numInsertions)
{
$this->numInsertions = $numInsertions;
}
/**
* @return int
*/
public function getNumInsertions()
{
return $this->numInsertions;
}
/**
* @param int
*/
public function setNumSubstitutions($numSubstitutions)
{
$this->numSubstitutions = $numSubstitutions;
}
/**
* @return int
*/
public function getNumSubstitutions()
{
return $this->numSubstitutions;
}
/**
* @param int
*/
public function setNumUtterances($numUtterances)
{
$this->numUtterances = $numUtterances;
}
/**
* @return int
*/
public function getNumUtterances()
{
return $this->numUtterances;
}
/**
* @param int
*/
public function setNumWords($numWords)
{
$this->numWords = $numWords;
}
/**
* @return int
*/
public function getNumWords()
{
return $this->numWords;
}
public function setSentenceAccuracy($sentenceAccuracy)
{
$this->sentenceAccuracy = $sentenceAccuracy;
}
public function getSentenceAccuracy()
{
return $this->sentenceAccuracy;
}
public function setWer($wer)
{
$this->wer = $wer;
}
public function getWer()
{
return $this->wer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSSpeechEvaluationMetricsSubModelEvaluationMetric::class, 'Google_Service_CloudNaturalLanguage_XPSSpeechEvaluationMetricsSubModelEvaluationMetric');

View File

@@ -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\CloudNaturalLanguage;
class XPSSpeechModelSpec extends \Google\Collection
{
protected $collection_key = 'subModelSpecs';
/**
* @var string
*/
public $datasetId;
/**
* @var string
*/
public $language;
protected $subModelSpecsType = XPSSpeechModelSpecSubModelSpec::class;
protected $subModelSpecsDataType = 'array';
/**
* @param string
*/
public function setDatasetId($datasetId)
{
$this->datasetId = $datasetId;
}
/**
* @return string
*/
public function getDatasetId()
{
return $this->datasetId;
}
/**
* @param string
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* @param XPSSpeechModelSpecSubModelSpec[]
*/
public function setSubModelSpecs($subModelSpecs)
{
$this->subModelSpecs = $subModelSpecs;
}
/**
* @return XPSSpeechModelSpecSubModelSpec[]
*/
public function getSubModelSpecs()
{
return $this->subModelSpecs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSSpeechModelSpec::class, 'Google_Service_CloudNaturalLanguage_XPSSpeechModelSpec');

View File

@@ -0,0 +1,98 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSSpeechModelSpecSubModelSpec extends \Google\Model
{
/**
* @var string
*/
public $biasingModelType;
/**
* @var string
*/
public $clientId;
/**
* @var string
*/
public $contextId;
/**
* @var bool
*/
public $isEnhancedModel;
/**
* @param string
*/
public function setBiasingModelType($biasingModelType)
{
$this->biasingModelType = $biasingModelType;
}
/**
* @return string
*/
public function getBiasingModelType()
{
return $this->biasingModelType;
}
/**
* @param string
*/
public function setClientId($clientId)
{
$this->clientId = $clientId;
}
/**
* @return string
*/
public function getClientId()
{
return $this->clientId;
}
/**
* @param string
*/
public function setContextId($contextId)
{
$this->contextId = $contextId;
}
/**
* @return string
*/
public function getContextId()
{
return $this->contextId;
}
/**
* @param bool
*/
public function setIsEnhancedModel($isEnhancedModel)
{
$this->isEnhancedModel = $isEnhancedModel;
}
/**
* @return bool
*/
public function getIsEnhancedModel()
{
return $this->isEnhancedModel;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSSpeechModelSpecSubModelSpec::class, 'Google_Service_CloudNaturalLanguage_XPSSpeechModelSpecSubModelSpec');

View File

@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\CloudNaturalLanguage;
class XPSSpeechPreprocessResponse extends \Google\Model
{
/**
* @var string
*/
public $cnsTestDataPath;
/**
* @var string
*/
public $cnsTrainDataPath;
protected $prebuiltModelEvaluationMetricsType = XPSSpeechEvaluationMetrics::class;
protected $prebuiltModelEvaluationMetricsDataType = '';
protected $speechPreprocessStatsType = XPSSpeechPreprocessStats::class;
protected $speechPreprocessStatsDataType = '';
/**
* @param string
*/
public function setCnsTestDataPath($cnsTestDataPath)
{
$this->cnsTestDataPath = $cnsTestDataPath;
}
/**
* @return string
*/
public function getCnsTestDataPath()
{
return $this->cnsTestDataPath;
}
/**
* @param string
*/
public function setCnsTrainDataPath($cnsTrainDataPath)
{
$this->cnsTrainDataPath = $cnsTrainDataPath;
}
/**
* @return string
*/
public function getCnsTrainDataPath()
{
return $this->cnsTrainDataPath;
}
/**
* @param XPSSpeechEvaluationMetrics
*/
public function setPrebuiltModelEvaluationMetrics(XPSSpeechEvaluationMetrics $prebuiltModelEvaluationMetrics)
{
$this->prebuiltModelEvaluationMetrics = $prebuiltModelEvaluationMetrics;
}
/**
* @return XPSSpeechEvaluationMetrics
*/
public function getPrebuiltModelEvaluationMetrics()
{
return $this->prebuiltModelEvaluationMetrics;
}
/**
* @param XPSSpeechPreprocessStats
*/
public function setSpeechPreprocessStats(XPSSpeechPreprocessStats $speechPreprocessStats)
{
$this->speechPreprocessStats = $speechPreprocessStats;
}
/**
* @return XPSSpeechPreprocessStats
*/
public function getSpeechPreprocessStats()
{
return $this->speechPreprocessStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSSpeechPreprocessResponse::class, 'Google_Service_CloudNaturalLanguage_XPSSpeechPreprocessResponse');

View File

@@ -0,0 +1,205 @@
<?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\CloudNaturalLanguage;
class XPSSpeechPreprocessStats extends \Google\Collection
{
protected $collection_key = 'dataErrors';
protected $dataErrorsType = XPSDataErrors::class;
protected $dataErrorsDataType = 'array';
/**
* @var int
*/
public $numHumanLabeledExamples;
/**
* @var int
*/
public $numLogsExamples;
/**
* @var int
*/
public $numMachineTranscribedExamples;
/**
* @var int
*/
public $testExamplesCount;
/**
* @var int
*/
public $testSentencesCount;
/**
* @var int
*/
public $testWordsCount;
/**
* @var int
*/
public $trainExamplesCount;
/**
* @var int
*/
public $trainSentencesCount;
/**
* @var int
*/
public $trainWordsCount;
/**
* @param XPSDataErrors[]
*/
public function setDataErrors($dataErrors)
{
$this->dataErrors = $dataErrors;
}
/**
* @return XPSDataErrors[]
*/
public function getDataErrors()
{
return $this->dataErrors;
}
/**
* @param int
*/
public function setNumHumanLabeledExamples($numHumanLabeledExamples)
{
$this->numHumanLabeledExamples = $numHumanLabeledExamples;
}
/**
* @return int
*/
public function getNumHumanLabeledExamples()
{
return $this->numHumanLabeledExamples;
}
/**
* @param int
*/
public function setNumLogsExamples($numLogsExamples)
{
$this->numLogsExamples = $numLogsExamples;
}
/**
* @return int
*/
public function getNumLogsExamples()
{
return $this->numLogsExamples;
}
/**
* @param int
*/
public function setNumMachineTranscribedExamples($numMachineTranscribedExamples)
{
$this->numMachineTranscribedExamples = $numMachineTranscribedExamples;
}
/**
* @return int
*/
public function getNumMachineTranscribedExamples()
{
return $this->numMachineTranscribedExamples;
}
/**
* @param int
*/
public function setTestExamplesCount($testExamplesCount)
{
$this->testExamplesCount = $testExamplesCount;
}
/**
* @return int
*/
public function getTestExamplesCount()
{
return $this->testExamplesCount;
}
/**
* @param int
*/
public function setTestSentencesCount($testSentencesCount)
{
$this->testSentencesCount = $testSentencesCount;
}
/**
* @return int
*/
public function getTestSentencesCount()
{
return $this->testSentencesCount;
}
/**
* @param int
*/
public function setTestWordsCount($testWordsCount)
{
$this->testWordsCount = $testWordsCount;
}
/**
* @return int
*/
public function getTestWordsCount()
{
return $this->testWordsCount;
}
/**
* @param int
*/
public function setTrainExamplesCount($trainExamplesCount)
{
$this->trainExamplesCount = $trainExamplesCount;
}
/**
* @return int
*/
public function getTrainExamplesCount()
{
return $this->trainExamplesCount;
}
/**
* @param int
*/
public function setTrainSentencesCount($trainSentencesCount)
{
$this->trainSentencesCount = $trainSentencesCount;
}
/**
* @return int
*/
public function getTrainSentencesCount()
{
return $this->trainSentencesCount;
}
/**
* @param int
*/
public function setTrainWordsCount($trainWordsCount)
{
$this->trainWordsCount = $trainWordsCount;
}
/**
* @return int
*/
public function getTrainWordsCount()
{
return $this->trainWordsCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSSpeechPreprocessStats::class, 'Google_Service_CloudNaturalLanguage_XPSSpeechPreprocessStats');

View File

@@ -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\CloudNaturalLanguage;
class XPSStringStats extends \Google\Collection
{
protected $collection_key = 'topUnigramStats';
protected $commonStatsType = XPSCommonStats::class;
protected $commonStatsDataType = '';
protected $topUnigramStatsType = XPSStringStatsUnigramStats::class;
protected $topUnigramStatsDataType = 'array';
/**
* @param XPSCommonStats
*/
public function setCommonStats(XPSCommonStats $commonStats)
{
$this->commonStats = $commonStats;
}
/**
* @return XPSCommonStats
*/
public function getCommonStats()
{
return $this->commonStats;
}
/**
* @param XPSStringStatsUnigramStats[]
*/
public function setTopUnigramStats($topUnigramStats)
{
$this->topUnigramStats = $topUnigramStats;
}
/**
* @return XPSStringStatsUnigramStats[]
*/
public function getTopUnigramStats()
{
return $this->topUnigramStats;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(XPSStringStats::class, 'Google_Service_CloudNaturalLanguage_XPSStringStats');

View File

@@ -0,0 +1,62 @@
<?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\CloudNaturalLanguage;
class XPSStringStatsUnigramStats extends \Google\Model
{
/**
* @var string
*/
public $count;
/**
* @var string
*/
public $value;
/**
* @param string
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* @param string
*/
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(XPSStringStatsUnigramStats::class, 'Google_Service_CloudNaturalLanguage_XPSStringStatsUnigramStats');

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