com.google.protobuf
Class GeneratedMessageLite

java.lang.Object
  extended by com.google.protobuf.AbstractMessageLite
      extended by com.google.protobuf.GeneratedMessageLite
All Implemented Interfaces:
MessageLite, MessageLiteOrBuilder, java.io.Serializable
Direct Known Subclasses:
GeneratedMessageLite.ExtendableMessage

public abstract class GeneratedMessageLite
extends AbstractMessageLite
implements java.io.Serializable

Lite version of GeneratedMessage.

Author:
[email protected] Kenton Varda
See Also:
Serialized Form

Nested Class Summary
static class GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite,BuilderType extends GeneratedMessageLite.Builder>
           
static class GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>
          Lite equivalent of GeneratedMessage.ExtendableBuilder.
static class GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
          Lite equivalent of GeneratedMessage.ExtendableMessage.
static interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage>
          Lite equivalent of GeneratedMessage.ExtendableMessageOrBuilder.
static class GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
          Lite equivalent to GeneratedMessage.GeneratedExtension.
 
Constructor Summary
protected GeneratedMessageLite()
           
protected GeneratedMessageLite(GeneratedMessageLite.Builder builder)
           
 
Method Summary
static
<ContainingType extends MessageLite,Type>
GeneratedMessageLite.GeneratedExtension<ContainingType,Type>
newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance, MessageLite messageDefaultInstance, Internal.EnumLiteMap<?> enumTypeMap, int number, WireFormat.FieldType type, boolean isPacked)
          For use by generated code only.
static
<ContainingType extends MessageLite,Type>
GeneratedMessageLite.GeneratedExtension<ContainingType,Type>
newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance, Type defaultValue, MessageLite messageDefaultInstance, Internal.EnumLiteMap<?> enumTypeMap, int number, WireFormat.FieldType type)
          For use by generated code only.
protected  java.lang.Object writeReplace()
          Replaces this object in the output stream with a serialized form.
 
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.protobuf.MessageLite
getSerializedSize, newBuilderForType, toBuilder, writeTo
 
Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
 

Constructor Detail

GeneratedMessageLite

protected GeneratedMessageLite()

GeneratedMessageLite

protected GeneratedMessageLite(GeneratedMessageLite.Builder builder)
Method Detail

newSingularGeneratedExtension

public static <ContainingType extends MessageLite,Type> GeneratedMessageLite.GeneratedExtension<ContainingType,Type> newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance,
                                                                                                                                                   Type defaultValue,
                                                                                                                                                   MessageLite messageDefaultInstance,
                                                                                                                                                   Internal.EnumLiteMap<?> enumTypeMap,
                                                                                                                                                   int number,
                                                                                                                                                   WireFormat.FieldType type)
For use by generated code only.


newRepeatedGeneratedExtension

public static <ContainingType extends MessageLite,Type> GeneratedMessageLite.GeneratedExtension<ContainingType,Type> newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
                                                                                                                                                   MessageLite messageDefaultInstance,
                                                                                                                                                   Internal.EnumLiteMap<?> enumTypeMap,
                                                                                                                                                   int number,
                                                                                                                                                   WireFormat.FieldType type,
                                                                                                                                                   boolean isPacked)
For use by generated code only.


writeReplace

protected java.lang.Object writeReplace()
                                 throws java.io.ObjectStreamException
Replaces this object in the output stream with a serialized form. Part of Java's serialization magic. Generated sub-classes must override this method by calling return super.writeReplace();

Returns:
a SerializedForm of this message
Throws:
java.io.ObjectStreamException


Copyright © 2008-2011 Google. All Rights Reserved.