Package com.google.protobuf
Class DescriptorProtos.GeneratedCodeInfo.Annotation
java.lang.Object
com.google.protobuf.AbstractMessageLite<MessageType,BuilderType>
com.google.protobuf.GeneratedMessageLite<DescriptorProtos.GeneratedCodeInfo.Annotation,DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation
- All Implemented Interfaces:
DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder
- Enclosing class:
- DescriptorProtos.GeneratedCodeInfo
public static final class DescriptorProtos.GeneratedCodeInfo.Annotation
extends com.google.protobuf.GeneratedMessageLite<DescriptorProtos.GeneratedCodeInfo.Annotation,DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
implements DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
Protobuf type
google.protobuf.GeneratedCodeInfo.Annotation-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProtobuf typegoogle.protobuf.GeneratedCodeInfo.Annotationstatic enumRepresents the identified object's effect on the element in the original .proto file.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageLite
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite, Type extends Object>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionprotected final ObjectdynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) intgetBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.intgetEnd()Identifies the ending offset in bytes in the generated code that relates to the identified object.intgetPath(int index) Identifies the element in the original source .proto file.intIdentifies the element in the original source .proto file.Identifies the element in the original source .proto file.optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];Identifies the filesystem path to the original source .proto.com.google.protobuf.ByteStringIdentifies the filesystem path to the original source .proto.booleanhasBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.booleanhasEnd()Identifies the ending offset in bytes in the generated code that relates to the identified object.booleanoptional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];booleanIdentifies the filesystem path to the original source .proto.parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>parser()Methods inherited from class com.google.protobuf.GeneratedMessageLite
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Field Details
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
SOURCE_FILE_FIELD_NUMBER
public static final int SOURCE_FILE_FIELD_NUMBER- See Also:
-
BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER- See Also:
-
END_FIELD_NUMBER
public static final int END_FIELD_NUMBER- See Also:
-
SEMANTIC_FIELD_NUMBER
public static final int SEMANTIC_FIELD_NUMBER- See Also:
-
-
Method Details
-
getPathList
Identifies the element in the original source .proto file. This field is formatted the same as SourceCodeInfo.Location.path.
repeated int32 path = 1 [json_name = "path", packed = true];- Specified by:
getPathListin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- A list containing the path.
-
getPathCount
public 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 [json_name = "path", packed = true];- Specified by:
getPathCountin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The count of path.
-
getPath
public 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 [json_name = "path", packed = true];- Specified by:
getPathin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The path at the given index.
-
hasSourceFile
public boolean hasSourceFile()Identifies the filesystem path to the original source .proto.
optional string source_file = 2 [json_name = "sourceFile"];- Specified by:
hasSourceFilein interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- Whether the sourceFile field is set.
-
getSourceFile
Identifies the filesystem path to the original source .proto.
optional string source_file = 2 [json_name = "sourceFile"];- Specified by:
getSourceFilein interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The sourceFile.
-
getSourceFileBytes
public com.google.protobuf.ByteString getSourceFileBytes()Identifies the filesystem path to the original source .proto.
optional string source_file = 2 [json_name = "sourceFile"];- Specified by:
getSourceFileBytesin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The bytes for sourceFile.
-
hasBegin
public boolean hasBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3 [json_name = "begin"];- Specified by:
hasBeginin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- Whether the begin field is set.
-
getBegin
public int getBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3 [json_name = "begin"];- Specified by:
getBeginin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The begin.
-
hasEnd
public 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 [json_name = "end"];- Specified by:
hasEndin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- Whether the end field is set.
-
getEnd
public 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 [json_name = "end"];- Specified by:
getEndin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The end.
-
hasSemantic
public boolean hasSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];- Specified by:
hasSemanticin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- Whether the semantic field is set.
-
getSemantic
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];- Specified by:
getSemanticin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The semantic.
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype) -
dynamicMethod
protected final Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) - Specified by:
dynamicMethodin classcom.google.protobuf.GeneratedMessageLite<DescriptorProtos.GeneratedCodeInfo.Annotation,DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
-
getDefaultInstance
-
parser
-