Cloud Translation V3 Client - Class CreateDatasetRequest (1.18.1)

Reference documentation and code samples for the Cloud Translation V3 Client class CreateDatasetRequest.

Request message for CreateDataset.

Generated from protobuf message google.cloud.translation.v3.CreateDatasetRequest

Namespace

Google \ Cloud \ Translate \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The project name.

↳ dataset Google\Cloud\Translate\V3\Dataset

Required. The Dataset to create.

getParent

Required. The project name.

Returns
Type Description
string

setParent

Required. The project name.

Parameter
Name Description
var string
Returns
Type Description
$this

getDataset

Required. The Dataset to create.

Returns
Type Description
Google\Cloud\Translate\V3\Dataset|null

hasDataset

clearDataset

setDataset

Required. The Dataset to create.

Parameter
Name Description
var Google\Cloud\Translate\V3\Dataset
Returns
Type Description
$this

static::build

Parameters
Name Description
parent string

Required. The project name. Please see Google\Cloud\Translate\V3\TranslationServiceClient::locationName() for help formatting this field.

dataset Google\Cloud\Translate\V3\Dataset

Required. The Dataset to create.

Returns
Type Description
Google\Cloud\Translate\V3\CreateDatasetRequest