google.cloud.batch.v1.GetTaskRequest
*/
class GetTaskRequest extends \Google\Protobuf\Internal\Message
{
/**
* Required. Task name.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
protected $name = '';
/**
* @param string $name Required. Task name. Please see
* {@see BatchServiceClient::taskName()} for help formatting this field.
*
* @return \Google\Cloud\Batch\V1\GetTaskRequest
*
* @experimental
*/
public static function build(string $name): self
{
return (new self())
->setName($name);
}
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $name
* Required. Task name.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Google\Cloud\Batch\V1\Batch::initOnce();
parent::__construct($data);
}
/**
* Required. Task name.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Required. Task name.
*
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
}