Google Cloud Datalabeling V1beta1 Client - Class CreateInstructionRequest (0.4.1)

Reference documentation and code samples for the Google Cloud Datalabeling V1beta1 Client class CreateInstructionRequest.

Request message for CreateInstruction.

Generated from protobuf message google.cloud.datalabeling.v1beta1.CreateInstructionRequest

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ parent string

Required. Instruction resource parent, format: projects/{project_id}

↳ instruction Google\Cloud\DataLabeling\V1beta1\Instruction

Required. Instruction of how to perform the labeling task.

getParent

Required. Instruction resource parent, format: projects/{project_id}

Returns
TypeDescription
string

setParent

Required. Instruction resource parent, format: projects/{project_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getInstruction

Required. Instruction of how to perform the labeling task.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\Instruction|null

hasInstruction

clearInstruction

setInstruction

Required. Instruction of how to perform the labeling task.

Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\Instruction
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
parent string

Required. Instruction resource parent, format: projects/{project_id} Please see Google\Cloud\DataLabeling\V1beta1\DataLabelingServiceClient::projectName() for help formatting this field.

instruction Google\Cloud\DataLabeling\V1beta1\Instruction

Required. Instruction of how to perform the labeling task.

Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\CreateInstructionRequest