Reference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::AnnotationSpec.
A definition of an annotation spec.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#display_name
defdisplay_name()->::String
Returns
(::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_]+.
#display_name=
defdisplay_name=(value)->::String
Parameter
value (::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_]+.
Returns
(::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
defexample_count()->::Integer
Returns
(::Integer) — Output only. The number of examples in the parent dataset
labeled by the annotation spec.
#example_count=
defexample_count=(value)->::Integer
Parameter
value (::Integer) — Output only. The number of examples in the parent dataset
labeled by the annotation spec.
Returns
(::Integer) — Output only. The number of examples in the parent dataset
labeled by the annotation spec.
#name
defname()->::String
Returns
(::String) — Output only. Resource name of the annotation spec.
Form:
[[["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 V1beta1 API - Class Google::Cloud::AutoML::V1beta1::AnnotationSpec (v0.14.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.1 (latest)](/ruby/docs/reference/google-cloud-automl-v1beta1/latest/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.14.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.14.0/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.13.1](/ruby/docs/reference/google-cloud-automl-v1beta1/0.13.1/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.12.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.12.0/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.11.1](/ruby/docs/reference/google-cloud-automl-v1beta1/0.11.1/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.10.2](/ruby/docs/reference/google-cloud-automl-v1beta1/0.10.2/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.9.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.9.0/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.8.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.8.0/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.7.0](/ruby/docs/reference/google-cloud-automl-v1beta1/0.7.0/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.6.1](/ruby/docs/reference/google-cloud-automl-v1beta1/0.6.1/Google-Cloud-AutoML-V1beta1-AnnotationSpec)\n- [0.5.5](/ruby/docs/reference/google-cloud-automl-v1beta1/0.5.5/Google-Cloud-AutoML-V1beta1-AnnotationSpec) \nReference documentation and code samples for the Cloud AutoML V1beta1 API class Google::Cloud::AutoML::V1beta1::AnnotationSpec.\n\nA definition of an annotation spec. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #display_name\n\n def display_name() -\u003e ::String\n\n**Returns**\n\n- (::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_]+`.\n\n### #display_name=\n\n def display_name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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_]+`. \n**Returns**\n\n- (::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_]+`.\n\n### #example_count\n\n def example_count() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Output only. The number of examples in the parent dataset labeled by the annotation spec.\n\n### #example_count=\n\n def example_count=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Output only. The number of examples in the parent dataset labeled by the annotation spec. \n**Returns**\n\n- (::Integer) --- Output only. The number of examples in the parent dataset labeled by the annotation spec.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Resource name of the annotation spec. Form:\n\n 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Output only. Resource name of the annotation spec. Form:\n\n\n'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}' \n**Returns**\n\n- (::String) --- Output only. Resource name of the annotation spec. Form:\n\n 'projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/annotationSpecs/{annotation_spec_id}'"]]