Reference documentation and code samples for the Cloud AutoML V1 Client class AnnotationSpec.
A definition of an annotation spec.
Generated from protobuf messagegoogle.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud AutoML V1 Client - Class AnnotationSpec (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.AnnotationSpec)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.AnnotationSpec)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.AnnotationSpec)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.AnnotationSpec)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.AnnotationSpec) \nReference documentation and code samples for the Cloud AutoML V1 Client class AnnotationSpec.\n\nA definition of an annotation spec.\n\nGenerated from protobuf message `google.cloud.automl.v1.AnnotationSpec`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. Resource name of the annotation spec.\n\nForm:\n'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'\n\n### setName\n\nOutput only. Resource name of the annotation spec.\n\nForm:\n'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'\n\n### getDisplayName\n\nRequired. The name of the annotation spec to show in the interface. The name can be\nup to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.\n\n### setDisplayName\n\nRequired. The name of the annotation spec to show in the interface. The name can be\nup to 32 characters long and must match the regexp `[a-zA-Z0-9_]+`.\n\n### getExampleCount\n\nOutput only. The number of examples in the parent dataset\nlabeled by the annotation spec.\n\n### setExampleCount\n\nOutput only. The number of examples in the parent dataset\nlabeled by the annotation spec."]]