Add helpers.set_protobuf_value.

Handles compount fields (entity, key) not assignable via setattr.
Use helpers.set_protobuf_value to support composite types.