googleapis / google-cloud-datastore

Low-level, Protobuf-based Java and Python client libraries for Cloud Datastore. Check out google-cloud-java and google-cloud-python first!
https://cloud.google.com/datastore
Apache License 2.0
215 stars 133 forks source link

There is no way to makeValue for Text type, instead of String #179

Open afornie opened 7 years ago

afornie commented 7 years ago

There is no way to makeValue for Text type, instead of String. That's a problem when for any reason it is mandatory to have it a Text.

I guess there are other examples, but my case is another appengine code uses a framework that will fail when trying to fill a Java class field that is supposed to be a Text, with a String.

Cannot cast object 'Hello' with class 'java.lang.String' to class 'com.google.appengine.api.datastore.Text'   
igorrendulic commented 2 months ago

I guess it’s not going to make the cut! They’re ghosting their own functionality—talk about getting friend-zoned by your own code!