Class GeneratedMessageV3.FieldAccessorTable (3.19.4)

public static final class GeneratedMessageV3.FieldAccessorTable

Users should ignore this class. This class provides the implementation with access to the fields of a message object using Java reflection.

Inheritance

java.lang.Object > GeneratedMessageV3.FieldAccessorTable

Constructors

FieldAccessorTable(Descriptors.Descriptor descriptor, String[] camelCaseNames)

public FieldAccessorTable(Descriptors.Descriptor descriptor, String[] camelCaseNames)

Construct a FieldAccessorTable for a particular message class without initializing FieldAccessors.

Parameters
Name Description
descriptor Descriptors.Descriptor
camelCaseNames String[]

FieldAccessorTable(Descriptors.Descriptor descriptor, String[] camelCaseNames, Class<? extends GeneratedMessageV3> messageClass, Class<? extends GeneratedMessageV3.Builder> builderClass)

public FieldAccessorTable(Descriptors.Descriptor descriptor, String[] camelCaseNames, Class<? extends GeneratedMessageV3> messageClass, Class<? extends GeneratedMessageV3.Builder> builderClass)

Construct a FieldAccessorTable for a particular message class. Only one FieldAccessorTable should ever be constructed per class.

Parameters
Name Description
descriptor Descriptors.Descriptor

The type's descriptor.

camelCaseNames String[]

The camelcase names of all fields in the message. These are used to derive the accessor method names.

messageClass Class<? extends com.google.protobuf.GeneratedMessageV3>

The message type.

builderClass Class<? extends com.google.protobuf.GeneratedMessageV3.Builder>

The builder type.

Methods

ensureFieldAccessorsInitialized(Class<? extends GeneratedMessageV3> messageClass, Class<? extends GeneratedMessageV3.Builder> builderClass)

public GeneratedMessageV3.FieldAccessorTable ensureFieldAccessorsInitialized(Class<? extends GeneratedMessageV3> messageClass, Class<? extends GeneratedMessageV3.Builder> builderClass)

Ensures the field accessors are initialized. This method is thread-safe.

Parameters
Name Description
messageClass Class<? extends com.google.protobuf.GeneratedMessageV3>

The message type.

builderClass Class<? extends com.google.protobuf.GeneratedMessageV3.Builder>

The builder type.

Returns
Type Description
GeneratedMessageV3.FieldAccessorTable

this