public abstract static class GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>> extends GeneratedMessageLite implements GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType>
GeneratedMessage.ExtendableMessage
.Modifier and Type | Class and Description |
---|---|
protected class |
GeneratedMessageLite.ExtendableMessage.ExtensionWriter
Used by subclasses to serialize extensions.
|
GeneratedMessageLite.Builder<MessageType extends GeneratedMessageLite,BuilderType extends GeneratedMessageLite.Builder>, GeneratedMessageLite.ExtendableBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>,BuilderType extends GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, GeneratedMessageLite.ExtendableMessage<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>, GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage>, GeneratedMessageLite.GeneratedExtension<ContainingType extends MessageLite,Type>
memoizedHashCode
Modifier | Constructor and Description |
---|---|
protected |
GeneratedMessageLite.ExtendableMessage() |
protected |
GeneratedMessageLite.ExtendableMessage(GeneratedMessageLite.ExtendableBuilder<MessageType,?> builder) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
extensionsAreInitialized()
Called by subclasses to check if all extensions are initialized.
|
protected int |
extensionsSerializedSize()
Called by subclasses to compute the size of extensions.
|
protected int |
extensionsSerializedSizeAsMessageSet() |
<Type> Type |
getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,List<Type>> extension,
int index)
Get one element of a repeated extension.
|
<Type> Type |
getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Get the value of an extension.
|
<Type> int |
getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,List<Type>> extension)
Get the number of elements in a repeated extension.
|
<Type> boolean |
hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
Check if a singular extension is present.
|
protected void |
makeExtensionsImmutable()
Used by parsing constructors in generated classes.
|
protected GeneratedMessageLite.ExtendableMessage.ExtensionWriter |
newExtensionWriter() |
protected GeneratedMessageLite.ExtendableMessage.ExtensionWriter |
newMessageSetExtensionWriter() |
protected boolean |
parseUnknownField(CodedInputStream input,
CodedOutputStream unknownFieldsCodedOutput,
ExtensionRegistryLite extensionRegistry,
int tag)
Called by subclasses to parse an unknown field or an extension.
|
getParserForType, newRepeatedGeneratedExtension, newSingularGeneratedExtension, writeReplace
checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDefaultInstanceForType, isInitialized
getSerializedSize, newBuilderForType, toBuilder, writeTo
protected GeneratedMessageLite.ExtendableMessage()
protected GeneratedMessageLite.ExtendableMessage(GeneratedMessageLite.ExtendableBuilder<MessageType,?> builder)
public final <Type> boolean hasExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
hasExtension
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public final <Type> int getExtensionCount(GeneratedMessageLite.GeneratedExtension<MessageType,List<Type>> extension)
getExtensionCount
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public final <Type> Type getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,Type> extension)
getExtension
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
public final <Type> Type getExtension(GeneratedMessageLite.GeneratedExtension<MessageType,List<Type>> extension, int index)
getExtension
in interface GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends GeneratedMessageLite.ExtendableMessage<MessageType>>
protected boolean extensionsAreInitialized()
protected boolean parseUnknownField(CodedInputStream input, CodedOutputStream unknownFieldsCodedOutput, ExtensionRegistryLite extensionRegistry, int tag) throws IOException
parseUnknownField
in class GeneratedMessageLite
true
unless the tag is an end-group tag.IOException
protected void makeExtensionsImmutable()
makeExtensionsImmutable
in class GeneratedMessageLite
protected GeneratedMessageLite.ExtendableMessage.ExtensionWriter newExtensionWriter()
protected GeneratedMessageLite.ExtendableMessage.ExtensionWriter newMessageSetExtensionWriter()
protected int extensionsSerializedSize()
protected int extensionsSerializedSizeAsMessageSet()
Copyright © 2008-2014 Google. All Rights Reserved.