From c8b0853c75b8d356f6795f2ae89f1b9d3a8445d3 Mon Sep 17 00:00:00 2001 From: Mark Daoust Date: Thu, 14 May 2026 08:43:27 -0700 Subject: [PATCH] chore: Rollback docs support for interactions. PiperOrigin-RevId: 915450178 --- .github/workflows/publish-javadoc.yml | 2 +- README.md | 9 +- packages.md | 23 ---- pom.xml | 105 +++--------------- .../com/google/genai/errors/package-info.java | 20 ---- .../java/com/google/genai/package-info.java | 20 ---- 6 files changed, 21 insertions(+), 158 deletions(-) delete mode 100644 packages.md delete mode 100644 src/main/java/com/google/genai/errors/package-info.java delete mode 100644 src/main/java/com/google/genai/package-info.java diff --git a/.github/workflows/publish-javadoc.yml b/.github/workflows/publish-javadoc.yml index 92357ee50d7..7c18f72053d 100644 --- a/.github/workflows/publish-javadoc.yml +++ b/.github/workflows/publish-javadoc.yml @@ -20,4 +20,4 @@ jobs: java-version: 17 target-folder: javadoc project: maven - custom-command: mvn dokka:dokka \ No newline at end of file + custom-command: mvn dokka:javadoc \ No newline at end of file diff --git a/README.md b/README.md index 5329acc220f..de01de37a6c 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Java idiomatic SDK for the [Gemini Developer APIs][gemini-api-doc] and [Gemini Enterprise Agent Platform][gemini-enterprise-agent-platform-doc] APIs. -**Note:** The SDK now supports the [Interactions API](#interactions). +**Note:** The SDK now has experimental support for the [Interactions API](#interactions-experimental). [![Maven][maven-version-image]][maven-version-link] [![Javadoc][javadoc-image]][javadoc-link] @@ -975,9 +975,12 @@ public final class FileOperations { } ``` -### Interactions +### Interactions (Experimental) -The `interactions` service provides access to features for managing interactions. +The `interactions` service provides access to experimental features. + +> [!WARNING] +> This service is experimental and subject to change or removal in future releases. You can access it via the client: ```java diff --git a/packages.md b/packages.md deleted file mode 100644 index dd25158247b..00000000000 --- a/packages.md +++ /dev/null @@ -1,23 +0,0 @@ -# Module google-genai -Java idiomatic SDK for the Gemini Developer APIs and Vertex AI APIs. - -# Package com.google.genai -Main package for the Google GenAI SDK. - -# Package com.google.genai.errors -Error types for the Google GenAI SDK. - -# Package com.google.genai.types -Types used in the Google GenAI SDK. - -# Package com.google.genai.interactions.errors -Error types for interactions. - -# Package com.google.genai.interactions.models.interactions -Models for interactions. - -# Package com.google.genai.interactions.services.async -Async services for interactions. - -# Package com.google.genai.interactions.services.blocking -Blocking services for interactions. diff --git a/pom.xml b/pom.xml index a064798276e..50d08c6c232 100644 --- a/pom.xml +++ b/pom.xml @@ -58,8 +58,6 @@ 1.9.10 src/main/java src/test/java - false - none @@ -301,7 +299,20 @@ - + + org.apache.maven.plugins + maven-javadoc-plugin + 3.6.3 + + public + html + true + ${project.build.directory}/javadoc + Google Gen AI Java SDK + ${maven.compiler.source} + UTF-8 + + org.sonatype.plugins nexus-staging-maven-plugin @@ -380,82 +391,6 @@ - - maven-antrun-plugin - 3.1.0 - - - dokka-warning - ${dokka.phase} - - run - - - ${maven.javadoc.skip} - - ******************************************************************************** - WARNING: Dokka Javadoc generation is active and may take a long time (~45 mins). - To skip it for faster local builds, use: - mvn install -Ddokka.phase=none - ******************************************************************************** - - - - - - - org.jetbrains.dokka - dokka-maven-plugin - 2.0.0 - - - ${dokka.phase} - - javadoc - javadocJar - - - - - ${project.build.directory}/site/apidocs - - packages.md - - - - - com\.google\.genai\.interactions\.client.* - true - - - - com\.google\.genai\.interactions\.core.* - true - - - - - org.jetbrains.dokka - kotlin-as-java-plugin - 2.0.0 - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.11.2 - - - attach-javadocs - none - - - - true - - org.jacoco jacoco-maven-plugin @@ -611,18 +546,6 @@ - - release-docs - - - performRelease - true - - - - prepare-package - - jdk8-build diff --git a/src/main/java/com/google/genai/errors/package-info.java b/src/main/java/com/google/genai/errors/package-info.java deleted file mode 100644 index dcd3147e5f4..00000000000 --- a/src/main/java/com/google/genai/errors/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2025 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Error types for the Google GenAI SDK. - */ -package com.google.genai.errors; diff --git a/src/main/java/com/google/genai/package-info.java b/src/main/java/com/google/genai/package-info.java deleted file mode 100644 index f43de07ef33..00000000000 --- a/src/main/java/com/google/genai/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2025 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Main package for the Google GenAI SDK. - */ -package com.google.genai;