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

Public Member Functions

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

Static Public Member Functions

static Proto3MessageInfoFactory getInstance ()
 

Private Member Functions

StructuralMessageInfo newMessageInfoForProto3Empty ()
 
StructuralMessageInfo newMessageInfoForProto3MessageWithMaps ()
 
 Proto3MessageInfoFactory ()
 

Static Private Member Functions

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

Static Private Attributes

static final Proto3MessageInfoFactory INSTANCE = new Proto3MessageInfoFactory()
 

Detailed Description

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

Definition at line 45 of file Proto3MessageInfoFactory.java.

Constructor & Destructor Documentation

◆ Proto3MessageInfoFactory()

com.google.protobuf.Proto3MessageInfoFactory.Proto3MessageInfoFactory ( )
inlineprivate

Definition at line 48 of file Proto3MessageInfoFactory.java.

Member Function Documentation

◆ field() [1/2]

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

Definition at line 487 of file Proto3MessageInfoFactory.java.

◆ field() [2/2]

static Field com.google.protobuf.Proto3MessageInfoFactory.field ( String  name)
inlinestaticprivate

Definition at line 483 of file Proto3MessageInfoFactory.java.

◆ getInstance()

static Proto3MessageInfoFactory com.google.protobuf.Proto3MessageInfoFactory.getInstance ( )
inlinestatic

Definition at line 50 of file Proto3MessageInfoFactory.java.

◆ isSupported()

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

Definition at line 55 of file Proto3MessageInfoFactory.java.

◆ lookupFieldsByName()

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

Definition at line 84 of file Proto3MessageInfoFactory.java.

◆ mapFieldInfo()

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

Definition at line 495 of file Proto3MessageInfoFactory.java.

◆ messageInfoFor()

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

Definition at line 60 of file Proto3MessageInfoFactory.java.

◆ newMessageInfoForProto3Empty()

StructuralMessageInfo com.google.protobuf.Proto3MessageInfoFactory.newMessageInfoForProto3Empty ( )
inlineprivate

Definition at line 174 of file Proto3MessageInfoFactory.java.

◆ newMessageInfoForProto3Message()

static StructuralMessageInfo com.google.protobuf.Proto3MessageInfoFactory.newMessageInfoForProto3Message ( )
inlinestaticprivate

Creates a new hard-coded info for Proto3Message. 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 78 of file Proto3MessageInfoFactory.java.

◆ newMessageInfoForProto3MessageWithMaps()

StructuralMessageInfo com.google.protobuf.Proto3MessageInfoFactory.newMessageInfoForProto3MessageWithMaps ( )
inlineprivate

Definition at line 180 of file Proto3MessageInfoFactory.java.

Member Data Documentation

◆ INSTANCE

final Proto3MessageInfoFactory com.google.protobuf.Proto3MessageInfoFactory.INSTANCE = new Proto3MessageInfoFactory()
staticprivate

Definition at line 46 of file Proto3MessageInfoFactory.java.


The documentation for this class was generated from the following file:


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