[[["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-08-28 UTC."],[],[],null,["# Class protos.google.protobuf.GeneratedCodeInfo.Annotation (5.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [5.5.0 (latest)](/nodejs/docs/reference/asset/latest/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [5.3.0](/nodejs/docs/reference/asset/5.3.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [5.2.0](/nodejs/docs/reference/asset/5.2.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [5.1.0](/nodejs/docs/reference/asset/5.1.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [5.0.1](/nodejs/docs/reference/asset/5.0.1/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [4.6.3](/nodejs/docs/reference/asset/4.6.3/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [4.5.0](/nodejs/docs/reference/asset/4.5.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [4.4.0](/nodejs/docs/reference/asset/4.4.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [4.3.0](/nodejs/docs/reference/asset/4.3.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [4.2.0](/nodejs/docs/reference/asset/4.2.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [4.1.0](/nodejs/docs/reference/asset/4.1.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.23.1](/nodejs/docs/reference/asset/3.23.1/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.22.0](/nodejs/docs/reference/asset/3.22.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.21.0](/nodejs/docs/reference/asset/3.21.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.20.0](/nodejs/docs/reference/asset/3.20.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.19.0](/nodejs/docs/reference/asset/3.19.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.18.0](/nodejs/docs/reference/asset/3.18.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.17.0](/nodejs/docs/reference/asset/3.17.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.16.1](/nodejs/docs/reference/asset/3.16.1/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.15.5](/nodejs/docs/reference/asset/3.15.5/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.14.1](/nodejs/docs/reference/asset/3.14.1/asset/protos.google.protobuf.generatedcodeinfo.annotation-class)\n- [3.13.0](/nodejs/docs/reference/asset/3.13.0/asset/protos.google.protobuf.generatedcodeinfo.annotation-class) \nRepresents an Annotation.\n\nPackage\n-------\n\n[@google-cloud/asset](../overview.html)\n\nConstructors\n------------\n\n### (constructor)(properties)\n\n constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);\n\nConstructs a new Annotation.\n\nProperties\n----------\n\n### begin\n\n public begin: number;\n\nAnnotation begin.\n\n### end\n\n public end: number;\n\nAnnotation end.\n\n### path\n\n public path: number[];\n\nAnnotation path.\n\n### semantic\n\n public semantic: (google.protobuf.GeneratedCodeInfo.Annotation.Semantic|keyof typeof google.protobuf.GeneratedCodeInfo.Annotation.Semantic);\n\nAnnotation semantic.\n\n### sourceFile\n\n public sourceFile: string;\n\nAnnotation sourceFile.\n\nMethods\n-------\n\n### create(properties)\n\n public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;\n\nCreates a new Annotation instance using the specified properties.\n\n### decode(reader, length)\n\n public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;\n\nDecodes an Annotation message from the specified reader or buffer.\n\n### decodeDelimited(reader)\n\n public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;\n\nDecodes an Annotation message from the specified reader or buffer, length delimited.\n\n### encode(message, writer)\n\n public static encode(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;\n\nEncodes the specified Annotation message. Does not implicitly messages.\n\n### encodeDelimited(message, writer)\n\n public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.IAnnotation, writer?: $protobuf.Writer): $protobuf.Writer;\n\nEncodes the specified Annotation message, length delimited. Does not implicitly messages.\n\n### fromObject(object)\n\n public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;\n\nCreates an Annotation message from a plain object. Also converts values to their respective internal types.\n\n### getTypeUrl(typeUrlPrefix)\n\n public static getTypeUrl(typeUrlPrefix?: string): string;\n\nGets the default type url for Annotation\n\n### toJSON()\n\n public toJSON(): { [k: string]: any };\n\nConverts this Annotation to JSON.\n\n### toObject(message, options)\n\n public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };\n\nCreates a plain object from an Annotation message. Also converts values to other types if specified.\n\n### verify(message)\n\n public static verify(message: { [k: string]: any }): (string|null);\n\nVerifies an Annotation message."]]