Output only . The resource ID of the annotation spec that this annotation pertains to. The annotation spec comes from either an ancestor dataset, or the dataset that was used to train the model in use.
↳ display_name
string
Output only. The value ofdisplay_namewhen the model was trained. Because this field returns a value at model training time, for different models trained using the same dataset, the returned value could be different as model owner could update thedisplay_namebetween any two model training.
Output only . The resource ID of the annotation spec that
this annotation pertains to. The annotation spec comes from either an
ancestor dataset, or the dataset that was used to train the model in use.
Returns
Type
Description
string
setAnnotationSpecId
Output only . The resource ID of the annotation spec that
this annotation pertains to. The annotation spec comes from either an
ancestor dataset, or the dataset that was used to train the model in use.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getDisplayName
Output only. The value ofdisplay_namewhen the model was trained. Because this field returns a value at model
training time, for different models trained using the same dataset, the
returned value could be different as model owner could update thedisplay_namebetween any two model training.
Returns
Type
Description
string
setDisplayName
Output only. The value ofdisplay_namewhen the model was trained. Because this field returns a value at model
training time, for different models trained using the same dataset, the
returned value could be different as model owner could update thedisplay_namebetween any two model training.
[[["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 AnnotationPayload (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-automl/latest/V1.AnnotationPayload)\n- [2.0.4](/php/docs/reference/cloud-automl/2.0.4/V1.AnnotationPayload)\n- [1.6.5](/php/docs/reference/cloud-automl/1.6.5/V1.AnnotationPayload)\n- [1.5.4](/php/docs/reference/cloud-automl/1.5.4/V1.AnnotationPayload)\n- [1.4.17](/php/docs/reference/cloud-automl/1.4.17/V1.AnnotationPayload) \nReference documentation and code samples for the Cloud AutoML V1 Client class AnnotationPayload.\n\nContains annotation information that is relevant to AutoML.\n\nGenerated from protobuf message `google.cloud.automl.v1.AnnotationPayload`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ AutoMl \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getTranslation\n\nAnnotation details for translation.\n\n### hasTranslation\n\n### setTranslation\n\nAnnotation details for translation.\n\n### getClassification\n\nAnnotation details for content or image classification.\n\n### hasClassification\n\n### setClassification\n\nAnnotation details for content or image classification.\n\n### getImageObjectDetection\n\nAnnotation details for image object detection.\n\n### hasImageObjectDetection\n\n### setImageObjectDetection\n\nAnnotation details for image object detection.\n\n### getTextExtraction\n\nAnnotation details for text extraction.\n\n### hasTextExtraction\n\n### setTextExtraction\n\nAnnotation details for text extraction.\n\n### getTextSentiment\n\nAnnotation details for text sentiment.\n\n### hasTextSentiment\n\n### setTextSentiment\n\nAnnotation details for text sentiment.\n\n### getAnnotationSpecId\n\nOutput only . The resource ID of the annotation spec that\nthis annotation pertains to. The annotation spec comes from either an\nancestor dataset, or the dataset that was used to train the model in use.\n\n### setAnnotationSpecId\n\nOutput only . The resource ID of the annotation spec that\nthis annotation pertains to. The annotation spec comes from either an\nancestor dataset, or the dataset that was used to train the model in use.\n\n### getDisplayName\n\nOutput only. The value of\n[display_name](/php/docs/reference/cloud-automl/latest/V1.AnnotationSpec#_Google_Cloud_AutoMl_V1_AnnotationSpec__getDisplayName__)\nwhen the model was trained. Because this field returns a value at model\ntraining time, for different models trained using the same dataset, the\nreturned value could be different as model owner could update the\n`display_name` between any two model training.\n\n### setDisplayName\n\nOutput only. The value of\n[display_name](/php/docs/reference/cloud-automl/latest/V1.AnnotationSpec#_Google_Cloud_AutoMl_V1_AnnotationSpec__getDisplayName__)\nwhen the model was trained. Because this field returns a value at model\ntraining time, for different models trained using the same dataset, the\nreturned value could be different as model owner could update the\n`display_name` between any two model training.\n\n### getDetail"]]