Classes | Public Member Functions | Private Attributes | List of all members
com.google.protobuf.LazyField Class Reference
Inheritance diagram for com.google.protobuf.LazyField:
Inheritance graph
[legend]

Classes

class  LazyEntry
 
class  LazyIterator
 

Public Member Functions

boolean containsDefaultInstance ()
 
boolean equals (Object obj)
 
MessageLite getValue ()
 
int hashCode ()
 
 LazyField (MessageLite defaultInstance, ExtensionRegistryLite extensionRegistry, ByteString bytes)
 
String toString ()
 
- Public Member Functions inherited from com.google.protobuf.LazyFieldLite
void clear ()
 
int getSerializedSize ()
 
MessageLite getValue (MessageLite defaultInstance)
 
 LazyFieldLite ()
 
 LazyFieldLite (ExtensionRegistryLite extensionRegistry, ByteString bytes)
 
void merge (LazyFieldLite other)
 
void mergeFrom (CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
 
void set (LazyFieldLite other)
 
void setByteString (ByteString bytes, ExtensionRegistryLite extensionRegistry)
 
MessageLite setValue (MessageLite value)
 
ByteString toByteString ()
 

Private Attributes

final MessageLite defaultInstance
 

Additional Inherited Members

- Static Public Member Functions inherited from com.google.protobuf.LazyFieldLite
static LazyFieldLite fromValue (MessageLite value)
 
- Protected Member Functions inherited from com.google.protobuf.LazyFieldLite
void ensureInitialized (MessageLite defaultInstance)
 
- Protected Attributes inherited from com.google.protobuf.LazyFieldLite
volatile MessageLite value
 

Detailed Description

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

,

euqals()

and

.

Author
xiang.nosp@m.l@go.nosp@m.ogle..nosp@m.com (Xiang Li)

Definition at line 46 of file LazyField.java.

Constructor & Destructor Documentation

◆ LazyField()

com.google.protobuf.LazyField.LazyField ( MessageLite  defaultInstance,
ExtensionRegistryLite  extensionRegistry,
ByteString  bytes 
)
inline

Definition at line 54 of file LazyField.java.

Member Function Documentation

◆ containsDefaultInstance()

boolean com.google.protobuf.LazyField.containsDefaultInstance ( )
inline

Determines whether this LazyFieldLite instance represents the default instance of this type.

Reimplemented from com.google.protobuf.LazyFieldLite.

Definition at line 62 of file LazyField.java.

◆ equals()

boolean com.google.protobuf.LazyField.equals ( Object  obj)
inline

Reimplemented from com.google.protobuf.LazyFieldLite.

Definition at line 76 of file LazyField.java.

◆ getValue()

MessageLite com.google.protobuf.LazyField.getValue ( )
inline

Definition at line 66 of file LazyField.java.

◆ hashCode()

int com.google.protobuf.LazyField.hashCode ( )
inline

Reimplemented from com.google.protobuf.LazyFieldLite.

Definition at line 71 of file LazyField.java.

◆ toString()

String com.google.protobuf.LazyField.toString ( )
inline

Definition at line 81 of file LazyField.java.

Member Data Documentation

◆ defaultInstance

final MessageLite com.google.protobuf.LazyField.defaultInstance
private

Carry a message's default instance which is used by

,

euqals()

and

.

Definition at line 52 of file LazyField.java.


The documentation for this class was generated from the following file:
com.google.protobuf.LazyField.toString
String toString()
Definition: LazyField.java:81
com.google.protobuf.LazyField.hashCode
int hashCode()
Definition: LazyField.java:71


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:07