Package com.google.protobuf
Class DescriptorProtos.GeneratedCodeInfo.Annotation
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.protobuf.DescriptorProtos.GeneratedCodeInfo.Annotation
-
- All Implemented Interfaces:
DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,java.io.Serializable
- Enclosing class:
- DescriptorProtos.GeneratedCodeInfo
public static final class DescriptorProtos.GeneratedCodeInfo.Annotation extends com.google.protobuf.GeneratedMessageV3 implements DescriptorProtos.GeneratedCodeInfo.AnnotationOrBuilder
Protobuf typegoogle.protobuf.GeneratedCodeInfo.Annotation- See Also:
- Serialized Form
-
-
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.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBEGIN_FIELD_NUMBERstatic intEND_FIELD_NUMBERstatic com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>PARSERDeprecated.static intPATH_FIELD_NUMBERstatic intSEMANTIC_FIELD_NUMBERstatic intSOURCE_FILE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetBegin()Identifies the starting offset in bytes in the generated code that relates to the identified object.static DescriptorProtos.GeneratedCodeInfo.AnnotationgetDefaultInstance()DescriptorProtos.GeneratedCodeInfo.AnnotationgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetEnd()Identifies the ending offset in bytes in the generated code that relates to the identified object.com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>getParserForType()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;intgetSerializedSize()java.lang.StringgetSourceFile()Identifies the filesystem path to the original source .proto.com.google.protobuf.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.inthashCode()booleanhasSemantic()optional .google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;booleanhasSourceFile()Identifies the filesystem path to the original source .proto.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static DescriptorProtos.GeneratedCodeInfo.Annotation.BuildernewBuilder()static DescriptorProtos.GeneratedCodeInfo.Annotation.BuildernewBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype)DescriptorProtos.GeneratedCodeInfo.Annotation.BuildernewBuilderForType()protected DescriptorProtos.GeneratedCodeInfo.Annotation.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected java.lang.ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseDelimitedFrom(java.io.InputStream input)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(byte[] data)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(com.google.protobuf.ByteString data)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(com.google.protobuf.CodedInputStream input)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.io.InputStream input)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.nio.ByteBuffer data)static DescriptorProtos.GeneratedCodeInfo.AnnotationparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation>parser()DescriptorProtos.GeneratedCodeInfo.Annotation.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
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
-
PARSER
@Deprecated public static final com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> PARSER
Deprecated.
-
-
Method Detail
-
newInstance
protected java.lang.Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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.
-
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 com.google.protobuf.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.
-
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.
-
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.
-
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.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.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, com.google.protobuf.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, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static DescriptorProtos.GeneratedCodeInfo.Annotation parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilder()
-
newBuilder
public static DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilder(DescriptorProtos.GeneratedCodeInfo.Annotation prototype)
-
toBuilder
public DescriptorProtos.GeneratedCodeInfo.Annotation.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DescriptorProtos.GeneratedCodeInfo.Annotation.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> parser()
-
getParserForType
public com.google.protobuf.Parser<DescriptorProtos.GeneratedCodeInfo.Annotation> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public DescriptorProtos.GeneratedCodeInfo.Annotation getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-