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\u003eThe \u003ccode\u003eAnnotation\u003c/code\u003e class in the Google Cloud Data Labeling v1beta1 API represents a label or set of labels associated with an example, such as in image classification.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.DataLabeling.V1Beta1\u003c/code\u003e namespace and is implemented in the \u003ccode\u003eGoogle.Cloud.DataLabeling.V1Beta1.dll\u003c/code\u003e assembly, with the latest version being 2.0.0-beta05.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAnnotation\u003c/code\u003e class provides properties like \u003ccode\u003eAnnotationMetadata\u003c/code\u003e, \u003ccode\u003eAnnotationSentiment\u003c/code\u003e, \u003ccode\u003eAnnotationSource\u003c/code\u003e, and \u003ccode\u003eAnnotationValue\u003c/code\u003e to store information about the annotation, its sentiment, origin, and value, respectively.\u003c/p\u003e\n"],["\u003cp\u003eIt includes two constructors, one default and another that accepts an \u003ccode\u003eAnnotation\u003c/code\u003e object for cloning, and implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, and \u003ccode\u003eIDeepCloneable\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has a name property, where the name is a unique string identifying this annotation within a specific project, dataset, and example.\u003c/p\u003e\n"]]],[],null,[]]