Cloud AutoML V1 Client - Class AnnotationSpec (2.0.3)

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

Namespace

Google \ Cloud \ AutoMl \ V1

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
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
Name Description
var string
Returns
Type Description
$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
Type Description
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
Name Description
var string
Returns
Type Description
$this

getExampleCount

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

Returns
Type Description
int

setExampleCount

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

Parameter
Name Description
var int
Returns
Type Description
$this