Class Instruction (1.5.2)

Instruction(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Instruction of how to perform the labeling task for human operators. Currently only PDF instruction is supported.

Attributes

NameDescription
name str
Output only. Instruction resource name, format: projects/{project_id}/instructions/{instruction_id}
display_name str
Required. The display name of the instruction. Maximum of 64 characters.
description str
Optional. User-provided description of the instruction. The description can be up to 10000 characters long.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Creation time of instruction.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Last update time of instruction.
data_type google.cloud.datalabeling_v1beta1.types.DataType
Required. The data type of this instruction.
csv_instruction google.cloud.datalabeling_v1beta1.types.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.types.PdfInstruction
Instruction from a PDF document. The PDF should be in a Cloud Storage bucket.
blocking_resources Sequence[str]
Output only. The names of any related resources that are blocking changes to the instruction.