public class LazyFieldLite extends Object
| Modifier and Type | Field and Description |
|---|---|
protected MessageLite |
value
|
| Constructor and Description |
|---|
LazyFieldLite()
|
LazyFieldLite(ExtensionRegistryLite
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
|
boolean |
containsDefaultInstance()
|
protected void |
ensureInitialized(MessageLite
|
static LazyFieldLite |
fromValue(MessageLite
|
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
Returns message instance.
|
void |
merge(LazyFieldLite
|
void |
setByteString(ByteString
|
MessageLite |
setValue(MessageLite
LazyField is not thread-safe for write access.
|
ByteString |
toByteString()
|
protected volatile MessageLitevalue
public LazyFieldLite(ExtensionRegistryLiteextensionRegistry, ByteString bytes)
public LazyFieldLite()
public static LazyFieldLitefromValue(MessageLite value)
public boolean containsDefaultInstance()
public void clear()
public MessageLitegetValue(MessageLite defaultInstance)
defaultInstance.getParserForType().
defaultInstance - its message's default instance. It's also used to get parser for the message type.
public MessageLitesetValue(MessageLite value)
public void merge(LazyFieldLitevalue)
public void setByteString(ByteStringbytes, ExtensionRegistryLite extensionRegistry)
public ExtensionRegistryLitegetExtensionRegistry()
public int getSerializedSize()
public ByteStringtoByteString()
protected void ensureInitialized(MessageLitedefaultInstance)