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 — Libraries with only an SPI layer are missing documentation · Issue #1536 · googleapis/google-cloud-java

Libraries with only an SPI layer are missing documentation #1536

New issue
Copy link
New issue
Copy link
Closed
Closed
Libraries with only an SPI layer are missing documentation#1536
Copy link
Assignees
garrettjonesgoogle
Labels
api: clouderrorreportingIssues related to the Error Reporting API.api: coreapi: languageIssues related to the Cloud Natural Language API API.api: monitoringIssues related to the Cloud Monitoring API.api: speechIssues related to the Speech-to-Text API.api: visionIssues related to the Cloud Vision API.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

@gguuss
gguuss
opened on Jan 13, 2017
Issue body actions

Issue

Documentation is missing for the most critical APIs for Java Cloud Vision.

Repro

See the Java documentation and try to find the most important classes for the Cloud Vision API, most notably:

  • com.google.cloud.vision.v1.AnnotateImageRequest
  • com.google.cloud.vision.v1.AnnotateImageResponse
  • com.google.cloud.vision.v1.BatchAnnotateImagesResponse
  • com.google.cloud.vision.v1.ColorInfo
  • com.google.cloud.vision.v1.DominantColorsAnnotation
  • com.google.cloud.vision.v1.EntityAnnotation
  • com.google.cloud.vision.v1.FaceAnnotation
  • com.google.cloud.vision.v1.Feature
  • com.google.cloud.vision.v1.Feature.Type
  • com.google.cloud.vision.v1.Image

None of these features have documentation and are necessary to understand when using the Cloud Vision client library.

Fix

Please generate and publish the documentation for the com.google.cloud.vision.* APIs.

It may also be helpful to include a nice little snippet demonstrating usage:

  public static void detectFaces(String filePath, PrintStream out) throws IOException {
    List<AnnotateImageRequest> requests = new ArrayList<>();

    FileInputStream file = new FileInputStream(filePath);
    ByteString imgBytes = ByteString.copyFrom(toByteArray(file));

    Image img = Image.newBuilder().setContent(imgBytes).build();
    Feature feat = Feature.newBuilder().setType(Type.FACE_DETECTION).build();
    AnnotateImageRequest request = AnnotateImageRequest.newBuilder()
        .addFeatures(feat)
        .setImage(img)
        .build();
    requests.add(request);

    BatchAnnotateImagesResponse response = visionApi.batchAnnotateImages(requests);
    List<AnnotateImageResponse> responses = response.getResponsesList();

    for (AnnotateImageResponse res : responses) {
      if (res.hasError()) {
        out.printf("Error: %s\n", res.getError().getMessage());
      }

      for (FaceAnnotation annotation : res.getFaceAnnotationsList()) {
        out.printf("anger: %s\njoy: %s\nsurprise: %s\n",
            annotation.getAngerLikelihood(),
            annotation.getJoyLikelihood(),
            annotation.getSurpriseLikelihood());
      }
    }
  }

Activity

Next
  1. garrettjonesgoogle commented on Jan 13, 2017

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jan 13, 2017
    Contributor
    More actions
    • This affects all APIs which only have an spi layer. We are currently working on this.
    • There are example apps here:

    https://github.com/GoogleCloudPlatform/java-docs-samples

    For Vision specifically:

    https://github.com/GoogleCloudPlatform/java-docs-samples/tree/master/vision/text/src/main/java/com/google/cloud/vision/samples/text

    I think there could be clearer pointers to the example apps.

  2. garrettjonesgoogle
    self-assigned this
    on Jan 13, 2017
  3. garrettjonesgoogle
    added
    api: clouderrorreportingIssues related to the Error Reporting API.
    api: languageIssues related to the Cloud Natural Language API API.
    api: monitoringIssues related to the Cloud Monitoring API.
    api: pubsubIssues related to the Pub/Sub API.
    api: speechIssues related to the Speech-to-Text API.
    spi layer
    api: visionIssues related to the Cloud Vision API.
    on Jan 13, 2017
  4. garrettjonesgoogle
    changed the title [-]Vision Client library missing documentation[/-] [+]Libraries with only an SPI layer are missing documentation[/+] on Jan 26, 2017
  5. garrettjonesgoogle
    added
    blocking GA
    docs
    and removed
    api: pubsubIssues related to the Pub/Sub API.
    on Jan 26, 2017
  6. danoscarmike
    added
    release-blocking
    and removed
    api: core
    on Feb 20, 2017
  7. 22 remaining items

  8. anthmgoogle commented on Nov 9, 2017

    @anthmgoogle
    anthmgoogle
    on Nov 9, 2017
    More actions

    Is there still outstanding work before this can be closed after that resolution?

  9. yihanzhen commented on Jan 25, 2018

    @yihanzhen
    yihanzhen
    on Jan 25, 2018
    Contributor
    More actions

    @garrettjonesgoogle is there still work to do for this issue? I am moving this to backlog and closing it, but if everything is resolved I will remove it from backlog then.

  10. yihanzhen
    closed this as completedon Jan 25, 2018
  11. garrettjonesgoogle commented on Jan 25, 2018

    @garrettjonesgoogle
    garrettjonesgoogle
    on Jan 25, 2018
    Contributor
    More actions

    The crux of this issue is that the requesters want the table of contents for the javadocs of google-cloud-java to include the proto-generated classes. I don't think this is really feasible, but the requesters really want it...

  12. meltsufin
    added a commit that references this issue on Dec 22, 2025

    chore(main): release 3.16.0 (#1536)

    86ed483
  13. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.132.19-alpha-SNAPSHOT (#1536)

    26cd105
  14. suztomo
    added a commit that references this issue on Mar 11, 2026

    chore(main): release 3.16.0 (googleapis#1536)

    311b96d
  15. lqiu96
    added a commit that references this issue on Mar 20, 2026

    chore(main): release 0.132.19-alpha-SNAPSHOT (#1536)

    16b857f
  16. suztomo
    added a commit that references this issue on Mar 23, 2026

    docs: create samples for quickstart guide (googleapis#1536)

    1c5178e
  17. suztomo
    added a commit that references this issue on Mar 30, 2026

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

    6d14262
  18. lqiu96
    added a commit that references this issue on Apr 1, 2026

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

    ecb2ca7
  19. meltsufin
    added 2 commits that reference this issue on Apr 29, 2026

    build(deps): update dependency org.apache.maven.plugins:maven-deploy-…

    ddab0b9

    build(deps): update dependency org.apache.maven.plugins:maven-deploy-…

    9b9b3c9
  20. benjaminp
    added 2 commits that reference this issue on Jul 13, 2026

    feat: implement cross-project table restore (googleapis#1536)

    418a5d4

    chore(main): release 2.17.0 (googleapis#1516)

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

Metadata

Metadata

Assignees

  • @garrettjonesgoogle
    garrettjonesgoogle

Labels

api: clouderrorreportingIssues related to the Error Reporting API.api: coreapi: languageIssues related to the Cloud Natural Language API API.api: monitoringIssues related to the Cloud Monitoring API.api: speechIssues related to the Speech-to-Text API.api: visionIssues related to the Cloud Vision API.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.