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,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 typegoogle.protobuf.GeneratedCodeInfo.Annotation
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDescriptorProtos.GeneratedCodeInfo.Annotation.BuilderProtobuf typegoogle.protobuf.GeneratedCodeInfo.Annotationstatic classDescriptorProtos.GeneratedCodeInfo.Annotation.SemanticRepresents 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
Fields Modifier and Type Field Description private intbegin_static intBEGIN_FIELD_NUMBERprivate intbitField0_private static DescriptorProtos.GeneratedCodeInfo.AnnotationDEFAULT_INSTANCEprivate intend_static intEND_FIELD_NUMBERprivate static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>PARSERprivate Internal.IntListpath_static intPATH_FIELD_NUMBERprivate intpathMemoizedSerializedSizeprivate intsemantic_static intSEMANTIC_FIELD_NUMBERstatic intSOURCE_FILE_FIELD_NUMBERprivate java.lang.StringsourceFile_-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
UNINITIALIZED_HASH_CODE, UNINITIALIZED_SERIALIZED_SIZE, unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAnnotation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddAllPath(java.lang.Iterable<? extends java.lang.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 voidclearBegin()Identifies 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 voidclearPath()Identifies the element in the original source .proto file.private voidclearSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;private voidclearSourceFile()Identifies the filesystem path to the original source .proto.protected java.lang.ObjectdynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke.private voidensurePathIsMutable()intgetBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.static DescriptorProtos.GeneratedCodeInfo.AnnotationgetDefaultInstance()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.intgetPathCount()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.SemanticgetSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;java.lang.StringgetSourceFile()Identifies the filesystem path to the original source .proto.ByteStringgetSourceFileBytes()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.booleanhasSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;booleanhasSourceFile()Identifies the filesystem path to the original source .proto.static DescriptorProtos.GeneratedCodeInfo.Annotation.BuildernewBuilder()static DescriptorProtos.GeneratedCodeInfo.Annotation.BuildernewBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(byte[] data)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(ByteString data)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(CodedInputStream input)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.io.InputStream input)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>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 voidsetSemantic(DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic value)optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;private voidsetSourceFile(java.lang.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, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, newUninitializedMessageException, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
-
-
-
Field Detail
-
bitField0_
private int bitField0_
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
path_
private Internal.IntList path_
-
pathMemoizedSerializedSize
private int pathMemoizedSerializedSize
-
SOURCE_FILE_FIELD_NUMBER
public static final int SOURCE_FILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
sourceFile_
private java.lang.String sourceFile_
-
BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
begin_
private int begin_
-
END_FIELD_NUMBER
public static final int END_FIELD_NUMBER
- See Also:
- Constant Field Values
-
end_
private int end_
-
SEMANTIC_FIELD_NUMBER
public static final int SEMANTIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
semantic_
private int semantic_
-
DEFAULT_INSTANCE
private static final DescriptorProtos.GeneratedCodeInfo.Annotation DEFAULT_INSTANCE
-
PARSER
private static volatile Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> PARSER
-
-
Method Detail
-
getPathList
public 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];- 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
private void addAllPath(java.lang.Iterable<? extends java.lang.Integer> values)
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
public java.lang.String 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
public ByteString 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
private void setSourceFile(java.lang.String value)
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
private void setSourceFileBytes(ByteString value)
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
public DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic getSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;- Specified by:
getSemanticin interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder- Returns:
- The semantic.
-
setSemantic
private void setSemantic(DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic value)
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(java.nio.ByteBuffer data) throws InvalidProtocolBufferException
- Throws:
InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(java.nio.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(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilder
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype)
-
dynamicMethod
protected final java.lang.Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.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
public static DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> parser()
-
-