%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/google/cloud-translate/src/V3/ |
Upload File : |
<?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.DetectedLanguage</code>
*/
class DetectedLanguage extends \Google\Protobuf\Internal\Message
{
/**
* The ISO-639 language code of the source content in the request, detected
* automatically.
*
* Generated from protobuf field <code>string language_code = 1;</code>
*/
private $language_code = '';
/**
* The confidence of the detection result for this language.
*
* Generated from protobuf field <code>float confidence = 2;</code>
*/
private $confidence = 0.0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $language_code
* The ISO-639 language code of the source content in the request, detected
* automatically.
* @type float $confidence
* The confidence of the detection result for this language.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Translate\V3\TranslationService::initOnce();
parent::__construct($data);
}
/**
* The ISO-639 language code of the source content in the request, detected
* automatically.
*
* Generated from protobuf field <code>string language_code = 1;</code>
* @return string
*/
public function getLanguageCode()
{
return $this->language_code;
}
/**
* The ISO-639 language code of the source content in the request, detected
* automatically.
*
* Generated from protobuf field <code>string language_code = 1;</code>
* @param string $var
* @return $this
*/
public function setLanguageCode($var)
{
GPBUtil::checkString($var, True);
$this->language_code = $var;
return $this;
}
/**
* The confidence of the detection result for this language.
*
* Generated from protobuf field <code>float confidence = 2;</code>
* @return float
*/
public function getConfidence()
{
return $this->confidence;
}
/**
* The confidence of the detection result for this language.
*
* Generated from protobuf field <code>float confidence = 2;</code>
* @param float $var
* @return $this
*/
public function setConfidence($var)
{
GPBUtil::checkFloat($var);
$this->confidence = $var;
return $this;
}
}