Top Description Inners Fields Constructors Methods
com.google.protobuf

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

extends AbstractMessageLite<MessageType extends GeneratedMessageLite<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.Builder<MessageType, BuilderType>>
Class Inheritance
Known Direct Subclasses
com.google.protobuf.GeneratedMessageLite.ExtendableMessage
Imports
com.google.protobuf.AbstractMessageLite.Builder.LimitedInputStream, .Internal.BooleanList, .Internal.DoubleList, .Internal.FloatList, .Internal.IntList, .Internal.LongList, .Internal.ProtobufList, .WireFormat.FieldType, java.io.IOException, .InputStream, .ObjectStreamException, .Serializable, java.lang.reflect.InvocationTargetException, .Method, java.nio.ByteBuffer, java.util.ArrayList, .Collections, .Iterator, .List, .Map, java.util.concurrent.ConcurrentHashMap

Lite version of GeneratedMessage.
Author
[email protected] Kenton Varda

Nested and Inner Type Summary

Modifier and TypeClass and Description
public abstract static class
GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.Builder<MessageType, BuilderType>>

protected static class
GeneratedMessageLite.DefaultInstanceBasedParser<T extends GeneratedMessageLite<T, ?>>

A Parser implementation that delegates to the default instance.

pack-priv static class
public abstract static class
GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>

Lite equivalent of GeneratedMessage.ExtendableBuilder.

public abstract static class
GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>>

Lite equivalent of GeneratedMessage.ExtendableMessage.

public static interface
pack-priv static class
public static class
pack-priv static class
GeneratedMessageLite.HashCodeVisitor

Implements hashCode by accumulating state.

protected static class
GeneratedMessageLite.MergeFromVisitor

Implements field merging semantics over the visitor interface.

public static enum
protected static class
GeneratedMessageLite.SerializedForm

A serialized (serializable) form of the generated message.

protected static interface
GeneratedMessageLite.Visitor

An abstract visitor that the generated code calls into that we use to implement various features.

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
protected int
memoizedSerializedSize

For use by generated code only.

protected UnknownFieldSetLite
unknownFields

For use by generated code only.

Inherited from com.google.protobuf.AbstractMessageLite:
memoizedHashCode

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static <MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType, BuilderType>, T> GeneratedMessageLite.GeneratedExtension<MessageType, T>
checkIsLite(ExtensionLite<MessageType, T> extension)

Checks that the Extension is Lite and returns it as a GeneratedExtension.

private static <T extends GeneratedMessageLite<T, ?>> T

Returns:

The message to check.
checkMessageInitialized
(T message)

Helper method to check if message is initialized.

protected final <MessageType extends GeneratedMessageLite<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.Builder<MessageType, BuilderType>> BuilderType
protected final <MessageType extends GeneratedMessageLite<MessageType, BuilderType>, BuilderType extends GeneratedMessageLite.Builder<MessageType, BuilderType>> BuilderType
createBuilder(MessageType prototype)

protected abstract Object
dynamicMethod(GeneratedMessageLite.MethodToInvoke method, Object arg0, Object arg1)

A method that implements different types of operations described in MethodToInvoke.

protected Object
protected Object
protected static Internal.BooleanList
protected static Internal.DoubleList
protected static Internal.FloatList
protected static Internal.IntList
protected static Internal.LongList
protected static <E> Internal.ProtobufList<E>
private final void
ensureUnknownFieldsInitialized()

Lazily initializes unknown fields.

public boolean
equals(Object
the reference object with which to compare.
other
)

Overrides java.lang.Object.equals.

Indicates whether some other object is "equal to" this one.
pack-priv boolean
equals(GeneratedMessageLite.EqualsVisitor visitor, MessageLite other)

Same as equals(Object) but throws NotEqualsException.

public final MessageType
getDefaultInstanceForType()

Implements com.google.protobuf.MessageLiteOrBuilder.getDefaultInstanceForType.

Get an instance of the type with no fields set.
pack-priv int
pack-priv static Method
getMethodOrDie(Class<T> clazz, String name, Class<T>... params)

Calls Class.getMethod and throws a RuntimeException if it fails.

public final Parser<MessageType>
getParserForType()

Implements com.google.protobuf.MessageLite.getParserForType.

Gets the parser for a message of the same type as this message.
public int
hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code value for the object.
pack-priv int
pack-priv static Object
invokeOrDie(Method method, Object object, Object... params)

Calls invoke and throws a RuntimeException if it fails.

public final boolean
isInitialized()

Implements com.google.protobuf.MessageLiteOrBuilder.isInitialized.

Returns true if all required fields in the message and all embedded messages are set, false otherwise.
protected static final <T extends GeneratedMessageLite<T, ?>> boolean
isInitialized(T message, boolean shouldMemoize)

A static helper method for checking if a message is initialized, optionally memoizing.

protected void
makeImmutable()

Called by subclasses to complete parsing.

protected void
mergeLengthDelimitedField(int fieldNumber, ByteString value)

Called by subclasses to parse an unknown field.

protected final void
mergeUnknownFields(UnknownFieldSetLite unknownFields)

Merge some unknown fields into the UnknownFieldSetLite for this message.

protected void
mergeVarintField(int tag, int value)

Called by subclasses to parse an unknown field.

protected static Internal.IntList
protected static Internal.LongList
protected static Internal.FloatList
protected static Internal.DoubleList
protected static Internal.BooleanList
protected static <E> Internal.ProtobufList<E>
public final BuilderType
newBuilderForType()

Implements com.google.protobuf.MessageLite.newBuilderForType.

Constructs a new builder for a message of the same type as this message.
public static <ContainingType extends MessageLite, Type> GeneratedMessageLite.GeneratedExtension<ContainingType, Type>
newRepeatedGeneratedExtension(final ContainingType containingTypeDefaultInstance, final MessageLite messageDefaultInstance, final Internal.EnumLiteMap<?> enumTypeMap, final int number, final WireFormat.FieldType type, final boolean isPacked, final Class<T> singularType)

For use by generated code only.

public static <ContainingType extends MessageLite, Type> GeneratedMessageLite.GeneratedExtension<ContainingType, Type>
newSingularGeneratedExtension(final ContainingType containingTypeDefaultInstance, final Type defaultValue, final MessageLite messageDefaultInstance, final Internal.EnumLiteMap<?> enumTypeMap, final int number, final WireFormat.FieldType type, final Class<T> singularType)

For use by generated code only.

protected static <T extends GeneratedMessageLite<T, ?>> T
parseDelimitedFrom(T defaultInstance, InputStream input)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseDelimitedFrom(T defaultInstance, InputStream input, ExtensionRegistryLite extensionRegistry)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, ByteBuffer data, ExtensionRegistryLite extensionRegistry)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, ByteBuffer data)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, ByteString data)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, byte[] data)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, byte[] data, ExtensionRegistryLite extensionRegistry)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, InputStream input)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, InputStream input, ExtensionRegistryLite extensionRegistry)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, CodedInputStream input)

protected static <T extends GeneratedMessageLite<T, ?>> T
parseFrom(T defaultInstance, CodedInputStream input, ExtensionRegistryLite extensionRegistry)

private static <T extends GeneratedMessageLite<T, ?>> T
parsePartialDelimitedFrom(T defaultInstance, InputStream input, ExtensionRegistryLite extensionRegistry)

pack-priv static <T extends GeneratedMessageLite<T, ?>> T
parsePartialFrom(T instance, CodedInputStream input, ExtensionRegistryLite extensionRegistry)

A static helper method for parsing a partial from input using the extension registry and the instance.

pack-priv static <T extends GeneratedMessageLite<T, ?>> T
parsePartialFrom(T instance, byte[] input, int offset, int length, ExtensionRegistryLite extensionRegistry)

A static helper method for parsing a partial from byte array.

protected static <T extends GeneratedMessageLite<T, ?>> T
parsePartialFrom(T defaultInstance, CodedInputStream input)

private static <T extends GeneratedMessageLite<T, ?>> T
parsePartialFrom(T defaultInstance, ByteString data, ExtensionRegistryLite extensionRegistry)

private static <T extends GeneratedMessageLite<T, ?>> T
parsePartialFrom(T defaultInstance, byte[] data, ExtensionRegistryLite extensionRegistry)

protected boolean

Returns:

true unless the tag is an end-group tag.
parseUnknownField
(int tag, CodedInputStream input)

Called by subclasses to parse an unknown field.

pack-priv void
public final BuilderType
toBuilder()

Implements com.google.protobuf.MessageLite.toBuilder.

Constructs a builder initialized with the current message.
public String
toString()

Overrides java.lang.Object.toString.

A reflective toString function.
pack-priv void
visit(GeneratedMessageLite.Visitor visitor, MessageType other)

Inherited from com.google.protobuf.AbstractMessageLite:
addAlladdAllcheckByteStringIsUtf8newUninitializedMessageExceptiontoByteArraytoByteStringwriteDelimitedTowriteTo