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

Public Member Functions

boolean isSupported (Class<?> clazz)
 
MessageInfo messageInfoFor (Class<?> clazz)
 

Static Public Member Functions

static Proto3MessageLiteInfoFactory getInstanceForRawMessageInfo ()
 
static Proto3MessageLiteInfoFactory getInstanceForStructuralMessageInfo ()
 

Private Member Functions

StructuralMessageInfo newMessageInfoForProto3EmptyLite ()
 
MessageInfo newRawMessageInfoForProto3MessageLite ()
 
 Proto3MessageLiteInfoFactory (boolean produceRawMessageInfo)
 
MessageInfo rawMessageInfoFor (Class<?> clazz)
 
MessageInfo structuralMessageInfoFor (Class<?> clazz)
 

Static Private Member Functions

static Field field (Class<?> clazz, String name)
 
static void lookupFieldsByName (StructuralMessageInfo.Builder builder)
 
static FieldInfo mapFieldInfo (Class<?> clazz, String fieldName, int fieldNumber)
 
static StructuralMessageInfo newMessageInfoForProto3MessageLite ()
 
static StructuralMessageInfo newMessageInfoForProto3MessageLiteWithMaps ()
 

Private Attributes

final boolean produceRawMessageInfo
 

Static Private Attributes

static final Proto3MessageLiteInfoFactory instanceForRawMessageInfo
 
static final Proto3MessageLiteInfoFactory instanceForStructuralMessageInfo
 

Detailed Description

A factory that generates a hard-coded info for Proto3MessageLite.

Definition at line 44 of file Proto3MessageLiteInfoFactory.java.

Constructor & Destructor Documentation

◆ Proto3MessageLiteInfoFactory()

com.google.protobuf.Proto3MessageLiteInfoFactory.Proto3MessageLiteInfoFactory ( boolean  produceRawMessageInfo)
inlineprivate

Definition at line 60 of file Proto3MessageLiteInfoFactory.java.

Member Function Documentation

◆ field()

static Field com.google.protobuf.Proto3MessageLiteInfoFactory.field ( Class<?>  clazz,
String  name 
)
inlinestaticprivate

Definition at line 797 of file Proto3MessageLiteInfoFactory.java.

◆ getInstanceForRawMessageInfo()

static Proto3MessageLiteInfoFactory com.google.protobuf.Proto3MessageLiteInfoFactory.getInstanceForRawMessageInfo ( )
inlinestatic

Definition at line 50 of file Proto3MessageLiteInfoFactory.java.

◆ getInstanceForStructuralMessageInfo()

static Proto3MessageLiteInfoFactory com.google.protobuf.Proto3MessageLiteInfoFactory.getInstanceForStructuralMessageInfo ( )
inlinestatic

Definition at line 54 of file Proto3MessageLiteInfoFactory.java.

◆ isSupported()

boolean com.google.protobuf.Proto3MessageLiteInfoFactory.isSupported ( Class<?>  clazz)
inline

Definition at line 65 of file Proto3MessageLiteInfoFactory.java.

◆ lookupFieldsByName()

static void com.google.protobuf.Proto3MessageLiteInfoFactory.lookupFieldsByName ( StructuralMessageInfo.Builder  builder)
inlinestaticprivate

Definition at line 175 of file Proto3MessageLiteInfoFactory.java.

◆ mapFieldInfo()

static FieldInfo com.google.protobuf.Proto3MessageLiteInfoFactory.mapFieldInfo ( Class<?>  clazz,
String  fieldName,
int  fieldNumber 
)
inlinestaticprivate

Definition at line 805 of file Proto3MessageLiteInfoFactory.java.

◆ messageInfoFor()

MessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.messageInfoFor ( Class<?>  clazz)
inline

Definition at line 70 of file Proto3MessageLiteInfoFactory.java.

◆ newMessageInfoForProto3EmptyLite()

StructuralMessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.newMessageInfoForProto3EmptyLite ( )
inlineprivate

Definition at line 389 of file Proto3MessageLiteInfoFactory.java.

◆ newMessageInfoForProto3MessageLite()

static StructuralMessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.newMessageInfoForProto3MessageLite ( )
inlinestaticprivate

Creates a new hard-coded info for Proto3MessageLite. Each time this is called, we manually go through the entire process of what a message would do if it self-registered its own info, including looking up each field by name. This is done for benchmarking purposes, so that we get a more accurate representation of the time it takes to perform this process.

Definition at line 169 of file Proto3MessageLiteInfoFactory.java.

◆ newMessageInfoForProto3MessageLiteWithMaps()

static StructuralMessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.newMessageInfoForProto3MessageLiteWithMaps ( )
inlinestaticprivate

Definition at line 395 of file Proto3MessageLiteInfoFactory.java.

◆ newRawMessageInfoForProto3MessageLite()

MessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.newRawMessageInfoForProto3MessageLite ( )
inlineprivate

Definition at line 82 of file Proto3MessageLiteInfoFactory.java.

◆ rawMessageInfoFor()

MessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.rawMessageInfoFor ( Class<?>  clazz)
inlineprivate

Definition at line 74 of file Proto3MessageLiteInfoFactory.java.

◆ structuralMessageInfoFor()

MessageInfo com.google.protobuf.Proto3MessageLiteInfoFactory.structuralMessageInfoFor ( Class<?>  clazz)
inlineprivate

Definition at line 151 of file Proto3MessageLiteInfoFactory.java.

Member Data Documentation

◆ instanceForRawMessageInfo

final Proto3MessageLiteInfoFactory com.google.protobuf.Proto3MessageLiteInfoFactory.instanceForRawMessageInfo
staticprivate
Initial value:

Definition at line 45 of file Proto3MessageLiteInfoFactory.java.

◆ instanceForStructuralMessageInfo

final Proto3MessageLiteInfoFactory com.google.protobuf.Proto3MessageLiteInfoFactory.instanceForStructuralMessageInfo
staticprivate
Initial value:

Definition at line 47 of file Proto3MessageLiteInfoFactory.java.

◆ produceRawMessageInfo

final boolean com.google.protobuf.Proto3MessageLiteInfoFactory.produceRawMessageInfo
private

Definition at line 58 of file Proto3MessageLiteInfoFactory.java.


The documentation for this class was generated from the following file:
com.google.protobuf.Proto3MessageLiteInfoFactory.Proto3MessageLiteInfoFactory
Proto3MessageLiteInfoFactory(boolean produceRawMessageInfo)
Definition: Proto3MessageLiteInfoFactory.java:60


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