public static final class DescriptorProtos.SourceCodeInfo.Location extends GeneratedMessageLite<DescriptorProtos.SourceCodeInfo.Location,DescriptorProtos.SourceCodeInfo.Location.Builder> implements DescriptorProtos.SourceCodeInfo.LocationOrBuilder
google.protobuf.SourceCodeInfo.Location| Modifier and Type | Class and Description |
|---|---|
static class |
DescriptorProtos.SourceCodeInfo.Location.Builder
Protobuf type
google.protobuf.SourceCodeInfo.Location |
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.MergeFromVisitor, GeneratedMessageLite.MethodToInvoke, GeneratedMessageLite.SerializedForm, GeneratedMessageLite.Visitor| Modifier and Type | Field and Description |
|---|---|
static int |
LEADING_COMMENTS_FIELD_NUMBER |
static int |
LEADING_DETACHED_COMMENTS_FIELD_NUMBER |
static int |
PATH_FIELD_NUMBER |
static int |
SPAN_FIELD_NUMBER |
static int |
TRAILING_COMMENTS_FIELD_NUMBER |
memoizedSerializedSize, unknownFieldsmemoizedHashCode| Modifier and Type | Method and Description |
|---|---|
protected Object |
dynamicMethod(GeneratedMessageLite.MethodToInvoke method,
Object arg0,
Object arg1)
A method that implements different types of operations described in
GeneratedMessageLite.MethodToInvoke. |
static DescriptorProtos.SourceCodeInfo.Location |
getDefaultInstance() |
String |
getLeadingComments()
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
|
ByteString |
getLeadingCommentsBytes()
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
|
String |
getLeadingDetachedComments(int index)
repeated string leading_detached_comments = 6; |
ByteString |
getLeadingDetachedCommentsBytes(int index)
repeated string leading_detached_comments = 6; |
int |
getLeadingDetachedCommentsCount()
repeated string leading_detached_comments = 6; |
List<String> |
getLeadingDetachedCommentsList()
repeated string leading_detached_comments = 6; |
int |
getPath(int index)
Identifies which part of the FileDescriptorProto was defined at this
location.
|
int |
getPathCount()
Identifies which part of the FileDescriptorProto was defined at this
location.
|
List<Integer> |
getPathList()
Identifies which part of the FileDescriptorProto was defined at this
location.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
int |
getSpan(int index)
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
|
int |
getSpanCount()
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
|
List<Integer> |
getSpanList()
Always has exactly three or four elements: start line, start column,
end line (optional, otherwise assumed same as start line), end column.
|
String |
getTrailingComments()
optional string trailing_comments = 4; |
ByteString |
getTrailingCommentsBytes()
optional string trailing_comments = 4; |
boolean |
hasLeadingComments()
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
|
boolean |
hasTrailingComments()
optional string trailing_comments = 4; |
static DescriptorProtos.SourceCodeInfo.Location.Builder |
newBuilder() |
static DescriptorProtos.SourceCodeInfo.Location.Builder |
newBuilder(DescriptorProtos.SourceCodeInfo.Location prototype) |
static DescriptorProtos.SourceCodeInfo.Location |
parseDelimitedFrom(InputStream input) |
static DescriptorProtos.SourceCodeInfo.Location |
parseDelimitedFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(byte[] data) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(ByteString data) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(CodedInputStream input) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(InputStream input) |
static DescriptorProtos.SourceCodeInfo.Location |
parseFrom(InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<DescriptorProtos.SourceCodeInfo.Location> |
parser() |
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output. |
dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, hashCode, isInitialized, isInitialized, makeImmutable, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, toBuilder, toStringaddAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetDefaultInstanceForType, isInitializedpublic static final int PATH_FIELD_NUMBER
public static final int SPAN_FIELD_NUMBER
public static final int LEADING_COMMENTS_FIELD_NUMBER
public static final int TRAILING_COMMENTS_FIELD_NUMBER
public static final int LEADING_DETACHED_COMMENTS_FIELD_NUMBER
public List<Integer> getPathList()
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index. They form a path from
the root FileDescriptorProto to the place where the definition. For
example, this path:
[ 4, 3, 2, 7, 1 ]
refers to:
file.message_type(3) // 4, 3
.field(7) // 2, 7
.name() // 1
This is because FileDescriptorProto.message_type has field number 4:
repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
optional string name = 1;
Thus, the above path gives the location of a field name. If we removed
the last element:
[ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];getPathList in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic int getPathCount()
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index. They form a path from
the root FileDescriptorProto to the place where the definition. For
example, this path:
[ 4, 3, 2, 7, 1 ]
refers to:
file.message_type(3) // 4, 3
.field(7) // 2, 7
.name() // 1
This is because FileDescriptorProto.message_type has field number 4:
repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
optional string name = 1;
Thus, the above path gives the location of a field name. If we removed
the last element:
[ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];getPathCount in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic int getPath(int index)
Identifies which part of the FileDescriptorProto was defined at this
location.
Each element is a field number or an index. They form a path from
the root FileDescriptorProto to the place where the definition. For
example, this path:
[ 4, 3, 2, 7, 1 ]
refers to:
file.message_type(3) // 4, 3
.field(7) // 2, 7
.name() // 1
This is because FileDescriptorProto.message_type has field number 4:
repeated DescriptorProto message_type = 4;
and DescriptorProto.field has field number 2:
repeated FieldDescriptorProto field = 2;
and FieldDescriptorProto.name has field number 1:
optional string name = 1;
Thus, the above path gives the location of a field name. If we removed
the last element:
[ 4, 3, 2, 7 ]
this path refers to the whole field declaration (from the beginning
of the label to the terminating semicolon).
repeated int32 path = 1 [packed = true];getPath in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic List<Integer> getSpanList()
Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based -- typically you will want to add 1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];getSpanList in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic int getSpanCount()
Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based -- typically you will want to add 1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];getSpanCount in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic int getSpan(int index)
Always has exactly three or four elements: start line, start column, end line (optional, otherwise assumed same as start line), end column. These are packed into a single field for efficiency. Note that line and column numbers are zero-based -- typically you will want to add 1 to each before displaying to a user.
repeated int32 span = 2 [packed = true];getSpan in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic boolean hasLeadingComments()
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out. For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
optional int32 foo = 1; // Comment attached to foo.
// Comment attached to bar.
optional int32 bar = 2;
optional string baz = 3;
// Comment attached to baz.
// Another line attached to baz.
// Comment attached to qux.
//
// Another line attached to qux.
optional double qux = 4;
// Detached comment for corge. This is not leading or trailing comments
// to qux or corge because there are blank lines separating it from
// both.
// Detached comment for corge paragraph 2.
optional string corge = 5;
/* Block comment attached
* to corge. Leading asterisks
* will be removed. */
/* Block comment attached to
* grault. */
optional int32 grault = 6;
// ignored detached comments.
optional string leading_comments = 3;hasLeadingComments in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic String getLeadingComments()
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out. For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
optional int32 foo = 1; // Comment attached to foo.
// Comment attached to bar.
optional int32 bar = 2;
optional string baz = 3;
// Comment attached to baz.
// Another line attached to baz.
// Comment attached to qux.
//
// Another line attached to qux.
optional double qux = 4;
// Detached comment for corge. This is not leading or trailing comments
// to qux or corge because there are blank lines separating it from
// both.
// Detached comment for corge paragraph 2.
optional string corge = 5;
/* Block comment attached
* to corge. Leading asterisks
* will be removed. */
/* Block comment attached to
* grault. */
optional int32 grault = 6;
// ignored detached comments.
optional string leading_comments = 3;getLeadingComments in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic ByteString getLeadingCommentsBytes()
If this SourceCodeInfo represents a complete declaration, these are any
comments appearing before and after the declaration which appear to be
attached to the declaration.
A series of line comments appearing on consecutive lines, with no other
tokens appearing on those lines, will be treated as a single comment.
leading_detached_comments will keep paragraphs of comments that appear
before (but not connected to) the current element. Each paragraph,
separated by empty lines, will be one comment element in the repeated
field.
Only the comment content is provided; comment markers (e.g. //) are
stripped out. For block comments, leading whitespace and an asterisk
will be stripped from the beginning of each line other than the first.
Newlines are included in the output.
Examples:
optional int32 foo = 1; // Comment attached to foo.
// Comment attached to bar.
optional int32 bar = 2;
optional string baz = 3;
// Comment attached to baz.
// Another line attached to baz.
// Comment attached to qux.
//
// Another line attached to qux.
optional double qux = 4;
// Detached comment for corge. This is not leading or trailing comments
// to qux or corge because there are blank lines separating it from
// both.
// Detached comment for corge paragraph 2.
optional string corge = 5;
/* Block comment attached
* to corge. Leading asterisks
* will be removed. */
/* Block comment attached to
* grault. */
optional int32 grault = 6;
// ignored detached comments.
optional string leading_comments = 3;getLeadingCommentsBytes in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic boolean hasTrailingComments()
optional string trailing_comments = 4;hasTrailingComments in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic String getTrailingComments()
optional string trailing_comments = 4;getTrailingComments in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic ByteString getTrailingCommentsBytes()
optional string trailing_comments = 4;getTrailingCommentsBytes in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic List<String> getLeadingDetachedCommentsList()
repeated string leading_detached_comments = 6;getLeadingDetachedCommentsList in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic int getLeadingDetachedCommentsCount()
repeated string leading_detached_comments = 6;getLeadingDetachedCommentsCount in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic String getLeadingDetachedComments(int index)
repeated string leading_detached_comments = 6;getLeadingDetachedComments in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic ByteString getLeadingDetachedCommentsBytes(int index)
repeated string leading_detached_comments = 6;getLeadingDetachedCommentsBytes in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilderpublic void writeTo(CodedOutputStream output) throws IOException
MessageLiteoutput. This does not
flush or close the stream.writeTo in interface MessageLiteIOExceptionpublic int getSerializedSize()
MessageLitegetSerializedSize in interface MessageLitepublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(CodedInputStream input) throws IOException
IOExceptionpublic static DescriptorProtos.SourceCodeInfo.Location parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DescriptorProtos.SourceCodeInfo.Location.Builder newBuilder()
public static DescriptorProtos.SourceCodeInfo.Location.Builder newBuilder(DescriptorProtos.SourceCodeInfo.Location prototype)
protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)
GeneratedMessageLiteGeneratedMessageLite.MethodToInvoke.
Theses 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.
MERGE_FROM_STREAM is parameterized with an CodedInputStream and
ExtensionRegistryLite. It consumes the input stream, parsing the contents into the
returned protocol buffer. If parsing throws an InvalidProtocolBufferException, the
implementation wraps it in a RuntimeException.
NEW_INSTANCE returns a new instance of the protocol buffer that has not yet been
made immutable. See MAKE_IMMUTABLE.
IS_INITIALIZED is parameterized with a Boolean detailing whether to
memoize. It returns null for false and the default instance for true. We optionally
memoize to support the Builder case, where memoization is not desired.
NEW_BUILDER returns a BuilderType instance.
VISIT is parameterized with a Visitor and a MessageType and
recursively iterates through the fields side by side between this and the instance.
MAKE_IMMUTABLE sets all internal fields to an immutable state.
For use by generated code only.
public static DescriptorProtos.SourceCodeInfo.Location getDefaultInstance()
public static Parser<DescriptorProtos.SourceCodeInfo.Location> parser()
Copyright © 2008–2016 Google. All rights reserved.