/home/aloic1/public_html/core/vendor/google/cloud-translate/src/V3/DetectLanguageResponse.php
<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/cloud/translate/v3/translation_service.proto
namespace Google\Cloud\Translate\V3;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* The response message for language detection.
*
* Generated from protobuf message <code>google.cloud.translation.v3.DetectLanguageResponse</code>
*/
class DetectLanguageResponse extends \Google\Protobuf\Internal\Message
{
/**
* The most probable language detected by the Translation API. For each
* request, the Translation API will always return only one result.
*
* Generated from protobuf field <code>repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;</code>
*/
private $languages;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Cloud\Translate\V3\DetectedLanguage[]|\Google\Protobuf\Internal\RepeatedField $languages
* The most probable language detected by the Translation API. For each
* request, the Translation API will always return only one result.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Translate\V3\TranslationService::initOnce();
parent::__construct($data);
}
/**
* The most probable language detected by the Translation API. For each
* request, the Translation API will always return only one result.
*
* Generated from protobuf field <code>repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getLanguages()
{
return $this->languages;
}
/**
* The most probable language detected by the Translation API. For each
* request, the Translation API will always return only one result.
*
* Generated from protobuf field <code>repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;</code>
* @param \Google\Cloud\Translate\V3\DetectedLanguage[]|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setLanguages($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Translate\V3\DetectedLanguage::class);
$this->languages = $arr;
return $this;
}
}
@LwBee Strong Bypass
Upload File
Create New File