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 — GAPIC clients: merge service address and port · Issue #1835 · googleapis/google-cloud-java

GAPIC clients: merge service address and port #1835

New issue
Copy link
New issue
Copy link
Closed
Closed
GAPIC clients: merge service address and port#1835
Copy link
Assignees
pongad
Labels
api: pubsubIssues related to the Pub/Sub API.

Description

@garrettjonesgoogle
garrettjonesgoogle
opened on Mar 30, 2017
Issue body actions

It's natural for service address and port to go together - for example, environment variables for emulator hosts from the gcloud command (e.g. PUBSUB_EMULATOR_HOST) includes service address and port in a single value. We should just merge these together to make life easier on everyone.

I'm unsure if this is beta blocking, but I'll proactively mark it as such until further discussion.

Activity

  1. garrettjonesgoogle
    added
    api: pubsubIssues related to the Pub/Sub API.
    breaking change
    Status: Beta Blocking
    on Mar 30, 2017
  2. garrettjonesgoogle
    assigned
    pongad
    on Mar 30, 2017
  3. garrettjonesgoogle commented on Apr 3, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Apr 3, 2017
    ContributorAuthor
    More actions

    We have pulled in the version of gax that provides setEndpoint, so it seems like we can close this now.

  4. pongad commented on Apr 5, 2017

    @pongad
    pongad
    on Apr 5, 2017
    Contributor
    More actions

    @garrettjonesgoogle I started looking into this issue and have a question. Looking at this line, it looks like we sometimes don't have the default address but we have the default port.

    • Is this intended behavior? If we don't know which host to connect to, how do we know what port to connect?
    • If it is the intended behavior, does this mean we need to leave the setPort un-deprecated?
  5. garrettjonesgoogle commented on Apr 5, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Apr 5, 2017
    ContributorAuthor
    More actions

    Across the board, default port is probably going to be the same (443) for the "real" services. I don't think we need setPort un-deprecated; I think we just need to default it in gax itself.

  6. pongad commented on Apr 6, 2017

    @pongad
    pongad
    on Apr 6, 2017
    Contributor
    More actions

    From what I can see, the only place where setPort is used in isolation is LRO, because the client by itself doesn't know what service to connect to. However, clients who use LRO just sets the channel provider, not the address and port.

    So, if there is no default address, then the port can also be removed without any ill effects. I'll do this for now, but please let me know if you want it added back.

  7. pongad
    added 3 commits that reference this issue on Apr 7, 2017

    java: merge service address and port (#1172)

    a49bab3

    Regenerating SPI: use setEndpoint (#1879)

    c531a0a

    remove setPort (#271)

    0ff727b
  8. pongad
    closed this as completedin #1880on Apr 7, 2017
  9. pongad
    added a commit that references this issue on Apr 7, 2017

    remove last use of setPort/setServiceAddress (#1880)

    This issue will close once commit c2fb49e is merged into the 'main' branch.
    c2fb49e
  10. garrettjonesgoogle
    added a commit that references this issue on Apr 11, 2017

    Rebase master (#1900)

    05990c8
  11. theacodes
    unassigned
    pongad
    on Sep 28, 2018
  12. JustinBeckwith
    assigned
    pongad
    on Feb 1, 2021
  13. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(deps): update dependency ch.qos.logback:logback-core to v1.5.19…

    6de75be
  14. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(deps): update dependency ch.qos.logback:logback-core to v1.5.19…

    4f40cf8
  15. suztomo
    added a commit that references this issue on Mar 23, 2026

    deps: update dependency org.testcontainers:testcontainers to v1.20.4 (g…

    bf648ab
  16. meltsufin
    added 3 commits that reference this issue on Apr 29, 2026

    chore(main): release 1.125.14-SNAPSHOT (#1835)

    ad4e1ac

    chore(main): release 1.125.14-SNAPSHOT (#1835)

    2326335

    chore(main): release 3.26.4-SNAPSHOT (#1835)

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

Metadata

Metadata

Assignees

  • @pongad
    pongad

Labels

api: pubsubIssues related to the Pub/Sub API.

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.