Cloud AutoML V1 Client - Class AnnotationSpec (1.4.17)

Reference documentation and code samples for the Cloud AutoML V1 Client class AnnotationSpec.

A definition of an annotation spec.

Generated from protobuf message google.cloud.automl.v1.AnnotationSpec

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

Output only. Resource name of the annotation spec. Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'

↳ display_name string

Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp [a-zA-Z0-9_]+.

↳ example_count int

Output only. The number of examples in the parent dataset labeled by the annotation spec.

getName

Output only. Resource name of the annotation spec.

Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'

Returns
TypeDescription
string

setName

Output only. Resource name of the annotation spec.

Form: 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDisplayName

Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp [a-zA-Z0-9_]+.

Returns
TypeDescription
string

setDisplayName

Required. The name of the annotation spec to show in the interface. The name can be up to 32 characters long and must match the regexp [a-zA-Z0-9_]+.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExampleCount

Output only. The number of examples in the parent dataset labeled by the annotation spec.

Returns
TypeDescription
int

setExampleCount

Output only. The number of examples in the parent dataset labeled by the annotation spec.

Parameter
NameDescription
var int
Returns
TypeDescription
$this