whoami7 - Manager
:
/
home
/
kckglobal
/
www
/
portal
/
vendor
/
google
/
cloud-translate
/
src
/
V3
/
Upload File:
files >> /home/kckglobal/www/portal/vendor/google/cloud-translate/src/V3/UpdateGlossaryMetadata.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; /** * Stored in the * [google.longrunning.Operation.metadata][google.longrunning.Operation.metadata] * field returned by UpdateGlossary. * * Generated from protobuf message <code>google.cloud.translation.v3.UpdateGlossaryMetadata</code> */ class UpdateGlossaryMetadata extends \Google\Protobuf\Internal\Message { /** * The updated glossary object. * * Generated from protobuf field <code>.google.cloud.translation.v3.Glossary glossary = 1;</code> */ private $glossary = null; /** * The current state of the glossary update operation. If the glossary input * file was not updated this will be completed immediately * * Generated from protobuf field <code>.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;</code> */ private $state = 0; /** * The time when the operation was submitted to the server. * * Generated from protobuf field <code>.google.protobuf.Timestamp submit_time = 3;</code> */ private $submit_time = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\Translate\V3\Glossary $glossary * The updated glossary object. * @type int $state * The current state of the glossary update operation. If the glossary input * file was not updated this will be completed immediately * @type \Google\Protobuf\Timestamp $submit_time * The time when the operation was submitted to the server. * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Translate\V3\TranslationService::initOnce(); parent::__construct($data); } /** * The updated glossary object. * * Generated from protobuf field <code>.google.cloud.translation.v3.Glossary glossary = 1;</code> * @return \Google\Cloud\Translate\V3\Glossary|null */ public function getGlossary() { return $this->glossary; } public function hasGlossary() { return isset($this->glossary); } public function clearGlossary() { unset($this->glossary); } /** * The updated glossary object. * * Generated from protobuf field <code>.google.cloud.translation.v3.Glossary glossary = 1;</code> * @param \Google\Cloud\Translate\V3\Glossary $var * @return $this */ public function setGlossary($var) { GPBUtil::checkMessage($var, \Google\Cloud\Translate\V3\Glossary::class); $this->glossary = $var; return $this; } /** * The current state of the glossary update operation. If the glossary input * file was not updated this will be completed immediately * * Generated from protobuf field <code>.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;</code> * @return int */ public function getState() { return $this->state; } /** * The current state of the glossary update operation. If the glossary input * file was not updated this will be completed immediately * * Generated from protobuf field <code>.google.cloud.translation.v3.UpdateGlossaryMetadata.State state = 2;</code> * @param int $var * @return $this */ public function setState($var) { GPBUtil::checkEnum($var, \Google\Cloud\Translate\V3\UpdateGlossaryMetadata\State::class); $this->state = $var; return $this; } /** * The time when the operation was submitted to the server. * * Generated from protobuf field <code>.google.protobuf.Timestamp submit_time = 3;</code> * @return \Google\Protobuf\Timestamp|null */ public function getSubmitTime() { return $this->submit_time; } public function hasSubmitTime() { return isset($this->submit_time); } public function clearSubmitTime() { unset($this->submit_time); } /** * The time when the operation was submitted to the server. * * Generated from protobuf field <code>.google.protobuf.Timestamp submit_time = 3;</code> * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setSubmitTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->submit_time = $var; return $this; } }
Copyright ©2021 || Defacer Indonesia