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)
 
boolean isSupported (Class<?> clazz)
 
MessageInfo messageInfoFor (Class<?> clazz)
 
MessageInfo messageInfoFor (Class<?> clazz)
 

Static Public Member Functions

static Proto3MessageInfoFactory getInstance ()
 
static Proto3MessageInfoFactory getInstance ()
 

Private Member Functions

StructuralMessageInfo newMessageInfoForProto3Empty ()
 
StructuralMessageInfo newMessageInfoForProto3Empty ()
 
StructuralMessageInfo newMessageInfoForProto3MessageWithMaps ()
 
StructuralMessageInfo newMessageInfoForProto3MessageWithMaps ()
 
 Proto3MessageInfoFactory ()
 
 Proto3MessageInfoFactory ()
 

Static Private Member Functions

static Field field (Class<?> clazz, String name)
 
static Field field (Class<?> clazz, String name)
 
static Field field (String name)
 
static Field field (String name)
 
static void lookupFieldsByName (StructuralMessageInfo.Builder builder)
 
static void lookupFieldsByName (StructuralMessageInfo.Builder builder)
 
static FieldInfo mapFieldInfo (Class<?> clazz, String fieldName, int fieldNumber)
 
static FieldInfo mapFieldInfo (Class<?> clazz, String fieldName, int fieldNumber)
 
static StructuralMessageInfo newMessageInfoForProto3Message ()
 
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 bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/Proto3MessageInfoFactory.java.

Constructor & Destructor Documentation

◆ Proto3MessageInfoFactory() [1/2]

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

◆ Proto3MessageInfoFactory() [2/2]

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

Member Function Documentation

◆ field() [1/4]

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

◆ field() [2/4]

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

◆ field() [3/4]

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

◆ field() [4/4]

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

◆ getInstance() [1/2]

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

◆ getInstance() [2/2]

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

◆ isSupported() [1/2]

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

◆ isSupported() [2/2]

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

◆ lookupFieldsByName() [1/2]

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

◆ lookupFieldsByName() [2/2]

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

◆ mapFieldInfo() [1/2]

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

◆ mapFieldInfo() [2/2]

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

◆ messageInfoFor() [1/2]

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

◆ messageInfoFor() [2/2]

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

◆ newMessageInfoForProto3Empty() [1/2]

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

◆ newMessageInfoForProto3Empty() [2/2]

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

◆ newMessageInfoForProto3Message() [1/2]

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 protobuf/java/core/src/test/java/com/google/protobuf/Proto3MessageInfoFactory.java.

◆ newMessageInfoForProto3Message() [2/2]

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 bloaty/third_party/protobuf/java/core/src/test/java/com/google/protobuf/Proto3MessageInfoFactory.java.

◆ newMessageInfoForProto3MessageWithMaps() [1/2]

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

◆ newMessageInfoForProto3MessageWithMaps() [2/2]

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

Member Data Documentation

◆ INSTANCE

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

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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:07