Annotation

interface Annotation(source)

Types

Link copied to clipboard
sealed class Semantic(val number: Int)

Represents the identified object's effect on the element in the original .proto file.

Properties

Link copied to clipboard
abstract val begin: Int

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

Link copied to clipboard

Returns the value of the begin field if present, otherwise null.

Link copied to clipboard
abstract val end: Int

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).

Link copied to clipboard

Returns the value of the end field if present, otherwise null.

Link copied to clipboard
abstract val path: List<Int>

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Returns the value of the semantic field if present, otherwise null.

Link copied to clipboard
abstract val sourceFile: String

Identifies the filesystem path to the original source .proto.

Link copied to clipboard

Returns the value of the sourceFile field if present, otherwise null.

Functions

Link copied to clipboard
fun GeneratedCodeInfo.Annotation.copy(body: ERROR CLASS: Symbol not found for GeneratedCodeInfo.Annotation.Builder.() -> Unit = {}): GeneratedCodeInfo.Annotation

Copies the original message, including unknown fields.