Title: Entity.builder().set(String, long) doesn't exist? · Issue #36 · googleapis/google-cloud-java · GitHub
Open Graph Title: Entity.builder().set(String, long) doesn't exist? · Issue #36 · googleapis/google-cloud-java
X Title: Entity.builder().set(String, long) doesn't exist? · Issue #36 · googleapis/google-cloud-java
Description: I have the following code: entity = Entity.builder(key) .set("name", "John Doe") .set("age", 30L) // I also tried 30 the int value, which failed similarly. .set("updated", false) .build(); This fails with the following error: [ERROR] Fai...
Open Graph Description: I have the following code: entity = Entity.builder(key) .set("name", "John Doe") .set("age", 30L) // I also tried 30 the int value, which failed similarly. .set("updated", false) .build(); This fai...
X Description: I have the following code: entity = Entity.builder(key) .set("name", "John Doe") .set("age", 30L) // I also tried 30 the int value, which failed similarly. .set("...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/36
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Entity.builder().set(String, long) doesn't exist?","articleBody":"I have the following code:\n\n``` java\n\nentity = Entity.builder(key)\n .set(\"name\", \"John Doe\")\n .set(\"age\", 30L) // I also tried 30 the int value, which failed similarly.\n .set(\"updated\", false)\n .build();\n```\n\nThis fails with the following error:\n\n``` bash\n[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile (default-compile) on project hello-datastore: Compilation failure: Compilation failure:\n[ERROR] /usr/local/google/home/jjg/gcdjavasample/hello-datastore/src/main/java/org/geewax/hellodatastore/HelloDatastore.java:[18,58] error: incompatible types\n[ERROR] \n[ERROR] could not parse error message: required: KeyFactory\n[ERROR] found: Builder\n[ERROR] /usr/local/google/home/jjg/gcdjavasample/hello-datastore/src/main/java/org/geewax/hellodatastore/HelloDatastore.java:29: error: no suitable method found for set(String,long)\n[ERROR] .set(\"age\", 30L)\n[ERROR] ^\n[ERROR] \n[ERROR] method Builder.set(String,Blob) is not applicable\n[ERROR] (actual argument long cannot be converted to Blob by method invocation conversion)\n[ERROR] method Builder.set(String,List) is not applicable\n[ERROR] (actual argument long cannot be converted to List by method invocation conversion)\n[ERROR] method Builder.set(String,FullEntity) is not applicable\n[ERROR] (actual argument long cannot be converted to FullEntity by method invocation conversion)\n[ERROR] method Builder.set(String,Key) is not applicable\n[ERROR] (actual argument long cannot be converted to Key by method invocation conversion)\n[ERROR] method Builder.set(String,DateTime) is not applicable\n[ERROR] (actual argument long cannot be converted to DateTime by method invocation conversion)\n[ERROR] method Builder.set(String,boolean) is not applicable\n[ERROR] (actual argument long cannot be converted to boolean by method invocation conversion)\n[ERROR] method Builder.set(String,String) is not applicable\n[ERROR] (actual argument long cannot be converted to String by method invocation conversion)\n[ERROR] method Builder.set(String,Value) is not applicable\n[ERROR] (actual argument long cannot be converted to Value by method invocation conversion)\n[ERROR] /usr/local/google/home/jjg/gcdjavasample/hello-datastore/src/main/java/org/geewax/hellodatastore/HelloDatastore.java:[32,15] error: cannot find symbol\n[ERROR] \n```\n\nIf I take away the `.set(\"name\", \"John Doe\")` I get a different error... \n","author":{"url":"https://github.com/jgeewax","@type":"Person","name":"jgeewax"},"datePublished":"2015-03-19T18:31:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/36/google-cloud-java/issues/36"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d692833c-cc53-f871-d913-36048785118c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDC4:35267D:EE3CD6:1475717:6A4DD86A |
| html-safe-nonce | a4cdeb52c2c829a20fccb562a85ca12646802103b1d9498ad38250dc309e238b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREM0OjM1MjY3RDpFRTNDRDY6MTQ3NTcxNzo2QTRERDg2QSIsInZpc2l0b3JfaWQiOiI4MjU2NDgxMTc5ODI3Mjk2MzYyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 5e0cb2c85cd1ef27577f5bf4da171fe20e31bcf3cf06fbd3203ff62edca6dac2 |
| hovercard-subject-tag | issue:63059161 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/google-cloud-java/36/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1c8cc2a22360db479030bb0f6a0cdcb6afd20db0be80d8eabfd1319b7a02064f/googleapis/google-cloud-java/issues/36 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1c8cc2a22360db479030bb0f6a0cdcb6afd20db0be80d8eabfd1319b7a02064f/googleapis/google-cloud-java/issues/36 |
| og:image:alt | I have the following code: entity = Entity.builder(key) .set("name", "John Doe") .set("age", 30L) // I also tried 30 the int value, which failed similarly. .set("updated", false) .build(); This fai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jgeewax |
| hostname | github.com |
| expected-hostname | github.com |
| None | 06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-java git https://github.com/googleapis/google-cloud-java.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 26181278 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 26181278 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 1d344bdb7547fe6bca17a59bb2b8aac3dc9532a0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width