Skip to main content

Interface: IAnnotation

protobuf.GeneratedCodeInfo.IAnnotation

Properties of an Annotation.

Implemented by

Properties

begin

Optional begin: null | number

Identifies the starting offset in bytes in the generated code that relates to the identified object.


end

Optional end: null | number

Identifies the ending offset in bytes in the generated code that relates to the identified object. The end offset should be one past the last relevant byte (so the length of the text = end - begin).


path

Optional path: null | number[]

Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.


semantic

Optional semantic: null | Semantic

Annotation semantic


sourceFile

Optional sourceFile: null | string

Identifies the filesystem path to the original source .proto.