public class LazyFieldLite extends Object
Modifier and Type | Field and Description |
---|---|
protected MessageLite |
value |
Constructor and Description |
---|
LazyFieldLite() |
LazyFieldLite(ExtensionRegistryLite extensionRegistry,
ByteString bytes) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsDefaultInstance() |
protected void |
ensureInitialized(MessageLite defaultInstance) |
static LazyFieldLite |
fromValue(MessageLite value) |
ExtensionRegistryLite |
getExtensionRegistry() |
int |
getSerializedSize()
Due to the optional field can be duplicated at the end of serialized
bytes, which will make the serialized size changed after LazyField
parsed.
|
MessageLite |
getValue(MessageLite defaultInstance)
Returns message instance.
|
void |
merge(LazyFieldLite value) |
void |
setByteString(ByteString bytes,
ExtensionRegistryLite extensionRegistry) |
MessageLite |
setValue(MessageLite value)
LazyField is not thread-safe for write access.
|
ByteString |
toByteString() |
protected volatile MessageLite value
public LazyFieldLite(ExtensionRegistryLite extensionRegistry, ByteString bytes)
public LazyFieldLite()
public static LazyFieldLite fromValue(MessageLite value)
public boolean containsDefaultInstance()
public void clear()
public MessageLite getValue(MessageLite defaultInstance)
defaultInstance.getParserForType()
.defaultInstance
- its message's default instance. It's also used to get parser for the
message type.public MessageLite setValue(MessageLite value)
public void merge(LazyFieldLite value)
public void setByteString(ByteString bytes, ExtensionRegistryLite extensionRegistry)
public ExtensionRegistryLite getExtensionRegistry()
public int getSerializedSize()
public ByteString toByteString()
protected void ensureInitialized(MessageLite defaultInstance)
Copyright © 2008-2014 Google. All Rights Reserved.