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 class
DescriptorProtos.GeneratedCodeInfo.Annotation.Builder
Protobuf typegoogle.protobuf.GeneratedCodeInfo.Annotation
static class
DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic
Represents 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 int
begin_
static int
BEGIN_FIELD_NUMBER
private int
bitField0_
private static DescriptorProtos.GeneratedCodeInfo.Annotation
DEFAULT_INSTANCE
private int
end_
static int
END_FIELD_NUMBER
private static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>
PARSER
private Internal.IntList
path_
static int
PATH_FIELD_NUMBER
private int
pathMemoizedSerializedSize
private int
semantic_
static int
SEMANTIC_FIELD_NUMBER
static int
SOURCE_FILE_FIELD_NUMBER
private java.lang.String
sourceFile_
-
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 private
Annotation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
addAllPath(java.lang.Iterable<? extends java.lang.Integer> values)
Identifies the element in the original source .proto file.private void
addPath(int value)
Identifies the element in the original source .proto file.private void
clearBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.private void
clearEnd()
Identifies the ending offset in bytes in the generated code that relates to the identified object.private void
clearPath()
Identifies the element in the original source .proto file.private void
clearSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
private void
clearSourceFile()
Identifies the filesystem path to the original source .proto.protected java.lang.Object
dynamicMethod(GeneratedMessageLite.MethodToInvoke method, java.lang.Object arg0, java.lang.Object arg1)
A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
.private void
ensurePathIsMutable()
int
getBegin()
Identifies the starting offset in bytes in the generated code that relates to the identified object.static DescriptorProtos.GeneratedCodeInfo.Annotation
getDefaultInstance()
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.static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder
newBuilder()
static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder
newBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseDelimitedFrom(java.io.InputStream input)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(byte[] data)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(ByteString data)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(CodedInputStream input)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(java.io.InputStream input)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(java.nio.ByteBuffer data)
static DescriptorProtos.GeneratedCodeInfo.Annotation
parseFrom(java.nio.ByteBuffer data, ExtensionRegistryLite extensionRegistry)
static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>
parser()
private void
setBegin(int value)
Identifies the starting offset in bytes in the generated code that relates to the identified object.private void
setEnd(int value)
Identifies the ending offset in bytes in the generated code that relates to the identified object.private void
setPath(int index, int value)
Identifies the element in the original source .proto file.private void
setSemantic(DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic value)
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
private void
setSourceFile(java.lang.String value)
Identifies the filesystem path to the original source .proto.private void
setSourceFileBytes(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:
getPathList
in 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:
getPathCount
in 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:
getPath
in 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:
hasSourceFile
in 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:
getSourceFile
in 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:
getSourceFileBytes
in 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:
hasBegin
in 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:
getBegin
in 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:
hasEnd
in 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:
getEnd
in 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:
hasSemantic
in 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:
getSemantic
in 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:GeneratedMessageLite
A 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_INSTANCE
returns a new instance of the protocol buffer that has not yet been made immutable. SeeMAKE_IMMUTABLE
.IS_INITIALIZED
returnsnull
for false and the default instance for true. It doesn't use or modify any memoized value.GET_MEMOIZED_IS_INITIALIZED
returns the memoizedisInitialized
byte value.SET_MEMOIZED_IS_INITIALIZED
sets the memoizedisInitialized
byte value to 1 if the first parameter is not null, or to 0 if the first parameter is null.NEW_BUILDER
returns aBuilderType
instance.
For use by generated code only.
-
getDefaultInstance
public static DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstance()
-
parser
public static Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> parser()
-
-