com.google.protobuf
Class GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite,BuilderType extends GeneratedMessageLite.Builder>

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite.Builder<BuilderType>
      extended by com.google.protobuf.GeneratedMessageLite.Builder<MessageType,BuilderType>
All Implemented Interfaces:
MessageLite.Builder, MessageLiteOrBuilder, Cloneable
Direct Known Subclasses:
GeneratedMessageLite.ExtendableBuilder
Enclosing class:
GeneratedMessageLite

public abstract static class GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite,BuilderType extends GeneratedMessageLite.Builder>
extends AbstractMessageLite.Builder<BuilderType>


Method Summary
 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.
 
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageLite.Builder
build, buildPartial
 
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
 

Method Detail

clear

public BuilderType clear()
Description copied from interface: MessageLite.Builder
Resets all fields to their default values.


clone

public BuilderType clone()
Description copied from interface: MessageLite.Builder
Clones the Builder.

Specified by:
clone in interface MessageLite.Builder
Specified by:
clone in class AbstractMessageLite.Builder<BuilderType extends GeneratedMessageLite.Builder>
See Also:
Object.clone()

mergeFrom

public abstract BuilderType mergeFrom(MessageType message)
All subclasses implement this.


getDefaultInstanceForType

public abstract MessageType getDefaultInstanceForType()
Description copied from interface: MessageLiteOrBuilder
Get an instance of the type with no fields set. Because no fields are set, all getters for singular fields will return default values and repeated fields will appear empty. This may or may not be a singleton. This differs from the 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.