Google Cloud Datalabeling V1beta1 Client - Class AnnotationSpecSet (0.5.3)

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

An AnnotationSpecSet is a collection of label definitions. For example, in image classification tasks, you define a set of possible labels for images as an AnnotationSpecSet. An AnnotationSpecSet is immutable upon creation.

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

Namespace

Google \ Cloud \ DataLabeling \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"

↳ display_name string

Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.

↳ description string

Optional. User-provided description of the annotation specification set. The description can be up to 10,000 characters long.

↳ annotation_specs array<Google\Cloud\DataLabeling\V1beta1\AnnotationSpec>

Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.

↳ blocking_resources array

Output only. The names of any related resources that are blocking changes to the annotation spec set.

getName

Output only. The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"

Returns
TypeDescription
string

setName

Output only. The AnnotationSpecSet resource name in the following format: "projects/{project_id}/annotationSpecSets/{annotation_spec_set_id}"

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.

Returns
TypeDescription
string

setDisplayName

Required. The display name for AnnotationSpecSet that you define when you create it. Maximum of 64 characters.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDescription

Optional. User-provided description of the annotation specification set.

The description can be up to 10,000 characters long.

Returns
TypeDescription
string

setDescription

Optional. User-provided description of the annotation specification set.

The description can be up to 10,000 characters long.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getAnnotationSpecs

Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAnnotationSpecs

Required. The array of AnnotationSpecs that you define when you create the AnnotationSpecSet. These are the possible labels for the labeling task.

Parameter
NameDescription
var array<Google\Cloud\DataLabeling\V1beta1\AnnotationSpec>
Returns
TypeDescription
$this

getBlockingResources

Output only. The names of any related resources that are blocking changes to the annotation spec set.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBlockingResources

Output only. The names of any related resources that are blocking changes to the annotation spec set.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this