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 class
Protobuf typegoogle.protobuf.GeneratedCodeInfo.Annotation
static enum
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
FieldsModifier and TypeFieldDescriptionprivate int
static final int
private int
private static final DescriptorProtos.GeneratedCodeInfo.Annotation
private int
static final int
private static Parser
<DescriptorProtos.GeneratedCodeInfo.Annotation> private Internal.IntList
static final int
private int
private int
static final int
static final int
private String
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 -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addAllPath
(Iterable<? extends 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
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
Identifies the element in the original source .proto file.private void
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
private void
Identifies the filesystem path to the original source .proto.protected final Object
dynamicMethod
(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1) A method that implements different types of operations described inGeneratedMessageLite.MethodToInvoke
.private void
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
Identifies 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.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
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
boolean
Identifies 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 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
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
private void
setSourceFile
(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 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:
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
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
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
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
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:
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
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
- Specified by:
getSemantic
in 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: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
-
parser
-