public static interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
index | int The index of the element to return. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
String | The sourceFile. |
getSourceFileBytes()
public abstract ByteString getSourceFileBytes()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
boolean | Whether the sourceFile field is set. |