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
Protobuf enumgoogle.protobuf.GeneratedCodeInfo.Annotation.Semantic
-
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.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 static int
BEGIN_FIELD_NUMBER
static int
END_FIELD_NUMBER
static int
PATH_FIELD_NUMBER
static int
SEMANTIC_FIELD_NUMBER
static int
SOURCE_FILE_FIELD_NUMBER
-
Fields inherited from class com.google.protobuf.GeneratedMessageLite
unknownFields
-
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
.int
getBegin()
optional int32 begin = 3 [json_name = "begin"];
static DescriptorProtos.GeneratedCodeInfo.Annotation
getDefaultInstance()
int
getEnd()
optional int32 end = 4 [json_name = "end"];
int
getPath(int index)
repeated int32 path = 1 [json_name = "path", packed = true];
int
getPathCount()
repeated int32 path = 1 [json_name = "path", packed = true];
java.util.List<java.lang.Integer>
getPathList()
repeated int32 path = 1 [json_name = "path", packed = true];
DescriptorProtos.GeneratedCodeInfo.Annotation.Semantic
getSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];
java.lang.String
getSourceFile()
optional string source_file = 2 [json_name = "sourceFile"];
ByteString
getSourceFileBytes()
optional string source_file = 2 [json_name = "sourceFile"];
boolean
hasBegin()
optional int32 begin = 3 [json_name = "begin"];
boolean
hasEnd()
optional int32 end = 4 [json_name = "end"];
boolean
hasSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];
boolean
hasSourceFile()
optional string source_file = 2 [json_name = "sourceFile"];
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()
-
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, writeTo
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, 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
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SOURCE_FILE_FIELD_NUMBER
public static final int SOURCE_FILE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
BEGIN_FIELD_NUMBER
public static final int BEGIN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_FIELD_NUMBER
public static final int END_FIELD_NUMBER
- See Also:
- Constant Field Values
-
SEMANTIC_FIELD_NUMBER
public static final int SEMANTIC_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPathList
public java.util.List<java.lang.Integer> getPathList()
repeated int32 path = 1 [json_name = "path", packed = true];
- Specified by:
getPathList
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- A list containing the path.
-
getPathCount
public int getPathCount()
repeated int32 path = 1 [json_name = "path", packed = true];
- Specified by:
getPathCount
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- The count of path.
-
getPath
public int getPath(int index)
repeated int32 path = 1 [json_name = "path", 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.
-
hasSourceFile
public boolean hasSourceFile()
optional string source_file = 2 [json_name = "sourceFile"];
- Specified by:
hasSourceFile
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- Whether the sourceFile field is set.
-
getSourceFile
public java.lang.String getSourceFile()
optional string source_file = 2 [json_name = "sourceFile"];
- Specified by:
getSourceFile
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- The sourceFile.
-
getSourceFileBytes
public ByteString getSourceFileBytes()
optional string source_file = 2 [json_name = "sourceFile"];
- Specified by:
getSourceFileBytes
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- The bytes for sourceFile.
-
hasBegin
public boolean hasBegin()
optional int32 begin = 3 [json_name = "begin"];
- Specified by:
hasBegin
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- Whether the begin field is set.
-
getBegin
public int getBegin()
optional int32 begin = 3 [json_name = "begin"];
- Specified by:
getBegin
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- The begin.
-
hasEnd
public boolean hasEnd()
optional int32 end = 4 [json_name = "end"];
- Specified by:
hasEnd
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- Whether the end field is set.
-
getEnd
public int getEnd()
optional int32 end = 4 [json_name = "end"];
- Specified by:
getEnd
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- The end.
-
hasSemantic
public boolean hasSemantic()
optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5 [json_name = "semantic"];
- 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 [json_name = "semantic"];
- Specified by:
getSemantic
in interfaceDescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
- Returns:
- The semantic.
-
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()
-
-