Google Cloud Datalabeling V1beta1 Client - Class Instruction (0.4.2)

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

Instruction of how to perform the labeling task for human operators.

Currently only PDF instruction is supported.

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}

↳ display_name string

Required. The display name of the instruction. Maximum of 64 characters.

↳ description string

Optional. User-provided description of the instruction. The description can be up to 10000 characters long.

↳ create_time Google\Protobuf\Timestamp

Output only. Creation time of instruction.

↳ update_time Google\Protobuf\Timestamp

Output only. Last update time of instruction.

↳ data_type int

Required. The data type of this instruction.

↳ csv_instruction Google\Cloud\DataLabeling\V1beta1\CsvInstruction

Deprecated: this instruction format is not supported any more. Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format: * The first column is labeled data, such as an image reference, text. * The second column is comma separated labels associated with data.

↳ pdf_instruction Google\Cloud\DataLabeling\V1beta1\PdfInstruction

Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.

↳ blocking_resources array

Output only. The names of any related resources that are blocking changes to the instruction.

getName

Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}

Returns
TypeDescription
string

setName

Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The display name of the instruction. Maximum of 64 characters.

Returns
TypeDescription
string

setDisplayName

Required. The display name of the instruction. Maximum of 64 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. User-provided description of the instruction.

The description can be up to 10000 characters long.

Returns
TypeDescription
string

setDescription

Optional. User-provided description of the instruction.

The description can be up to 10000 characters long.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. Creation time of instruction.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Creation time of instruction.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. Last update time of instruction.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. Last update time of instruction.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDataType

Required. The data type of this instruction.

Returns
TypeDescription
int

setDataType

Required. The data type of this instruction.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCsvInstruction

Deprecated: this instruction format is not supported any more.

Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format:

  • The first column is labeled data, such as an image reference, text.
  • The second column is comma separated labels associated with data.
Returns
TypeDescription
Google\Cloud\DataLabeling\V1beta1\CsvInstruction|null

hasCsvInstruction

clearCsvInstruction

setCsvInstruction

Deprecated: this instruction format is not supported any more.

Instruction from a CSV file, such as for classification task. The CSV file should have exact two columns, in the following format:

  • The first column is labeled data, such as an image reference, text.
  • The second column is comma separated labels associated with data.
Parameter
NameDescription
var Google\Cloud\DataLabeling\V1beta1\CsvInstruction
Returns
TypeDescription
$this

getPdfInstruction

Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.

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

hasPdfInstruction

clearPdfInstruction

setPdfInstruction

Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.

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

getBlockingResources

Output only. The names of any related resources that are blocking changes to the instruction.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBlockingResources

Output only. The names of any related resources that are blocking changes to the instruction.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this