Package com.google.protobuf
Class LazyField
java.lang.Object
com.google.protobuf.LazyFieldLite
com.google.protobuf.LazyField
LazyField encapsulates the logic of lazily parsing message fields. It stores
the message in a ByteString initially and then parse it on-demand.
Most of key methods are implemented in
LazyFieldLite
but this class
can contain default instance of the message to provide hashCode()
,
euqals()
and toString()
.- Author:
- xiangl@google.com (Xiang Li)
-
Field Summary
Fields inherited from class com.google.protobuf.LazyFieldLite
value
-
Constructor Summary
ConstructorsConstructorDescriptionLazyField
(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes) -
Method Summary
Methods inherited from class com.google.protobuf.LazyFieldLite
clear, ensureInitialized, fromValue, getExtensionRegistry, getSerializedSize, getValue, merge, setByteString, setValue, toByteString
-
Constructor Details
-
LazyField
public LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
-
-
Method Details
-
containsDefaultInstance
public boolean containsDefaultInstance()- Overrides:
containsDefaultInstance
in classLazyFieldLite
-
getValue
-
hashCode
public int hashCode() -
equals
-
toString
-