public abstract static class GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite,BuilderType extends GeneratedMessageLite.Builder> extends AbstractMessageLite.Builder<BuilderType>
Modifier and Type | Method and Description |
---|---|
BuilderType |
clear()
Resets all fields to their default values.
|
BuilderType |
clone()
Clones the Builder.
|
abstract MessageType |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
abstract BuilderType |
mergeFrom(MessageType message)
All subclasses implement this.
|
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
build, buildPartial
isInitialized
public BuilderType clear()
MessageLite.Builder
public BuilderType clone()
MessageLite.Builder
clone
in interface MessageLite.Builder
clone
in class AbstractMessageLite.Builder<BuilderType extends GeneratedMessageLite.Builder>
Object.clone()
public abstract BuilderType mergeFrom(MessageType message)
public abstract MessageType 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.