public abstract class GeneratedMessageLite extends AbstractMessageLite implements Serializable
GeneratedMessage
.Modifier and Type | Class and Description |
---|---|
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 . |
Modifier and Type | Field and Description |
---|---|
protected UnknownFieldSetLite |
unknownFields
For use by generated code only.
|
memoizedHashCode
Constructor and Description |
---|
GeneratedMessageLite() |
Modifier and Type | Method and Description |
---|---|
Parser<? extends MessageLite> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
static <ContainingType extends MessageLite,Type> |
newRepeatedGeneratedExtension(ContainingType containingTypeDefaultInstance,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
boolean isPacked,
Class singularType)
For use by generated code only.
|
static <ContainingType extends MessageLite,Type> |
newSingularGeneratedExtension(ContainingType containingTypeDefaultInstance,
Type defaultValue,
MessageLite messageDefaultInstance,
Internal.EnumLiteMap<?> enumTypeMap,
int number,
WireFormat.FieldType type,
Class singularType)
For use by generated code only.
|
protected static boolean |
parseUnknownField(CodedInputStream input,
UnknownFieldSetLite.Builder unknownFields,
ExtensionRegistryLite extensionRegistry,
int tag)
Called by subclasses to parse an unknown field.
|
protected static <MessageType extends MessageLite> |
parseUnknownField(com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite.ExtensionDescriptor> extensions,
MessageType defaultInstance,
CodedInputStream input,
UnknownFieldSetLite.Builder unknownFields,
ExtensionRegistryLite extensionRegistry,
int tag)
Parse an unknown field or an extension.
|
protected Object |
writeReplace()
Replaces this object in the output stream with a serialized form.
|
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSerializedSize, newBuilderForType, toBuilder, writeTo
getDefaultInstanceForType, isInitialized
protected UnknownFieldSetLite unknownFields
public Parser<? extends MessageLite> getParserForType()
MessageLite
getParserForType
in interface MessageLite
protected static boolean parseUnknownField(CodedInputStream input, UnknownFieldSetLite.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException
true
unless the tag is an end-group tag.IOException
protected static <MessageType extends MessageLite> boolean parseUnknownField(com.google.protobuf.FieldSet<com.google.protobuf.GeneratedMessageLite.ExtensionDescriptor> extensions, MessageType defaultInstance, CodedInputStream input, UnknownFieldSetLite.Builder unknownFields, ExtensionRegistryLite extensionRegistry, int tag) throws IOException
true
unless the tag is an end-group tag.IOException
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, Class singularType)
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, Class singularType)
protected Object writeReplace() throws ObjectStreamException
return super.writeReplace();
ObjectStreamException
Copyright © 2008–2015 Google. All rights reserved.