public
class
LazyField
extends
LazyFieldLite
LazyField encapsulates the logic of lazily parsing message fields. It stores the message in a ByteString initially and then parses it on-demand.
Most methods are implemented in LazyFieldLite
but this class can contain a
default instance of the message to provide hashCode()
, equals()
, and toString()
.
Constructors
LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
public
LazyField
(
MessageLite
defaultInstance
,
ExtensionRegistryLite
extensionRegistry
,
ByteString
bytes
)
defaultInstance
extensionRegistry
bytes
Methods
containsDefaultInstance()
public
boolean
containsDefaultInstance
()
Determines whether this LazyFieldLite instance represents the default instance of this type.
equals(Object obj)
public
boolean
equals
(
Object
obj
)
getValue()
public
MessageLite
getValue
()
hashCode()
public
int
hashCode
()
toString()
public
String
toString
()

