Package com.google.protobuf
Interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
-
- All Superinterfaces:
MessageLiteOrBuilder
- All Known Implementing Classes:
DescriptorProtos.GeneratedCodeInfo.Annotation
,DescriptorProtos.GeneratedCodeInfo.Annotation.Builder
- Enclosing class:
- DescriptorProtos.GeneratedCodeInfo
public static interface DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder extends MessageLiteOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.int
getEnd()
Identifies the ending offset in bytes in the generated code that relates to the identified object.int
getPath(int index)
Identifies the element in the original source .proto file.int
getPathCount()
Identifies the element in the original source .proto file.java.util.List<java.lang.Integer>
getPathList()
Identifies the element in the original source .proto file.DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic
getSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
java.lang.String
getSourceFile()
Identifies the filesystem path to the original source .proto.ByteString
getSourceFileBytes()
Identifies the filesystem path to the original source .proto.boolean
hasBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.boolean
hasEnd()
Identifies the ending offset in bytes in the generated code that relates to the identified object.boolean
hasSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
boolean
hasSourceFile()
Identifies the filesystem path to the original source .proto.-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Method Detail
-
getPathList
java.util.List<java.lang.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:
- A list containing the path.
-
getPathCount
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:
- The count of path.
-
getPath
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];
- Parameters:
index
- The index of the element to return.- Returns:
- The path at the given index.
-
hasSourceFile
boolean hasSourceFile()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
- Returns:
- Whether the sourceFile field is set.
-
getSourceFile
java.lang.String getSourceFile()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
- Returns:
- The sourceFile.
-
getSourceFileBytes
ByteString getSourceFileBytes()
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;
- Returns:
- The bytes for sourceFile.
-
hasBegin
boolean hasBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;
- Returns:
- Whether the begin field is set.
-
getBegin
int getBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;
- Returns:
- The begin.
-
hasEnd
boolean hasEnd()
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).
optional int32 end = 4;
- Returns:
- Whether the end field is set.
-
getEnd
int getEnd()
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).
optional int32 end = 4;
- Returns:
- The end.
-
hasSemantic
boolean hasSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
- Returns:
- Whether the semantic field is set.
-
getSemantic
DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic getSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
- Returns:
- The semantic.
-
-