public sealed class Annotation : IMessage<Annotation>, IEquatable<Annotation>, IDeepCloneable<Annotation>, IBufferMessage, IMessage
Reference documentation and code samples for the Data Labeling v1beta1 API class Annotation.
Annotation for Example. Each example may have one or more annotations. For
example in image classification problem, each image might have one or more
labels. We call labels binded with this image an Annotation.
[[["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\u003eThis documentation is for the \u003ccode\u003eAnnotation\u003c/code\u003e class within the Google Cloud Data Labeling v1beta1 API, specifically version 2.0.0-beta04.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnnotation\u003c/code\u003e class is used to represent labels or other data associated with examples, such as images in classification problems, and it implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers properties such as \u003ccode\u003eAnnotationMetadata\u003c/code\u003e, \u003ccode\u003eAnnotationSentiment\u003c/code\u003e, \u003ccode\u003eAnnotationSource\u003c/code\u003e, and \u003ccode\u003eAnnotationValue\u003c/code\u003e to provide details on the annotation, including its origin, sentiment, metadata, and the actual value.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eName\u003c/code\u003e property provides a unique identifier for the annotation.\u003c/p\u003e\n"],["\u003cp\u003eThis class has two constructors, a default one \u003ccode\u003eAnnotation()\u003c/code\u003e, and another \u003ccode\u003eAnnotation(Annotation other)\u003c/code\u003e that takes another \u003ccode\u003eAnnotation\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]