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

Public Member Functions

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

Static Public Member Functions

static Proto2MessageInfoFactory getInstance ()
 

Private Member Functions

 Proto2MessageInfoFactory ()
 

Static Private Member Functions

static Internal.EnumVerifier asVerifier (final Internal.EnumLiteMap<?> map)
 
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 newMessageInfoForExtensionFieldGroup49 ()
 
static StructuralMessageInfo newMessageInfoForExtensionFieldGroupList51 ()
 
static StructuralMessageInfo newMessageInfoForFieldGroup49 ()
 
static StructuralMessageInfo newMessageInfoForFieldGroup69 ()
 
static StructuralMessageInfo newMessageInfoForFieldGroupList51 ()
 
static StructuralMessageInfo newMessageInfoForFieldRequiredGroup88 ()
 
static StructuralMessageInfo newMessageInfoForProto2Empty ()
 
static StructuralMessageInfo newMessageInfoForProto2Message ()
 
static StructuralMessageInfo newMessageInfoForProto2MessageWithExtensions ()
 
static StructuralMessageInfo newMessageInfoForProto2MessageWithMaps ()
 
static StructuralMessageInfo newMessageInfoForRequiredNestedMessage ()
 

Static Private Attributes

static final Proto2MessageInfoFactory INSTANCE = new Proto2MessageInfoFactory()
 

Detailed Description

A factory that generates a hard-coded message info for Proto2Message.

Definition at line 55 of file Proto2MessageInfoFactory.java.

Constructor & Destructor Documentation

◆ Proto2MessageInfoFactory()

com.google.protobuf.Proto2MessageInfoFactory.Proto2MessageInfoFactory ( )
inlineprivate

Definition at line 58 of file Proto2MessageInfoFactory.java.

Member Function Documentation

◆ asVerifier()

static Internal.EnumVerifier com.google.protobuf.Proto2MessageInfoFactory.asVerifier ( final Internal.EnumLiteMap<?>  map)
inlinestaticprivate

Definition at line 884 of file Proto2MessageInfoFactory.java.

◆ field() [1/2]

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

Definition at line 876 of file Proto2MessageInfoFactory.java.

◆ field() [2/2]

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

Definition at line 872 of file Proto2MessageInfoFactory.java.

◆ getInstance()

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

Definition at line 60 of file Proto2MessageInfoFactory.java.

◆ isSupported()

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

Definition at line 65 of file Proto2MessageInfoFactory.java.

◆ lookupFieldsByName()

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

Definition at line 114 of file Proto2MessageInfoFactory.java.

◆ mapFieldInfo()

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

Definition at line 859 of file Proto2MessageInfoFactory.java.

◆ messageInfoFor()

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

Definition at line 70 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForExtensionFieldGroup49()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForExtensionFieldGroup49 ( )
inlinestaticprivate

Definition at line 519 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForExtensionFieldGroupList51()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForExtensionFieldGroupList51 ( )
inlinestaticprivate

Definition at line 535 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForFieldGroup49()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForFieldGroup49 ( )
inlinestaticprivate

Definition at line 427 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForFieldGroup69()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForFieldGroup69 ( )
inlinestaticprivate

Definition at line 459 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForFieldGroupList51()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForFieldGroupList51 ( )
inlinestaticprivate

Definition at line 443 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForFieldRequiredGroup88()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForFieldRequiredGroup88 ( )
inlinestaticprivate

Definition at line 491 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForProto2Empty()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForProto2Empty ( )
inlinestaticprivate

Definition at line 507 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForProto2Message()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForProto2Message ( )
inlinestaticprivate

Creates a new hard-coded info for Proto2Message. 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 104 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForProto2MessageWithExtensions()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForProto2MessageWithExtensions ( )
inlinestaticprivate

Definition at line 513 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForProto2MessageWithMaps()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForProto2MessageWithMaps ( )
inlinestaticprivate

Definition at line 551 of file Proto2MessageInfoFactory.java.

◆ newMessageInfoForRequiredNestedMessage()

static StructuralMessageInfo com.google.protobuf.Proto2MessageInfoFactory.newMessageInfoForRequiredNestedMessage ( )
inlinestaticprivate

Definition at line 475 of file Proto2MessageInfoFactory.java.

Member Data Documentation

◆ INSTANCE

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

Definition at line 56 of file Proto2MessageInfoFactory.java.


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


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