Comment #2 on issue 545 by Unable to set enum field via setField (Java Protobufs 2.5.0)

Looking at the code for SingularEnumFieldAccessor.set looks like it does

        valueOfMethod = getMethodOrDie(type, "valueOf",

      public void set(final Builder builder, final Object value) {
        super.set(builder, invokeOrDie(valueOfMethod, null, value));

Which means that you need to be passing it a EnumValueDescriptor instance.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to