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/UpdateGlossaryRequest.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; /** * Request message for the update glossary flow * * Generated from protobuf message <code>google.cloud.translation.v3.UpdateGlossaryRequest</code> */ class UpdateGlossaryRequest extends \Google\Protobuf\Internal\Message { /** * Required. The glossary entry to update. * * Generated from protobuf field <code>.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];</code> */ private $glossary = null; /** * The list of fields to be updated. Currently only `display_name` and * 'input_config' * * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code> */ private $update_mask = null; /** * @param \Google\Cloud\Translate\V3\Glossary $glossary Required. The glossary entry to update. * @param \Google\Protobuf\FieldMask $updateMask The list of fields to be updated. Currently only `display_name` and * 'input_config' * * @return \Google\Cloud\Translate\V3\UpdateGlossaryRequest * * @experimental */ public static function build(\Google\Cloud\Translate\V3\Glossary $glossary, \Google\Protobuf\FieldMask $updateMask): self { return (new self()) ->setGlossary($glossary) ->setUpdateMask($updateMask); } /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type \Google\Cloud\Translate\V3\Glossary $glossary * Required. The glossary entry to update. * @type \Google\Protobuf\FieldMask $update_mask * The list of fields to be updated. Currently only `display_name` and * 'input_config' * } */ public function __construct($data = NULL) { \GPBMetadata\Google\Cloud\Translate\V3\TranslationService::initOnce(); parent::__construct($data); } /** * Required. The glossary entry to update. * * Generated from protobuf field <code>.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];</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); } /** * Required. The glossary entry to update. * * Generated from protobuf field <code>.google.cloud.translation.v3.Glossary glossary = 1 [(.google.api.field_behavior) = REQUIRED];</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 list of fields to be updated. Currently only `display_name` and * 'input_config' * * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code> * @return \Google\Protobuf\FieldMask|null */ public function getUpdateMask() { return $this->update_mask; } public function hasUpdateMask() { return isset($this->update_mask); } public function clearUpdateMask() { unset($this->update_mask); } /** * The list of fields to be updated. Currently only `display_name` and * 'input_config' * * Generated from protobuf field <code>.google.protobuf.FieldMask update_mask = 2;</code> * @param \Google\Protobuf\FieldMask $var * @return $this */ public function setUpdateMask($var) { GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); $this->update_mask = $var; return $this; } }
Copyright ©2021 || Defacer Indonesia