public sealed class AnnotationSpec : IMessage<AnnotationSpec>, IEquatable<AnnotationSpec>, IDeepCloneable<AnnotationSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Data Labeling v1beta1 API class AnnotationSpec.
Container of information related to one possible annotation that can be used
in a labeling task. For example, an image classification task where images
are labeled as dog or cat must reference an AnnotationSpec for dog and
an AnnotationSpec for cat.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eAnnotationSpec\u003c/code\u003e class, part of the Google Cloud Data Labeling v1beta1 API, serves as a container for information related to a possible annotation in a labeling task.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities for working with the annotation data.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAnnotationSpec\u003c/code\u003e offers two constructors: a default constructor and one that creates a copy from another \u003ccode\u003eAnnotationSpec\u003c/code\u003e object.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDescription\u003c/code\u003e and \u003ccode\u003eDisplayName\u003c/code\u003e properties of the \u003ccode\u003eAnnotationSpec\u003c/code\u003e class allow for optional user-provided details and a required display name, respectively, for the annotation specification.\u003c/p\u003e\n"],["\u003cp\u003eThere are 3 different versions of the \u003ccode\u003eAnnotationSpec\u003c/code\u003e available, with version 2.0.0-beta05 being the latest.\u003c/p\u003e\n"]]],[],null,[]]