Package com.google.protobuf
Class LazyField
- java.lang.Object
-
- com.google.protobuf.LazyFieldLite
-
- com.google.protobuf.LazyField
-
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
LazyFieldLitebut this class can contain a default instance of the message to providehashCode(),equals(), andtoString().
-
-
Field Summary
-
Fields inherited from class com.google.protobuf.LazyFieldLite
value
-
-
Constructor Summary
Constructors Constructor Description LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()-
Methods inherited from class com.google.protobuf.LazyFieldLite
clear, computeMessageSetExtensionSize, computeSize, computeSizeNoTag, containsDefaultInstance, ensureInitialized, fromValue, getSerializedSize, getValue, getValue, merge, mergeFrom, set, setByteString, setValue, toByteString
-
-
-
-
Constructor Detail
-
LazyField
public LazyField(MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
-
-
Method Detail
-
hashCode
public int hashCode()
- Overrides:
hashCodein classLazyFieldLite
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classLazyFieldLite
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-