google.cloud.translation.v3.CreateGlossaryMetadata */ class CreateGlossaryMetadata extends \Google\Protobuf\Internal\Message { /** * The name of the glossary that is being created. * * Generated from protobuf field string name = 1; */ private $name = ''; /** * The current state of the glossary creation operation. * * Generated from protobuf field .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; */ private $state = 0; /** * The time when the operation was submitted to the server. * * Generated from protobuf field .google.protobuf.Timestamp submit_time = 3; */ private $submit_time = null; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $name * The name of the glossary that is being created. * @type int $state * The current state of the glossary creation operation. * @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 name of the glossary that is being created. * * Generated from protobuf field string name = 1; * @return string */ public function getName() { return $this->name; } /** * The name of the glossary that is being created. * * Generated from protobuf field string name = 1; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * The current state of the glossary creation operation. * * Generated from protobuf field .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; * @return int */ public function getState() { return $this->state; } /** * The current state of the glossary creation operation. * * Generated from protobuf field .google.cloud.translation.v3.CreateGlossaryMetadata.State state = 2; * @param int $var * @return $this */ public function setState($var) { GPBUtil::checkEnum($var, \Google\Cloud\Translate\V3\CreateGlossaryMetadata\State::class); $this->state = $var; return $this; } /** * The time when the operation was submitted to the server. * * Generated from protobuf field .google.protobuf.Timestamp submit_time = 3; * @return \Google\Protobuf\Timestamp */ public function getSubmitTime() { return isset($this->submit_time) ? $this->submit_time : null; } 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 .google.protobuf.Timestamp submit_time = 3; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setSubmitTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->submit_time = $var; return $this; } }