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 — Better support protobuf's ByteString in ByteArray. · Issue #1763 · googleapis/google-cloud-java

Better support protobuf's ByteString in ByteArray. #1763

New issue
Copy link
New issue
Copy link
Closed
Closed
Better support protobuf's ByteString in ByteArray.#1763
Copy link
Assignees
garrettjonesgoogle
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

@buchgr
buchgr
opened on Mar 16, 2017
Issue body actions

The ByteArray type uses protobuf's ByteString under the hood, but doesn't allow an outside user to turn a ByteString into a ByteArray (or vice versa) without making an explicit copy. Given that both ByteString and ByteArray are immutable, I can't see a reason why this should not be possible. For example, a ByteArray.wrap(ByteString) and ByteArray.asByteString() method seem appropriate. Those would come in very handy when using the client libraries within a gRPC service.

Could someone please explain why this is the case? If there is no reason, I would be happy to open a PR. Thanks!

P.S. I did notice that the class is non-final and by subclassing one can expose the protected constructor and getByteString() method, but that seems silly.

Activity

  1. garrettjonesgoogle
    added
    type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.
    on Mar 16, 2017
  2. garrettjonesgoogle
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on May 30, 2017
  3. garrettjonesgoogle commented on May 30, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on May 30, 2017
    Contributor
    More actions

    @vkedia , what do you think?

  4. garrettjonesgoogle commented on Aug 11, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Aug 11, 2017
    Contributor
    More actions

    This has been added to our feature backlog: https://github.com/GoogleCloudPlatform/google-cloud-java/wiki/Feature-backlog . This issue will be closed but is linked in the backlog and can continue to be used for comment and discussion.

  5. garrettjonesgoogle
    closed this as completedon Aug 11, 2017
  6. JustinBeckwith
    assigned
    garrettjonesgoogle
    on Feb 1, 2021
  7. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    e0f9f27

    chore(main): release 3.21.3 (#1764)

    153a457
  8. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-datastor…

    65479a2
  9. chingor13
    added a commit that references this issue on Feb 24, 2026

    Fix: Update Javadoc reference in ExternalAccountCredentials (#1763)

    5eb3659
  10. suztomo
    added 2 commits that reference this issue on Mar 11, 2026

    deps: update dependency com.google.cloud:sdk-platform-java-config to …

    1d69d64

    chore(main): release 3.21.3 (googleapis#1764)

    298ca3a
  11. chingor13
    added a commit that references this issue on Mar 12, 2026

    Fix: Update Javadoc reference in ExternalAccountCredentials (#1763)

    a6c7ece
  12. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore(deps): update dependency com.google.cloud:google-cloud-datastor…

    9c9acb8
  13. suztomo
    added a commit that references this issue on Mar 23, 2026

    fix: remove connection-id from metrics (googleapis#1763)

    ceeabbc
  14. meltsufin
    added 3 commits that reference this issue on Apr 29, 2026

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    1c7ce62

    build(deps): update dependency com.google.cloud:google-cloud-shared-c…

    0c62091

    chore: Update generation configuration at Fri Jul 26 02:16:41 UTC 2024 (

    b3c40ff
  15. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore(main): release 2.23.2 (googleapis#1763)

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

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.