Dialogflow/src/V2/CreateEntityTypeRequest.php
public function setEntityType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\EntityType::class);
        $this->entity_type = $var;

        return $this;
    }
public function setEntityType($var)
    {
        GPBUtil::checkMessage($var, \Google\Cloud\Dialogflow\V2\EntityType::class);
        $this->entity_type = $var;

        return $this;
    }
public function setEntityType ( $ var ) { GPBUtil :: checkMessage ( $ var , \ Google \ Cloud \ Dialogflow \ V2 \ EntityType :: class ) ; $ this -> entity_type = $ var ; return $ this ; }
Required. The entity type to create.

Generated from protobuf field <code>.google.cloud.dialogflow.v2.EntityType entity_type = 2;</code>
@param \Google\Cloud\Dialogflow\V2\EntityType $var
@return $this
Required . The entity type to create .