Package com.google.protobuf
Class DescriptorProtos.GeneratedCodeInfo.Annotation
java.lang.Object
com.google.protobuf.AbstractMessageLite<DescriptorProtos.GeneratedCodeInfo.Annotation,DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
com.google.protobuf.GeneratedMessageLite<DescriptorProtos.GeneratedCodeInfo.Annotation,DescriptorProtos.GeneratedCodeInfo.Annotation.Builder>
com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation
- All Implemented Interfaces:
DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder,MessageLite,MessageLiteOrBuilder
- Enclosing class:
DescriptorProtos.GeneratedCodeInfo
public static final class DescriptorProtos.GeneratedCodeInfo.Annotation
extends 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
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T,?>>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>, GeneratedMessageLite.ExtensionDescriptor, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite, Type>, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intprivate intprivate static final DescriptorProtos.GeneratedCodeInfo.Annotationprivate intstatic final intprivate static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> private Internal.IntListstatic final intprivate intprivate intstatic final intstatic final intprivate StringFields inherited from class com.google.protobuf.GeneratedMessageLite
UNINITIALIZED_HASH_CODE, UNINITIALIZED_SERIALIZED_SIZE, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddAllPath(Iterable<? extends Integer> values) Identifies the element in the original source .proto file.private voidaddPath(int value) Identifies the element in the original source .proto file.private voidIdentifies the starting offset in bytes in the generated code that relates to the identified object.private voidclearEnd()Identifies the ending offset in bytes in the generated code that relates to the identified object.private voidIdentifies the element in the original source .proto file.private voidoptional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;private voidIdentifies the filesystem path to the original source .proto.protected final ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.private voidintgetBegin()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;Identifies the filesystem path to the original source .proto.Identifies 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;booleanIdentifies the filesystem path to the original source .proto.parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) parseFrom(ByteString data) parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) parseFrom(CodedInputStream input) parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) parser()private voidsetBegin(int value) Identifies the starting offset in bytes in the generated code that relates to the identified object.private voidsetEnd(int value) Identifies the ending offset in bytes in the generated code that relates to the identified object.private voidsetPath(int index, int value) Identifies the element in the original source .proto file.private voidoptional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;private voidsetSourceFile(String value) Identifies the filesystem path to the original source .proto.private voidsetSourceFileBytes(ByteString value) Identifies the filesystem path to the original source .proto.Methods inherited from class com.google.protobuf.GeneratedMessageLite
buildMessageInfo, clearMemoizedHashCode, clearMemoizedSerializedSize, computeHashCode, createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstance, getDefaultInstanceForType, getMemoizedHashCode, getMemoizedSerializedSize, getMethodOrDie, getParserForType, getSerializedSize, getSerializedSize, hashCode, hashCodeIsNotMemoized, invokeOrDie, isInitialized, isInitialized, isMutable, makeImmutable, markImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newMutableInstance, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, setMemoizedHashCode, setMemoizedSerializedSize, toBuilder, toString, writeToMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, 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
-
bitField0_
private int bitField0_ -
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
path_
-
pathMemoizedSerializedSize
private int pathMemoizedSerializedSize -
SOURCE_FILE_FIELD_NUMBER
public static final int SOURCE_FILE_FIELD_NUMBER- See Also:
-
sourceFile_
-
BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER- See Also:
-
begin_
private int begin_ -
END_FIELD_NUMBER
public static final int END_FIELD_NUMBER- See Also:
-
end_
private int end_ -
SEMANTIC_FIELD_NUMBER
public static final int SEMANTIC_FIELD_NUMBER- See Also:
-
semantic_
private int semantic_ -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
Annotation
private Annotation()
-
-
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 [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 [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 [packed = true];- Specified by:
getPathin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The path at the given index.
-
ensurePathIsMutable
private void ensurePathIsMutable() -
setPath
private void setPath(int index, int value) 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 to set the value at.value- The path to set.
-
addPath
private void addPath(int value) 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:
value- The path to add.
-
addAllPath
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:
values- The path to add.
-
clearPath
private void clearPath()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]; -
hasSourceFile
public boolean hasSourceFile()Identifies the filesystem path to the original source .proto.
optional string source_file = 2;- 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;- Specified by:
getSourceFilein interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The sourceFile.
-
getSourceFileBytes
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;- Specified by:
getSourceFileBytesin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The bytes for sourceFile.
-
setSourceFile
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;- Parameters:
value- The sourceFile to set.
-
clearSourceFile
private void clearSourceFile()Identifies the filesystem path to the original source .proto.
optional string source_file = 2; -
setSourceFileBytes
Identifies the filesystem path to the original source .proto.
optional string source_file = 2;- Parameters:
value- The bytes for sourceFile to set.
-
hasBegin
public boolean hasBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;- 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;- Specified by:
getBeginin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The begin.
-
setBegin
private void setBegin(int value) Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3;- Parameters:
value- The begin to set.
-
clearBegin
private void clearBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.
optional int32 begin = 3; -
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;- 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;- Specified by:
getEndin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The end.
-
setEnd
private void setEnd(int value) 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;- Parameters:
value- The end to set.
-
clearEnd
private void clearEnd()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; -
hasSemantic
public boolean hasSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;- Specified by:
hasSemanticin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- Whether the semantic field is set.
-
getSemantic
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;- Specified by:
getSemanticin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The semantic.
-
setSemantic
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;- Parameters:
value- The semantic to set.
-
clearSemantic
private void clearSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; -
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(ByteBuffer data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(ByteString data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException - Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(InputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(InputStream input, 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, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilder
-
newBuilder
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype) -
dynamicMethod
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) Description copied from class:GeneratedMessageLiteA method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke. These different kinds of operations are required to implement message-level operations for builders in the runtime. This method bundles those operations to reduce the generated methods count.NEW_INSTANCEreturns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE.IS_INITIALIZEDreturnsnullfor false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZEDreturns the memoizedisInitializedbyte value.SET_MEMOIZED_IS_INITIALIZEDsets the memoizedisInitializedbyte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDERreturns aBuilderTypeinstance.
For use by generated code only.
-
getDefaultInstance
-
parser
-