I'm currently building a Google Cloud Dataflow job which parses XML files and saves the entries using Google Datastore, bu the different Java libraries seem to be very confusing.
First I found com.google.datastore.v1, which works great with Dataflow, but later on I realized that the option to excludes fields from being indexed is missing. (Most of my fields do not need an index and will never be used in a query.)
Then I found com.google.cloud.datastore, which has a method named "setExcludeFromIndexes" to achieve exactly what I was looking for, but Dataflow is not able to save entities generated using this library.
Is one of the libraries the newer one or what is the difference at all? And is there a way to disable indexes for single fields using the v1-library?