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
NameDescription
descriptorDescriptors.Descriptor
camelCaseNamesString[]

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
NameDescription
descriptorDescriptors.Descriptor

The type's descriptor.

camelCaseNamesString[]

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

messageClassClass<? extends com.google.protobuf.GeneratedMessageV3>

The message type.

builderClassClass<? 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
NameDescription
messageClassClass<? extends com.google.protobuf.GeneratedMessageV3>

The message type.

builderClassClass<? extends com.google.protobuf.GeneratedMessageV3.Builder>

The builder type.

Returns
TypeDescription
GeneratedMessageV3.FieldAccessorTable

this