class ProjectsInstructions extends Resource (View source)

The "instructions" collection of methods.

Typical usage is:

 $datalabelingService = new Google\Service\DataLabeling(...);
 $instructions = $datalabelingService->projects_instructions;

Methods

create(string $parent, GoogleCloudDatalabelingV1beta1CreateInstructionRequest $postBody, array $optParams = [])

Creates an instruction for how data should be labeled. (instructions.create)

delete(string $name, array $optParams = [])

Deletes an instruction object by resource name. (instructions.delete)

get(string $name, array $optParams = [])

Gets an instruction by resource name. (instructions.get)

listProjectsInstructions(string $parent, array $optParams = [])

Lists instructions for a project. Pagination is supported.

Details

GoogleLongrunningOperation create(string $parent, GoogleCloudDatalabelingV1beta1CreateInstructionRequest $postBody, array $optParams = [])

Creates an instruction for how data should be labeled. (instructions.create)

Parameters

string $parent

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

GoogleCloudDatalabelingV1beta1CreateInstructionRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes an instruction object by resource name. (instructions.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleCloudDatalabelingV1beta1Instruction get(string $name, array $optParams = [])

Gets an instruction by resource name. (instructions.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1Instruction

Exceptions

Exception

GoogleCloudDatalabelingV1beta1ListInstructionsResponse listProjectsInstructions(string $parent, array $optParams = [])

Lists instructions for a project. Pagination is supported.

(instructions.listProjectsInstructions)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1ListInstructionsResponse

Exceptions

Exception