@Internal
public final class GeneratedAccessors
extends java.lang.Object
Each Protobuf field results in a number of accessor methods. The count and naming of the methods depends on the field type.
Modifier and Type | Method and Description |
---|---|
static GeneratedAccessors |
forField(io.spine.code.proto.FieldName name,
FieldType type)
Creates an instance of
GeneratedAccessors for the given field. |
com.google.common.collect.ImmutableSet<java.lang.String> |
names()
Obtains all the names of the accessor methods.
|
public static GeneratedAccessors forField(io.spine.code.proto.FieldName name, FieldType type)
GeneratedAccessors
for the given field.name
- the name of the field associated with the accessorstype
- the type of the field associated with the accessorspublic com.google.common.collect.ImmutableSet<java.lang.String> names()
The accessor methods may have different parameters. Some of the obtained names may reference several method overloads.