class ProjectsAnnotationSpecSets extends Resource (View source)

The "annotationSpecSets" collection of methods.

Typical usage is:

 $datalabelingService = new Google\Service\DataLabeling(...);
 $annotationSpecSets = $datalabelingService->projects_annotationSpecSets;

Methods

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

Creates an annotation spec set by providing a set of labels.

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

Deletes an annotation spec set by resource name. (annotationSpecSets.delete)

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

Gets an annotation spec set by resource name. (annotationSpecSets.get)

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

Lists annotation spec sets for a project. Pagination is supported.

Details

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

Creates an annotation spec set by providing a set of labels.

(annotationSpecSets.create)

Parameters

string $parent

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

GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1AnnotationSpecSet

Exceptions

Exception

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

Deletes an annotation spec set by resource name. (annotationSpecSets.delete)

Parameters

string $name

Required. AnnotationSpec resource name, format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}.

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

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

Gets an annotation spec set by resource name. (annotationSpecSets.get)

Parameters

string $name

Required. AnnotationSpecSet resource name, format: projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1AnnotationSpecSet

Exceptions

Exception

GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse listProjectsAnnotationSpecSets(string $parent, array $optParams = [])

Lists annotation spec sets for a project. Pagination is supported.

(annotationSpecSets.listProjectsAnnotationSpecSets)

Parameters

string $parent

Required. Parent of AnnotationSpecSet resource, format: projects/{project_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse

Exceptions

Exception