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 — No getService method in google-cloud-storage · Issue #1813 · googleapis/google-cloud-java

No getService method in google-cloud-storage #1813

New issue
Copy link
New issue
Copy link
Closed
Closed
No getService method in google-cloud-storage#1813
Copy link
Assignees
elharo
Labels
api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

Description

@elharo
elharo
opened on Mar 26, 2017
Issue body actions

README.MD for google-cloud-storage refers to

Storage storage = StorageOptions.getDefaultInstance().getService();

and a few other times. It appears this is no longer accurate at 0.10.alpha.

I.e. the StorageOptions class does not have a getService method. I'm not sure what it should be replaced with.

Activity

Next
  1. garrettjonesgoogle commented on Mar 27, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Mar 27, 2017
    Contributor
    More actions

    getService() is present on ServiceOptions which StorageOptions extends. It was never changed. The code you pasted here should work fine.

  2. garrettjonesgoogle
    added
    api: storageIssues related to the Cloud Storage API.
    type: questionRequest for information or clarification. Not an issue.
    on Mar 27, 2017
  3. elharo commented on Mar 27, 2017

    @elharo
    elharo
    on Mar 27, 2017
    ContributorAuthor
    More actions

    OK, I must be doing something wrong. I'll dig into this further.

  4. elharo commented on Mar 27, 2017

    @elharo
    elharo
    on Mar 27, 2017
    ContributorAuthor
    More actions
    Multiple markers at this line
    	- The method getService() is undefined for the type StorageOptions
    	- The type com.google.cloud.HttpServiceOptions cannot be resolved. It is indirectly referenced 
    	 from required .class files
    
  5. elharo commented on Mar 27, 2017

    @elharo
    elharo
    on Mar 27, 2017
    ContributorAuthor
    More actions

    Digging into my jar I do see the getService method. I don't see com.google.cloud.HttpServiceOptions in google-cloud-core-0.10.0-alpha.jar. What jar should that be in?

  6. garrettjonesgoogle commented on Mar 27, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Mar 27, 2017
    Contributor
    More actions

    I think you are out of sync somehow. If you build both -core and -storage fresh, or make sure that they are both at 0.10.0, it should all work. It looks like you might have the old version of -storage pointing to the new version of -core. (HttpServiceOptions was taken out of the hierarchy and is now a standalone class, HttpTransportOptions)

  7. elharo commented on Mar 28, 2017

    @elharo
    elharo
    on Mar 28, 2017
    ContributorAuthor
    More actions

    This appears to be the problem. Thanks. Closing.

  8. elharo
    closed this as completedon Mar 28, 2017
  9. JustinBeckwith
    assigned
    elharo
    on Feb 1, 2021
  10. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    chore: Update `dependabot.yml` template (#1813) (#1372)

    495e1ca

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

    c15da84
  11. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore: Update `dependabot.yml` template (#1813) (#1111)

    252b639
  12. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore: Update `dependabot.yml` template (#1813) (#1112)

    92c512f
  13. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore: Update `dependabot.yml` template (#1813) (#1220)

    b7211a8
  14. 1 remaining item

  15. suztomo
    added 3 commits that reference this issue on Mar 9, 2026

    chore: Update `dependabot.yml` template (#1813) (#2758)

    dc5b58f

    chore: Update `dependabot.yml` template (googleapis#1813) (googleapis…

    222486d

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

    5cbbd77
  16. chingor13
    added 2 commits that reference this issue on Mar 12, 2026

    chore: Update `dependabot.yml` template (#1813) (#1220)

    0fe6e7c

    feat: Add projectId getter to GoogleCredentials (#1813)

    80f758b
  17. suztomo
    added 2 commits that reference this issue on Mar 23, 2026

    chore: Update `dependabot.yml` template (googleapis#1813) (googleapis…

    470d66f

    chore(main): release 2.24.2-SNAPSHOT (googleapis#1813)

    cd213de
  18. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore: Update `dependabot.yml` template (#1813) (#1199)

    ef3648f
  19. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore: Update `dependabot.yml` template (#1813) (#1199)

    4a7b740
  20. meltsufin
    added 5 commits that reference this issue on Apr 29, 2026

    chore: Update `dependabot.yml` template (#1813) (#1622)

    463f65c

    chore(main): release 1.125.11 (#1813)

    9e5ceda

    chore: Update `dependabot.yml` template (#1813) (#1622)

    d5d0886

    chore(main): release 1.125.11 (#1813)

    a7522fe

    deps: update beam.version to v2.59.0 (#1813)

    fb7dca8
  21. benjaminp
    added a commit that references this issue on Jul 13, 2026

    chore: Update `dependabot.yml` template (googleapis#1813) (googleapis…

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

Metadata

Metadata

Assignees

  • @elharo
    elharo

Labels

api: storageIssues related to the Cloud Storage API.type: questionRequest for information or clarification. Not an issue.

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.