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 — java-docs-samples/developer-knowledge at main · Reality2byte/java-docs-samples

Expand file tree

/

developer-knowledge

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

developer-knowledge

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
src
src
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

README.md

Outline

Google Developer Knowledge API Java Samples

This directory contains Java code samples demonstrating how to use the Google Developer Knowledge API client library (com.google.cloud:google-cloud-developer-knowledge).

Setup

  1. Enable the Developer Knowledge API on your Google Cloud project:

    gcloud services enable developerknowledge.googleapis.com
  2. Build with Maven:

    mvn clean compile

Samples

  • Search Document Chunks: Search public developer documentation chunks by query (developerknowledge_search_document_chunks).
  • Get Document: Retrieve a single documentation page with full markdown content (developerknowledge_get_document).
  • Batch Get Documents: Fetch multiple documentation pages in one call (developerknowledge_batch_get_documents).
  • Answer Query: Get a grounded, cited answer to a technical question (developerknowledge_answer_query).

Running Tests

mvn test
You are visitor 01402503 — 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.