google.cloud.dialogflow.v2.BatchUpdateEntitiesRequest */ class BatchUpdateEntitiesRequest extends \Google\Protobuf\Internal\Message { /** * Required. The name of the entity type to update the entities in. Format: * `projects//agent/entityTypes/`. * * Generated from protobuf field string parent = 1; */ private $parent = ''; /** * Required. The collection of new entities to replace the existing entities. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; */ private $entities; /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. * [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. * * Generated from protobuf field string language_code = 3; */ private $language_code = ''; /** * Optional. The mask to control which fields get updated. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4; */ private $update_mask = null; public function __construct() { \GPBMetadata\Google\Cloud\Dialogflow\V2\EntityType::initOnce(); parent::__construct(); } /** * Required. The name of the entity type to update the entities in. Format: * `projects//agent/entityTypes/`. * * Generated from protobuf field string parent = 1; * @return string */ public function getParent() { return $this->parent; } /** * Required. The name of the entity type to update the entities in. Format: * `projects//agent/entityTypes/`. * * Generated from protobuf field string parent = 1; * @param string $var * @return $this */ public function setParent($var) { GPBUtil::checkString($var, True); $this->parent = $var; return $this; } /** * Required. The collection of new entities to replace the existing entities. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getEntities() { return $this->entities; } /** * Required. The collection of new entities to replace the existing entities. * * Generated from protobuf field repeated .google.cloud.dialogflow.v2.EntityType.Entity entities = 2; * @param \Google\Cloud\Dialogflow\V2\EntityType_Entity[]|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ public function setEntities($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Cloud\Dialogflow\V2\EntityType_Entity::class); $this->entities = $arr; return $this; } /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. * [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. * * Generated from protobuf field string language_code = 3; * @return string */ public function getLanguageCode() { return $this->language_code; } /** * Optional. The language of entity synonyms defined in `entities`. If not * specified, the agent's default language is used. * [More than a dozen * languages](https://dialogflow.com/docs/reference/language) are supported. * Note: languages must be enabled in the agent, before they can be used. * * Generated from protobuf field string language_code = 3; * @param string $var * @return $this */ public function setLanguageCode($var) { GPBUtil::checkString($var, True); $this->language_code = $var; return $this; } /** * Optional. The mask to control which fields get updated. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4; * @return \Google\Protobuf\FieldMask */ public function getUpdateMask() { return $this->update_mask; } /** * Optional. The mask to control which fields get updated. * * Generated from protobuf field .google.protobuf.FieldMask update_mask = 4; * @param \Google\Protobuf\FieldMask $var * @return $this */ public function setUpdateMask($var) { GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); $this->update_mask = $var; return $this; } }