Title: Overloads for flattened ByteString method args · Issue #3590 · googleapis/google-cloud-java · GitHub
Open Graph Title: Overloads for flattened ByteString method args · Issue #3590 · googleapis/google-cloud-java
X Title: Overloads for flattened ByteString method args · Issue #3590 · googleapis/google-cloud-java
Description: It would be nice if flattened RPC calls had overloads that accepted standard Java types (i.e. a Java byte[] and/or ByteBuffer) instead of always requiring a protobuf ByteString. The latter ends up leaking an implementation detail to call...
Open Graph Description: It would be nice if flattened RPC calls had overloads that accepted standard Java types (i.e. a Java byte[] and/or ByteBuffer) instead of always requiring a protobuf ByteString. The latter ends up ...
X Description: It would be nice if flattened RPC calls had overloads that accepted standard Java types (i.e. a Java byte[] and/or ByteBuffer) instead of always requiring a protobuf ByteString. The latter ends up ...
Opengraph URL: https://github.com/googleapis/google-cloud-java/issues/3590
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Overloads for flattened ByteString method args","articleBody":"It would be nice if flattened RPC calls had overloads that accepted standard Java types (i.e. a Java `byte[]` and/or `ByteBuffer`) instead of always requiring a protobuf `ByteString`. The latter ends up leaking an implementation detail to callers.\r\n\r\nAs an example, in Cloud KMS we currently have:\r\n```\r\nString textRaw = \"The quick brown fox jumps over the lazy dog!\";\r\nbyte[] textBytes = textRaw.getBytes(StandardCharsets.UTF_8);\r\nEncryptResponse encryptResp = client.encrypt(keyPath, ByteString.copyFrom(textBytes));\r\n```\r\n\r\nIt would be nice if the final line could be\r\n```\r\nEncryptResponse encryptResp = client.encrypt(keyPath, textBytes);\r\n```\r\nor\r\n```\r\nEncryptResponse encryptResp = client.encrypt(keyPath, ByteBuffer.wrap(textBytes));\r\n```","author":{"url":"https://github.com/bdhess","@type":"Person","name":"bdhess"},"datePublished":"2018-08-22T16:10:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/3590/google-cloud-java/issues/3590"}
| 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:85180ed9-1cda-4a45-f41c-ff691eed8803 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C100:6A6D7:AD6804:EC39B9:6A4C90C5 |
| html-safe-nonce | f04d9cdc2b711fd4708af3789bca309acedfb4cb3dab68b671ebed2f8c0c58b7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMTAwOjZBNkQ3OkFENjgwNDpFQzM5Qjk6NkE0QzkwQzUiLCJ2aXNpdG9yX2lkIjoiNzgwOTgxNzI0MjYwNjgwMTA5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 657057908ced723dc353e438efb7f017ee0582ce3789ba5c87a275967970cbc0 |
| hovercard-subject-tag | issue:353024470 |
| 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/3590/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b46f7e420d446550e69129818827079f1dfab8baae2b7a586fd8c0dabb478674/googleapis/google-cloud-java/issues/3590 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b46f7e420d446550e69129818827079f1dfab8baae2b7a586fd8c0dabb478674/googleapis/google-cloud-java/issues/3590 |
| og:image:alt | It would be nice if flattened RPC calls had overloads that accepted standard Java types (i.e. a Java byte[] and/or ByteBuffer) instead of always requiring a protobuf ByteString. The latter ends up ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bdhess |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| 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 | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width