|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.google.protobuf.AbstractMessageLite.Builder<BuilderType> com.google.protobuf.AbstractMessage.Builder<BuilderType> com.google.protobuf.GeneratedMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder> com.google.protobuf.DescriptorProtos.SourceCodeInfo.Location.Builder
public static final class DescriptorProtos.SourceCodeInfo.Location.Builder
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder |
---|
addRepeatedField, clearField, getAllFields, getField, getParentForChildren, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, isClean, markClean, mergeUnknownFields, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields |
Methods inherited from class com.google.protobuf.AbstractMessage.Builder |
---|
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException |
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder |
---|
addAll, newUninitializedMessageException |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.protobuf.MessageOrBuilder |
---|
getAllFields, getField, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField |
Method Detail |
---|
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
GeneratedMessage.Builder
internalGetFieldAccessorTable
in class GeneratedMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
public DescriptorProtos.SourceCodeInfo.Location.Builder clear()
GeneratedMessage.Builder
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
public DescriptorProtos.SourceCodeInfo.Location.Builder clone()
MessageLite.Builder
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
Object.clone()
public Descriptors.Descriptor getDescriptorForType()
Message.Builder
MessageOrBuilder.getDescriptorForType()
.
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
public DescriptorProtos.SourceCodeInfo.Location getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
method of generated message classes in that
this method is an abstract method of the MessageLite
interface
whereas getDefaultInstance()
is a static method of a specific
class. They return the same thing.
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DescriptorProtos.SourceCodeInfo.Location build()
MessageLite.Builder
build()
, clone()
it first.
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DescriptorProtos.SourceCodeInfo.Location buildPartial()
MessageLite.Builder
MessageLite.Builder.build()
, but does not throw an exception if the message
is missing required fields. Instead, a partial message is returned.
Once this is called, the Builder is no longer valid, and calling any
will result in undefined behavior and may throw a NullPointerException.
If you need to continue working with the builder after calling
buildPartial()
, clone()
it first.
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DescriptorProtos.SourceCodeInfo.Location.Builder mergeFrom(Message other)
Message.Builder
other
into the message being built. other
must
have the exact same type as this
(i.e.
getDescriptorForType() == other.getDescriptorForType()
).
Merging occurs as follows. For each field:other
,
then other
's value overwrites the value in this message.other
,
it is merged into the corresponding sub-message of this message
using the same merging rules.other
are concatenated
with the elements in this message.
This is equivalent to the Message::MergeFrom
method in C++.
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
public DescriptorProtos.SourceCodeInfo.Location.Builder mergeFrom(DescriptorProtos.SourceCodeInfo.Location other)
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
public DescriptorProtos.SourceCodeInfo.Location.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
MessageLite.Builder
MessageLite.Builder.mergeFrom(CodedInputStream)
, but also
parses extensions. The extensions that you want to be able to parse
must be registered in extensionRegistry
. Extensions not in
the registry will be treated as unknown fields.
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DescriptorProtos.SourceCodeInfo.Location.Builder>
java.io.IOException
public java.util.List<java.lang.Integer> getPathList()
getPathList
in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilder
public int getPathCount()
getPathCount
in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilder
public int getPath(int index)
getPath
in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilder
public DescriptorProtos.SourceCodeInfo.Location.Builder setPath(int index, int value)
public DescriptorProtos.SourceCodeInfo.Location.Builder addPath(int value)
public DescriptorProtos.SourceCodeInfo.Location.Builder addAllPath(java.lang.Iterable<? extends java.lang.Integer> values)
public DescriptorProtos.SourceCodeInfo.Location.Builder clearPath()
public java.util.List<java.lang.Integer> getSpanList()
getSpanList
in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilder
public int getSpanCount()
getSpanCount
in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilder
public int getSpan(int index)
getSpan
in interface DescriptorProtos.SourceCodeInfo.LocationOrBuilder
public DescriptorProtos.SourceCodeInfo.Location.Builder setSpan(int index, int value)
public DescriptorProtos.SourceCodeInfo.Location.Builder addSpan(int value)
public DescriptorProtos.SourceCodeInfo.Location.Builder addAllSpan(java.lang.Iterable<? extends java.lang.Integer> values)
public DescriptorProtos.SourceCodeInfo.Location.Builder clearSpan()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |