Interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder (3.19.4)

public static interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getBegin()

public abstract int getBegin()

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

optional int32 begin = 3;

Returns
TypeDescription
int

The begin.

getEnd()

public abstract int getEnd()

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

optional int32 end = 4;

Returns
TypeDescription
int

The end.

getPath(int index)

public abstract int getPath(int index)

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

repeated int32 path = 1 [packed = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The path at the given index.

getPathCount()

public abstract int getPathCount()

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

repeated int32 path = 1 [packed = true];

Returns
TypeDescription
int

The count of path.

getPathList()

public abstract List<Integer> getPathList()

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

repeated int32 path = 1 [packed = true];

Returns
TypeDescription
List<Integer>

A list containing the path.

getSourceFile()

public abstract String getSourceFile()

Identifies the filesystem path to the original source .proto.

optional string source_file = 2;

Returns
TypeDescription
String

The sourceFile.

getSourceFileBytes()

public abstract ByteString getSourceFileBytes()

Identifies the filesystem path to the original source .proto.

optional string source_file = 2;

Returns
TypeDescription
ByteString

The bytes for sourceFile.

hasBegin()

public abstract boolean hasBegin()

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

optional int32 begin = 3;

Returns
TypeDescription
boolean

Whether the begin field is set.

hasEnd()

public abstract boolean hasEnd()

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

optional int32 end = 4;

Returns
TypeDescription
boolean

Whether the end field is set.

hasSourceFile()

public abstract boolean hasSourceFile()

Identifies the filesystem path to the original source .proto.

optional string source_file = 2;

Returns
TypeDescription
boolean

Whether the sourceFile field is set.