Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-discoveryengine</artifactId>
<version>v1-rev20260524-2.0.0</version>
<version>v1-rev20260531-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -35,7 +35,7 @@ repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20260524-2.0.0'
implementation 'com.google.apis:google-api-services-discoveryengine:v1-rev20260531-2.0.0'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1BAPConfig extends com.google.api.
@com.google.api.client.util.Key
private java.util.List<java.lang.String> supportedConnectorModes;

/**
* Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that
* support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get,
* populated by the server by merging persisted overrides with live runtime tool definitions and
* trimming the result for UI consumption. On Update, the supplied value replaces the persisted
* overrides after server-side validation and merging: the `base_version` field MUST match the
* server's current base toolspec version (otherwise the request is rejected with a user-facing
* error directing the admin to re-download the latest tools first).
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride toolspecOverride;

/**
* Optional. The actions enabled on the associated BAP connection.
* @return value or {@code null} for none
Expand Down Expand Up @@ -77,6 +90,35 @@ public GoogleCloudDiscoveryengineV1BAPConfig setSupportedConnectorModes(java.uti
return this;
}

/**
* Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that
* support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get,
* populated by the server by merging persisted overrides with live runtime tool definitions and
* trimming the result for UI consumption. On Update, the supplied value replaces the persisted
* overrides after server-side validation and merging: the `base_version` field MUST match the
* server's current base toolspec version (otherwise the request is rejected with a user-facing
* error directing the admin to re-download the latest tools first).
* @return value or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride getToolspecOverride() {
return toolspecOverride;
}

/**
* Optional. Custom toolspec overrides for this connection. For Enterprise BAP connectors that
* support admin-curated tool definitions, this holds the (simplified) per-tool overrides. On Get,
* populated by the server by merging persisted overrides with live runtime tool definitions and
* trimming the result for UI consumption. On Update, the supplied value replaces the persisted
* overrides after server-side validation and merging: the `base_version` field MUST match the
* server's current base toolspec version (otherwise the request is rejected with a user-facing
* error directing the admin to re-download the latest tools first).
* @param toolspecOverride toolspecOverride or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1BAPConfig setToolspecOverride(GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride toolspecOverride) {
this.toolspecOverride = toolspecOverride;
return this;
}

@Override
public GoogleCloudDiscoveryengineV1BAPConfig set(String fieldName, Object value) {
return (GoogleCloudDiscoveryengineV1BAPConfig) super.set(fieldName, value);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/*
* 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
*
* http://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.
*/
/*
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
* Modify at your own risk.
*/

package com.google.api.services.discoveryengine.v1.model;

/**
* Customer-facing view of the admin-curated toolspec for a BAP connection. Holds the (simplified)
* per-tool definitions surfaced to and editable by the admin in the Discovery Engine UI. Mirrors
* the shape of the backend `google.cloud.connectorexecution.v1.ToolspecOverride` message, but is
* intentionally kept as a separate public type so the Discovery Engine API surface can evolve
* independently of the fed-API surface (AIP-215). Handlers convert between the two via helpers in /
* /cloud/ml/discoveryengine/external_service/v1main/data_connector_service/lib:bap_custom_tool_util
* .
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Discovery Engine API. For a detailed explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride extends com.google.api.client.json.GenericJson {

/**
* Required. Base toolspec version against which `tools` were authored. On Update, MUST match the
* server's current stable toolspec version for the connection; mismatch is rejected with a user-
* facing error directing the admin to re-download the latest tools first.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.lang.String baseVersion;

/**
* Required. Tool definitions (one Struct per tool) that the admin has customised on top of the
* base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in
* the modify API; the request must carry at least one tool.
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
private java.util.List<java.util.Map<String, java.lang.Object>> tools;

/**
* Required. Base toolspec version against which `tools` were authored. On Update, MUST match the
* server's current stable toolspec version for the connection; mismatch is rejected with a user-
* facing error directing the admin to re-download the latest tools first.
* @return value or {@code null} for none
*/
public java.lang.String getBaseVersion() {
return baseVersion;
}

/**
* Required. Base toolspec version against which `tools` were authored. On Update, MUST match the
* server's current stable toolspec version for the connection; mismatch is rejected with a user-
* facing error directing the admin to re-download the latest tools first.
* @param baseVersion baseVersion or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride setBaseVersion(java.lang.String baseVersion) {
this.baseVersion = baseVersion;
return this;
}

/**
* Required. Tool definitions (one Struct per tool) that the admin has customised on top of the
* base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in
* the modify API; the request must carry at least one tool.
* @return value or {@code null} for none
*/
public java.util.List<java.util.Map<String, java.lang.Object>> getTools() {
return tools;
}

/**
* Required. Tool definitions (one Struct per tool) that the admin has customised on top of the
* base toolspec returned by the fed API. REQUIRED because it is the only user-editable field in
* the modify API; the request must carry at least one tool.
* @param tools tools or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride setTools(java.util.List<java.util.Map<String, java.lang.Object>> tools) {
this.tools = tools;
return this;
}

@Override
public GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride set(String fieldName, Object value) {
return (GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride) super.set(fieldName, value);
}

@Override
public GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride clone() {
return (GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride) super.clone();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1Engine extends com.google.api.cli
* app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation`
* * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` *
* `disable-welcome-emails` * `disable-canvas` * `disable-canvas-workspace` * `disable-skills` *
* `enable-end-user-sharing-with-groups`
* `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-
* orchestration`
* The value may be {@code null}.
*/
@com.google.api.client.util.Key
Expand Down Expand Up @@ -458,7 +459,8 @@ public GoogleCloudDiscoveryengineV1Engine setDisplayName(java.lang.String displa
* app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation`
* * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` *
* `disable-welcome-emails` * `disable-canvas` * `disable-canvas-workspace` * `disable-skills` *
* `enable-end-user-sharing-with-groups`
* `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-
* orchestration`
* @return value or {@code null} for none
*/
public java.util.Map<String, java.lang.String> getFeatures() {
Expand All @@ -474,7 +476,8 @@ public java.util.Map<String, java.lang.String> getFeatures() {
* app-access` * `disable-agent-sharing` * `disable-image-generation` * `disable-video-generation`
* * `disable-onedrive-upload` * `disable-talk-to-content` * `disable-google-drive-upload` *
* `disable-welcome-emails` * `disable-canvas` * `disable-canvas-workspace` * `disable-skills` *
* `enable-end-user-sharing-with-groups`
* `enable-end-user-sharing-with-groups` * `single-agent-orchestration` * `multi-agent-
* orchestration`
* @param features features or {@code null} for none
*/
public GoogleCloudDiscoveryengineV1Engine setFeatures(java.util.Map<String, java.lang.String> features) {
Expand Down
Loading