I seem unable to find a way to verify the value of a field inside a protobuf message without explicitly invoking its getter.
I see examples around that make usage of
I am not sure you are looking for Descriptors#findFieldByName(name). You can try with followings:
Descriptors#findFieldByName(name)
FieldDescriptor fieldDescriptor = message.getDescriptorForType().findFieldByName("fieldXyz"); Object value = message.getField(fieldDescriptor);