GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Overloads for flattened ByteString method args · Issue #3590 · googleapis/google-cloud-java

Overloads for flattened ByteString method args #3590

New issue
Copy link
New issue
Copy link
Closed
Closed
Overloads for flattened ByteString method args#3590
Copy link
Assignees
bdhess
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Description

@bdhess
bdhess
opened on Aug 22, 2018
Issue body actions

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.

As an example, in Cloud KMS we currently have:

String textRaw = "The quick brown fox jumps over the lazy dog!";
byte[] textBytes = textRaw.getBytes(StandardCharsets.UTF_8);
EncryptResponse encryptResp = client.encrypt(keyPath, ByteString.copyFrom(textBytes));

It would be nice if the final line could be

EncryptResponse encryptResp = client.encrypt(keyPath, textBytes);

or

EncryptResponse encryptResp = client.encrypt(keyPath, ByteBuffer.wrap(textBytes));

Activity

  1. yihanzhen
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 22, 2018
  2. bdhess commented on Aug 22, 2018

    @bdhess
    bdhess
    on Aug 22, 2018
    Author
    More actions

    Withdrawing this request, for the same rationale as discussed in the linked .NET issue.

  3. bdhess
    closed this as completedon Aug 22, 2018
  4. JustinBeckwith
    assigned
    bdhess
    on Feb 1, 2021
  5. suztomo
    added a commit that references this issue on Mar 9, 2026

    chore(main): release 2.45.0 (#3590)

    824e566
  6. chingor13
    added 3 commits that reference this issue on Mar 24, 2026

    deps: update dependency commons-codec:commons-codec to v1.18.0 (#3590)

    5459028

    chore(main): release 2.53.0 (#3594)

    b367c0a

    chore: Update generation configuration at Fri Jan 10 02:25:46 UTC 2025 (

    bfb9a1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @bdhess
    bdhess

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.