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/retail/snippets at main · fredatgithub/java-docs-samples

Expand file tree

/

snippets

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

snippets

/
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

Vertex AI Search for commerce Samples

This directory contains Java samples for Vertex AI Search for commerce.

Prerequisites

To run these samples, you must have:

  1. A Google Cloud Project with the Vertex AI Search for commerce API enabled.
  2. Vertex AI Search for commerce set up with a valid catalog and serving configuration (placement).
  3. Authentication: These samples use Application Default Credentials (ADC).
    • If running locally, you can set up ADC by running:
      gcloud auth application-default login
  4. IAM Roles: The service account or user running the samples needs the roles/retail.viewer (Retail Viewer) role or higher.

Samples

  • Search.java: Basic search request showing both text search and browse search (using categories).
  • SearchPagination.java: Shows how to use next_page_token to paginate through search results.
  • SearchOffset.java: Shows how to use offset to skip a specified number of results.

Documentation

For more information, see the Vertex AI Search for commerce documentation.

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.