diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1/2.0.0/README.md index 42bf40d0399..d98ef531c5a 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/README.md +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1-rev20260524-2.0.0 + v1-rev20260531-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfig.java index 29a53f95e35..6b97b2ae48f 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfig.java @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1BAPConfig extends com.google.api. @com.google.api.client.util.Key private java.util.List 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 @@ -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); diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java new file mode 100644 index 00000000000..81f9821f39d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java @@ -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 + * . + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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> 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> 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> 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(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java index 80ab90f236e..3c74049cf14 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Engine.java @@ -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 @@ -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 getFeatures() { @@ -474,7 +476,8 @@ public java.util.Map 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 features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Feedback.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Feedback.java new file mode 100644 index 00000000000..e8d2dea9a89 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1Feedback.java @@ -0,0 +1,241 @@ +/* + * 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; + +/** + * Information about the user feedback. This information will be used for logging and metrics + * purpose. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1Feedback extends com.google.api.client.json.GenericJson { + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String comment; + + /** + * Optional. The version of the component that this report is being sent from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String componentVersion; + + /** + * The related conversation information when user gives feedback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1FeedbackConversationInfo conversationInfo; + + /** + * Optional. Whether the customer accepted data use terms. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dataTermsAccepted; + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackSource; + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackType; + + /** + * The version of the LLM model that was used to generate the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String llmModelVersion; + + /** + * Optional. The reason if user gives a thumb down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reasons; + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * @return value or {@code null} for none + */ + public java.lang.String getComment() { + return comment; + } + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * @param comment comment or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setComment(java.lang.String comment) { + this.comment = comment; + return this; + } + + /** + * Optional. The version of the component that this report is being sent from. + * @return value or {@code null} for none + */ + public java.lang.String getComponentVersion() { + return componentVersion; + } + + /** + * Optional. The version of the component that this report is being sent from. + * @param componentVersion componentVersion or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setComponentVersion(java.lang.String componentVersion) { + this.componentVersion = componentVersion; + return this; + } + + /** + * The related conversation information when user gives feedback. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo getConversationInfo() { + return conversationInfo; + } + + /** + * The related conversation information when user gives feedback. + * @param conversationInfo conversationInfo or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setConversationInfo(GoogleCloudDiscoveryengineV1FeedbackConversationInfo conversationInfo) { + this.conversationInfo = conversationInfo; + return this; + } + + /** + * Optional. Whether the customer accepted data use terms. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDataTermsAccepted() { + return dataTermsAccepted; + } + + /** + * Optional. Whether the customer accepted data use terms. + * @param dataTermsAccepted dataTermsAccepted or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setDataTermsAccepted(java.lang.Boolean dataTermsAccepted) { + this.dataTermsAccepted = dataTermsAccepted; + return this; + } + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackSource() { + return feedbackSource; + } + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * @param feedbackSource feedbackSource or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setFeedbackSource(java.lang.String feedbackSource) { + this.feedbackSource = feedbackSource; + return this; + } + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackType() { + return feedbackType; + } + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * @param feedbackType feedbackType or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setFeedbackType(java.lang.String feedbackType) { + this.feedbackType = feedbackType; + return this; + } + + /** + * The version of the LLM model that was used to generate the response. + * @return value or {@code null} for none + */ + public java.lang.String getLlmModelVersion() { + return llmModelVersion; + } + + /** + * The version of the LLM model that was used to generate the response. + * @param llmModelVersion llmModelVersion or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setLlmModelVersion(java.lang.String llmModelVersion) { + this.llmModelVersion = llmModelVersion; + return this; + } + + /** + * Optional. The reason if user gives a thumb down. + * @return value or {@code null} for none + */ + public java.util.List getReasons() { + return reasons; + } + + /** + * Optional. The reason if user gives a thumb down. + * @param reasons reasons or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback setReasons(java.util.List reasons) { + this.reasons = reasons; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1Feedback set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1Feedback) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1Feedback clone() { + return (GoogleCloudDiscoveryengineV1Feedback) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1FeedbackConversationInfo.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1FeedbackConversationInfo.java new file mode 100644 index 00000000000..3cbf26df38d --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1FeedbackConversationInfo.java @@ -0,0 +1,162 @@ +/* + * 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; + +/** + * The conversation information such as the question index and session name. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1FeedbackConversationInfo extends com.google.api.client.json.GenericJson { + + /** + * Optional. The token which could be used to fetch the answer log. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answerQueryToken; + + /** + * Optional. The token which could be used to fetch the assistant log. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assistToken; + + /** + * Required. The user's search query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1Query query; + + /** + * The index of the user input within the conversation messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer questionIndex; + + /** + * Name of the newly generated or continued session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** + * Optional. The token which could be used to fetch the answer log. + * @return value or {@code null} for none + */ + public java.lang.String getAnswerQueryToken() { + return answerQueryToken; + } + + /** + * Optional. The token which could be used to fetch the answer log. + * @param answerQueryToken answerQueryToken or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo setAnswerQueryToken(java.lang.String answerQueryToken) { + this.answerQueryToken = answerQueryToken; + return this; + } + + /** + * Optional. The token which could be used to fetch the assistant log. + * @return value or {@code null} for none + */ + public java.lang.String getAssistToken() { + return assistToken; + } + + /** + * Optional. The token which could be used to fetch the assistant log. + * @param assistToken assistToken or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo setAssistToken(java.lang.String assistToken) { + this.assistToken = assistToken; + return this; + } + + /** + * Required. The user's search query. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Query getQuery() { + return query; + } + + /** + * Required. The user's search query. + * @param query query or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo setQuery(GoogleCloudDiscoveryengineV1Query query) { + this.query = query; + return this; + } + + /** + * The index of the user input within the conversation messages. + * @return value or {@code null} for none + */ + public java.lang.Integer getQuestionIndex() { + return questionIndex; + } + + /** + * The index of the user input within the conversation messages. + * @param questionIndex questionIndex or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo setQuestionIndex(java.lang.Integer questionIndex) { + this.questionIndex = questionIndex; + return this; + } + + /** + * Name of the newly generated or continued session. + * @return value or {@code null} for none + */ + public java.lang.String getSession() { + return session; + } + + /** + * Name of the newly generated or continued session. + * @param session session or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo setSession(java.lang.String session) { + this.session = session; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1FeedbackConversationInfo) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1FeedbackConversationInfo clone() { + return (GoogleCloudDiscoveryengineV1FeedbackConversationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1UserEvent.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1UserEvent.java index 0c078f1445b..e6039d01b8c 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1UserEvent.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1UserEvent.java @@ -172,6 +172,13 @@ public final class GoogleCloudDiscoveryengineV1UserEvent extends com.google.api. @com.google.api.client.util.Key private java.lang.String eventType; + /** + * Optional. This field is optional except for the `add-feedback` event types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1Feedback feedback; + /** * Optional. The filter syntax consists of an expression language for constructing a predicate * from one or more fields of the documents being filtered. One example is for `search` events, @@ -577,6 +584,23 @@ public GoogleCloudDiscoveryengineV1UserEvent setEventType(java.lang.String event return this; } + /** + * Optional. This field is optional except for the `add-feedback` event types. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1Feedback getFeedback() { + return feedback; + } + + /** + * Optional. This field is optional except for the `add-feedback` event types. + * @param feedback feedback or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1UserEvent setFeedback(GoogleCloudDiscoveryengineV1Feedback feedback) { + this.feedback = feedback; + return this; + } + /** * Optional. The filter syntax consists of an expression language for constructing a predicate * from one or more fields of the documents being filtered. One example is for `search` events, diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java index 72d941c7df6..75373a4a90d 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettings.java @@ -117,7 +117,8 @@ public final class GoogleCloudDiscoveryengineV1WidgetConfigUiSettings extends co * 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 @@ -137,6 +138,17 @@ public final class GoogleCloudDiscoveryengineV1WidgetConfigUiSettings extends co @com.google.api.client.util.Key private java.lang.String interactionType; + /** + * Output only. The resolved, server-side view of model selector configuration. Holds both the + * ordered list of models that should appear in the model selector dropdown and the model that + * should be selected by default. Clients should render this directly without applying their own + * filtering, ordering, or localization. The legacy `model_configs` map above is retained for + * backward compatibility with clients that have not yet migrated to consuming this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo modelConfigInfo; + /** * Output only. Maps a model name to its specific configuration for this engine. This allows admin * users to turn on/off individual models. This only stores models whose states are overridden by @@ -341,7 +353,8 @@ public GoogleCloudDiscoveryengineV1WidgetConfigUiSettings setEnableVisualContent * 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 getFeatures() { @@ -356,7 +369,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1WidgetConfigUiSettings setFeatures(java.util.Map features) { @@ -398,6 +412,31 @@ public GoogleCloudDiscoveryengineV1WidgetConfigUiSettings setInteractionType(jav return this; } + /** + * Output only. The resolved, server-side view of model selector configuration. Holds both the + * ordered list of models that should appear in the model selector dropdown and the model that + * should be selected by default. Clients should render this directly without applying their own + * filtering, ordering, or localization. The legacy `model_configs` map above is retained for + * backward compatibility with clients that have not yet migrated to consuming this field. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo getModelConfigInfo() { + return modelConfigInfo; + } + + /** + * Output only. The resolved, server-side view of model selector configuration. Holds both the + * ordered list of models that should appear in the model selector dropdown and the model that + * should be selected by default. Clients should render this directly without applying their own + * filtering, ordering, or localization. The legacy `model_configs` map above is retained for + * backward compatibility with clients that have not yet migrated to consuming this field. + * @param modelConfigInfo modelConfigInfo or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettings setModelConfigInfo(GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo modelConfigInfo) { + this.modelConfigInfo = modelConfigInfo; + return this; + } + /** * Output only. Maps a model name to its specific configuration for this engine. This allows admin * users to turn on/off individual models. This only stores models whose states are overridden by diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo.java new file mode 100644 index 00000000000..00eda1edce0 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo.java @@ -0,0 +1,104 @@ +/* + * 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; + +/** + * The resolved, server-side view of model selector configuration for the end-user. The backend + * computes this per-request by applying, in order: Mendel flag evaluation, regional availability + * rules based on the engine's location, and admin-panel overrides from `model_configs`. The backend + * is the single source of truth for this configuration; clients should render `resolved_models` + * directly in the model selector dropdown, in the order provided, without applying their own + * filtering, ordering, or localization. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The `model_id` of the model that should be selected by default in the model + * selector when the end-user has not made an explicit choice. The value is always one of the + * `model_id`s present in `resolved_models`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultModelId; + + /** + * Output only. The list of models that are available to the end-user in the model selector, in + * the order in which they should be displayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resolvedModels; + + /** + * Output only. The `model_id` of the model that should be selected by default in the model + * selector when the end-user has not made an explicit choice. The value is always one of the + * `model_id`s present in `resolved_models`. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultModelId() { + return defaultModelId; + } + + /** + * Output only. The `model_id` of the model that should be selected by default in the model + * selector when the end-user has not made an explicit choice. The value is always one of the + * `model_id`s present in `resolved_models`. + * @param defaultModelId defaultModelId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo setDefaultModelId(java.lang.String defaultModelId) { + this.defaultModelId = defaultModelId; + return this; + } + + /** + * Output only. The list of models that are available to the end-user in the model selector, in + * the order in which they should be displayed. + * @return value or {@code null} for none + */ + public java.util.List getResolvedModels() { + return resolvedModels; + } + + /** + * Output only. The list of models that are available to the end-user in the model selector, in + * the order in which they should be displayed. + * @param resolvedModels resolvedModels or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo setResolvedModels(java.util.List resolvedModels) { + this.resolvedModels = resolvedModels; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo clone() { + return (GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel.java new file mode 100644 index 00000000000..ce71de4885a --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel.java @@ -0,0 +1,187 @@ +/* + * 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; + +/** + * A single model that is resolved to be available to the end-user in the model selector, with all + * of its localized display metadata. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel extends com.google.api.client.json.GenericJson { + + /** + * Output only. Localized description text (e.g. `State-of-the-art reasoning`). Localized using + * the same locale as `display_name`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side + * based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code + * of the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, + * `graph_5`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String icon; + + /** + * Output only. Whether the model is currently in preview. Clients should surface this via a + * "Preview" badge in the selector UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isPreview; + + /** + * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro- + * preview`). This is the same identifier that clients pass back to the assistant service to + * select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; + * they are resolved to the underlying concrete model on the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelId; + + /** + * Output only. Localized description text (e.g. `State-of-the-art reasoning`). Localized using + * the same locale as `display_name`. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. Localized description text (e.g. `State-of-the-art reasoning`). Localized using + * the same locale as `display_name`. + * @param description description or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side + * based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code + * of the request. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side + * based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code + * of the request. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, + * `graph_5`). + * @return value or {@code null} for none + */ + public java.lang.String getIcon() { + return icon; + } + + /** + * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, + * `graph_5`). + * @param icon icon or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel setIcon(java.lang.String icon) { + this.icon = icon; + return this; + } + + /** + * Output only. Whether the model is currently in preview. Clients should surface this via a + * "Preview" badge in the selector UI. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsPreview() { + return isPreview; + } + + /** + * Output only. Whether the model is currently in preview. Clients should surface this via a + * "Preview" badge in the selector UI. + * @param isPreview isPreview or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel setIsPreview(java.lang.Boolean isPreview) { + this.isPreview = isPreview; + return this; + } + + /** + * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro- + * preview`). This is the same identifier that clients pass back to the assistant service to + * select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; + * they are resolved to the underlying concrete model on the backend. + * @return value or {@code null} for none + */ + public java.lang.String getModelId() { + return modelId; + } + + /** + * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro- + * preview`). This is the same identifier that clients pass back to the assistant service to + * select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; + * they are resolved to the underlying concrete model on the backend. + * @param modelId modelId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel setModelId(java.lang.String modelId) { + this.modelId = modelId; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel clone() { + return (GoogleCloudDiscoveryengineV1WidgetConfigUiSettingsModelConfigInfoResolvedModel) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java index 98f4236936e..49ab29915d8 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1alphaBAPConfig extends com.google @com.google.api.client.util.Key private java.util.List 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride toolspecOverride; + /** * Optional. The actions enabled on the associated BAP connection. * @return value or {@code null} for none @@ -77,6 +90,35 @@ public GoogleCloudDiscoveryengineV1alphaBAPConfig setSupportedConnectorModes(jav 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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 GoogleCloudDiscoveryengineV1alphaBAPConfig setToolspecOverride(GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride toolspecOverride) { + this.toolspecOverride = toolspecOverride; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaBAPConfig set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaBAPConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java new file mode 100644 index 00000000000..0014d6bcc00 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java @@ -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 + * . + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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> 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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> 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride setTools(java.util.List> tools) { + this.tools = tools; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride clone() { + return (GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java index c4000a8941b..52389d844f9 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1alphaEngine.java @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap * 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 @@ -473,7 +474,8 @@ public GoogleCloudDiscoveryengineV1alphaEngine setDisplayName(java.lang.String d * 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 getFeatures() { @@ -489,7 +491,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1alphaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java index d2d6fd49c07..22cb963e059 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/com/google/api/services/discoveryengine/v1/model/GoogleCloudDiscoveryengineV1betaEngine.java @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api * 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 @@ -458,7 +459,8 @@ public GoogleCloudDiscoveryengineV1betaEngine setDisplayName(java.lang.String di * 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 getFeatures() { @@ -474,7 +476,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1betaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml index c5490e10052..fc88e9485be 100644 --- a/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-discoveryengine - v1-rev20260524-2.0.0 - Discovery Engine API v1-rev20260524-2.0.0 + v1-rev20260531-2.0.0 + Discovery Engine API v1-rev20260531-2.0.0 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1/README.md b/clients/google-api-services-discoveryengine/v1/README.md index 42bf40d0399..d98ef531c5a 100644 --- a/clients/google-api-services-discoveryengine/v1/README.md +++ b/clients/google-api-services-discoveryengine/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1-rev20260524-2.0.0 + v1-rev20260531-2.0.0 @@ -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' } ``` diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md index 8a727a2ec07..10c9265445d 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1alpha-rev20260524-2.0.0 + v1alpha-rev20260531-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20260524-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20260531-2.0.0' } ``` diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfig.java index b130374b132..7d2831ef5e2 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfig.java @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1BAPConfig extends com.google.api. @com.google.api.client.util.Key private java.util.List 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 @@ -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); diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java new file mode 100644 index 00000000000..58e2f0b8025 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java @@ -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.v1alpha.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 + * . + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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> 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> 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> 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(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java index 48ee25a7090..6a1988715a2 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1Engine.java @@ -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 @@ -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 getFeatures() { @@ -474,7 +476,8 @@ public java.util.Map 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 features) { diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java index 7e97652180a..05a64aba5cf 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1alphaBAPConfig extends com.google @com.google.api.client.util.Key private java.util.List 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride toolspecOverride; + /** * Optional. The actions enabled on the associated BAP connection. * @return value or {@code null} for none @@ -77,6 +90,35 @@ public GoogleCloudDiscoveryengineV1alphaBAPConfig setSupportedConnectorModes(jav 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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 GoogleCloudDiscoveryengineV1alphaBAPConfig setToolspecOverride(GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride toolspecOverride) { + this.toolspecOverride = toolspecOverride; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaBAPConfig set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaBAPConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java new file mode 100644 index 00000000000..912b7f63b4c --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java @@ -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.v1alpha.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 + * . + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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> 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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> 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride setTools(java.util.List> tools) { + this.tools = tools; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride clone() { + return (GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java index ec0108e7fe8..de541813923 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaEngine.java @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap * 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 @@ -473,7 +474,8 @@ public GoogleCloudDiscoveryengineV1alphaEngine setDisplayName(java.lang.String d * 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 getFeatures() { @@ -489,7 +491,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1alphaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaFeedback.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaFeedback.java new file mode 100644 index 00000000000..840049a5292 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaFeedback.java @@ -0,0 +1,241 @@ +/* + * 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.v1alpha.model; + +/** + * Information about the user feedback. This information will be used for logging and metrics + * purpose. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaFeedback extends com.google.api.client.json.GenericJson { + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String comment; + + /** + * Optional. The version of the component that this report is being sent from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String componentVersion; + + /** + * The related conversation information when user gives feedback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo conversationInfo; + + /** + * Optional. Whether the customer accepted data use terms. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dataTermsAccepted; + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackSource; + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackType; + + /** + * The version of the LLM model that was used to generate the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String llmModelVersion; + + /** + * Optional. The reason if user gives a thumb down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reasons; + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * @return value or {@code null} for none + */ + public java.lang.String getComment() { + return comment; + } + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * @param comment comment or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setComment(java.lang.String comment) { + this.comment = comment; + return this; + } + + /** + * Optional. The version of the component that this report is being sent from. + * @return value or {@code null} for none + */ + public java.lang.String getComponentVersion() { + return componentVersion; + } + + /** + * Optional. The version of the component that this report is being sent from. + * @param componentVersion componentVersion or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setComponentVersion(java.lang.String componentVersion) { + this.componentVersion = componentVersion; + return this; + } + + /** + * The related conversation information when user gives feedback. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo getConversationInfo() { + return conversationInfo; + } + + /** + * The related conversation information when user gives feedback. + * @param conversationInfo conversationInfo or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setConversationInfo(GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo conversationInfo) { + this.conversationInfo = conversationInfo; + return this; + } + + /** + * Optional. Whether the customer accepted data use terms. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDataTermsAccepted() { + return dataTermsAccepted; + } + + /** + * Optional. Whether the customer accepted data use terms. + * @param dataTermsAccepted dataTermsAccepted or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setDataTermsAccepted(java.lang.Boolean dataTermsAccepted) { + this.dataTermsAccepted = dataTermsAccepted; + return this; + } + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackSource() { + return feedbackSource; + } + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * @param feedbackSource feedbackSource or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setFeedbackSource(java.lang.String feedbackSource) { + this.feedbackSource = feedbackSource; + return this; + } + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackType() { + return feedbackType; + } + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * @param feedbackType feedbackType or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setFeedbackType(java.lang.String feedbackType) { + this.feedbackType = feedbackType; + return this; + } + + /** + * The version of the LLM model that was used to generate the response. + * @return value or {@code null} for none + */ + public java.lang.String getLlmModelVersion() { + return llmModelVersion; + } + + /** + * The version of the LLM model that was used to generate the response. + * @param llmModelVersion llmModelVersion or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setLlmModelVersion(java.lang.String llmModelVersion) { + this.llmModelVersion = llmModelVersion; + return this; + } + + /** + * Optional. The reason if user gives a thumb down. + * @return value or {@code null} for none + */ + public java.util.List getReasons() { + return reasons; + } + + /** + * Optional. The reason if user gives a thumb down. + * @param reasons reasons or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback setReasons(java.util.List reasons) { + this.reasons = reasons; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaFeedback set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaFeedback) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaFeedback clone() { + return (GoogleCloudDiscoveryengineV1alphaFeedback) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo.java new file mode 100644 index 00000000000..cb18878a693 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo.java @@ -0,0 +1,162 @@ +/* + * 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.v1alpha.model; + +/** + * The conversation information such as the question index and session name. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo extends com.google.api.client.json.GenericJson { + + /** + * Optional. The token which could be used to fetch the answer log. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answerQueryToken; + + /** + * Optional. The token which could be used to fetch the assistant log. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assistToken; + + /** + * Required. The user's search query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaQuery query; + + /** + * The index of the user input within the conversation messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer questionIndex; + + /** + * Name of the newly generated or continued session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** + * Optional. The token which could be used to fetch the answer log. + * @return value or {@code null} for none + */ + public java.lang.String getAnswerQueryToken() { + return answerQueryToken; + } + + /** + * Optional. The token which could be used to fetch the answer log. + * @param answerQueryToken answerQueryToken or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo setAnswerQueryToken(java.lang.String answerQueryToken) { + this.answerQueryToken = answerQueryToken; + return this; + } + + /** + * Optional. The token which could be used to fetch the assistant log. + * @return value or {@code null} for none + */ + public java.lang.String getAssistToken() { + return assistToken; + } + + /** + * Optional. The token which could be used to fetch the assistant log. + * @param assistToken assistToken or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo setAssistToken(java.lang.String assistToken) { + this.assistToken = assistToken; + return this; + } + + /** + * Required. The user's search query. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaQuery getQuery() { + return query; + } + + /** + * Required. The user's search query. + * @param query query or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo setQuery(GoogleCloudDiscoveryengineV1alphaQuery query) { + this.query = query; + return this; + } + + /** + * The index of the user input within the conversation messages. + * @return value or {@code null} for none + */ + public java.lang.Integer getQuestionIndex() { + return questionIndex; + } + + /** + * The index of the user input within the conversation messages. + * @param questionIndex questionIndex or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo setQuestionIndex(java.lang.Integer questionIndex) { + this.questionIndex = questionIndex; + return this; + } + + /** + * Name of the newly generated or continued session. + * @return value or {@code null} for none + */ + public java.lang.String getSession() { + return session; + } + + /** + * Name of the newly generated or continued session. + * @param session session or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo setSession(java.lang.String session) { + this.session = session; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo clone() { + return (GoogleCloudDiscoveryengineV1alphaFeedbackConversationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserEvent.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserEvent.java index 5355e1da84a..addcec2f226 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserEvent.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaUserEvent.java @@ -172,6 +172,13 @@ public final class GoogleCloudDiscoveryengineV1alphaUserEvent extends com.google @com.google.api.client.util.Key private java.lang.String eventType; + /** + * Optional. This field is optional except for the `add-feedback` event types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaFeedback feedback; + /** * Optional. The filter syntax consists of an expression language for constructing a predicate * from one or more fields of the documents being filtered. One example is for `search` events, @@ -577,6 +584,23 @@ public GoogleCloudDiscoveryengineV1alphaUserEvent setEventType(java.lang.String return this; } + /** + * Optional. This field is optional except for the `add-feedback` event types. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaFeedback getFeedback() { + return feedback; + } + + /** + * Optional. This field is optional except for the `add-feedback` event types. + * @param feedback feedback or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaUserEvent setFeedback(GoogleCloudDiscoveryengineV1alphaFeedback feedback) { + this.feedback = feedback; + return this; + } + /** * Optional. The filter syntax consists of an expression language for constructing a predicate * from one or more fields of the documents being filtered. One example is for `search` events, diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java index df3e26b09dc..9d66c543923 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings.java @@ -117,7 +117,8 @@ public final class GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings exten * 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 @@ -137,6 +138,17 @@ public final class GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings exten @com.google.api.client.util.Key private java.lang.String interactionType; + /** + * Output only. The resolved, server-side view of model selector configuration. Holds both the + * ordered list of models that should appear in the model selector dropdown and the model that + * should be selected by default. Clients should render this directly without applying their own + * filtering, ordering, or localization. The legacy `model_configs` map above is retained for + * backward compatibility with clients that have not yet migrated to consuming this field. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo modelConfigInfo; + /** * Output only. Maps a model name to its specific configuration for this engine. This allows admin * users to turn on/off individual models. This only stores models whose states are overridden by @@ -349,7 +361,8 @@ public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings setEnableVisualCo * 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 getFeatures() { @@ -364,7 +377,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings setFeatures(java.util.Map features) { @@ -406,6 +420,31 @@ public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings setInteractionTyp return this; } + /** + * Output only. The resolved, server-side view of model selector configuration. Holds both the + * ordered list of models that should appear in the model selector dropdown and the model that + * should be selected by default. Clients should render this directly without applying their own + * filtering, ordering, or localization. The legacy `model_configs` map above is retained for + * backward compatibility with clients that have not yet migrated to consuming this field. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo getModelConfigInfo() { + return modelConfigInfo; + } + + /** + * Output only. The resolved, server-side view of model selector configuration. Holds both the + * ordered list of models that should appear in the model selector dropdown and the model that + * should be selected by default. Clients should render this directly without applying their own + * filtering, ordering, or localization. The legacy `model_configs` map above is retained for + * backward compatibility with clients that have not yet migrated to consuming this field. + * @param modelConfigInfo modelConfigInfo or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettings setModelConfigInfo(GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo modelConfigInfo) { + this.modelConfigInfo = modelConfigInfo; + return this; + } + /** * Output only. Maps a model name to its specific configuration for this engine. This allows admin * users to turn on/off individual models. This only stores models whose states are overridden by diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo.java new file mode 100644 index 00000000000..2ff66fe8c8f --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo.java @@ -0,0 +1,104 @@ +/* + * 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.v1alpha.model; + +/** + * The resolved, server-side view of model selector configuration for the end-user. The backend + * computes this per-request by applying, in order: Mendel flag evaluation, regional availability + * rules based on the engine's location, and admin-panel overrides from `model_configs`. The backend + * is the single source of truth for this configuration; clients should render `resolved_models` + * directly in the model selector dropdown, in the order provided, without applying their own + * filtering, ordering, or localization. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The `model_id` of the model that should be selected by default in the model + * selector when the end-user has not made an explicit choice. The value is always one of the + * `model_id`s present in `resolved_models`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultModelId; + + /** + * Output only. The list of models that are available to the end-user in the model selector, in + * the order in which they should be displayed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List resolvedModels; + + /** + * Output only. The `model_id` of the model that should be selected by default in the model + * selector when the end-user has not made an explicit choice. The value is always one of the + * `model_id`s present in `resolved_models`. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultModelId() { + return defaultModelId; + } + + /** + * Output only. The `model_id` of the model that should be selected by default in the model + * selector when the end-user has not made an explicit choice. The value is always one of the + * `model_id`s present in `resolved_models`. + * @param defaultModelId defaultModelId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo setDefaultModelId(java.lang.String defaultModelId) { + this.defaultModelId = defaultModelId; + return this; + } + + /** + * Output only. The list of models that are available to the end-user in the model selector, in + * the order in which they should be displayed. + * @return value or {@code null} for none + */ + public java.util.List getResolvedModels() { + return resolvedModels; + } + + /** + * Output only. The list of models that are available to the end-user in the model selector, in + * the order in which they should be displayed. + * @param resolvedModels resolvedModels or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo setResolvedModels(java.util.List resolvedModels) { + this.resolvedModels = resolvedModels; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo clone() { + return (GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel.java new file mode 100644 index 00000000000..e4fa3c1aeec --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel.java @@ -0,0 +1,187 @@ +/* + * 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.v1alpha.model; + +/** + * A single model that is resolved to be available to the end-user in the model selector, with all + * of its localized display metadata. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel extends com.google.api.client.json.GenericJson { + + /** + * Output only. Localized description text (e.g. `State-of-the-art reasoning`). Localized using + * the same locale as `display_name`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side + * based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code + * of the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, + * `graph_5`). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String icon; + + /** + * Output only. Whether the model is currently in preview. Clients should surface this via a + * "Preview" badge in the selector UI. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean isPreview; + + /** + * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro- + * preview`). This is the same identifier that clients pass back to the assistant service to + * select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; + * they are resolved to the underlying concrete model on the backend. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modelId; + + /** + * Output only. Localized description text (e.g. `State-of-the-art reasoning`). Localized using + * the same locale as `display_name`. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. Localized description text (e.g. `State-of-the-art reasoning`). Localized using + * the same locale as `display_name`. + * @param description description or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side + * based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code + * of the request. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Localized display name of the model (e.g. `Gemini 3.1 Pro`). Localized server-side + * based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code + * of the request. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, + * `graph_5`). + * @return value or {@code null} for none + */ + public java.lang.String getIcon() { + return icon; + } + + /** + * Output only. GM3-compatible icon token associated with the model (e.g. `rocket_launch`, `bolt`, + * `graph_5`). + * @param icon icon or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel setIcon(java.lang.String icon) { + this.icon = icon; + return this; + } + + /** + * Output only. Whether the model is currently in preview. Clients should surface this via a + * "Preview" badge in the selector UI. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIsPreview() { + return isPreview; + } + + /** + * Output only. Whether the model is currently in preview. Clients should surface this via a + * "Preview" badge in the selector UI. + * @param isPreview isPreview or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel setIsPreview(java.lang.Boolean isPreview) { + this.isPreview = isPreview; + return this; + } + + /** + * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro- + * preview`). This is the same identifier that clients pass back to the assistant service to + * select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; + * they are resolved to the underlying concrete model on the backend. + * @return value or {@code null} for none + */ + public java.lang.String getModelId() { + return modelId; + } + + /** + * Output only. Unique identifier of the model (e.g. `gemini-2.5-flash`, `gemini-3.1-pro- + * preview`). This is the same identifier that clients pass back to the assistant service to + * select this model. Virtual / "pseudo" models (e.g. `gemini-fast`) are also valid values here; + * they are resolved to the underlying concrete model on the backend. + * @param modelId modelId or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel setModelId(java.lang.String modelId) { + this.modelId = modelId; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel clone() { + return (GoogleCloudDiscoveryengineV1alphaWidgetConfigUiSettingsModelConfigInfoResolvedModel) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWorkspaceSettings.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWorkspaceSettings.java index 87c3ff6d240..13672c27e52 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWorkspaceSettings.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1alphaWorkspaceSettings.java @@ -29,6 +29,13 @@ @SuppressWarnings("javadoc") public final class GoogleCloudDiscoveryengineV1alphaWorkspaceSettings extends com.google.api.client.json.GenericJson { + /** + * Whether the calling user's customer domain matches the workspace data stores under this engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean customerDomainValid; + /** * Whether an end user has workspace access enabled. * The value may be {@code null}. @@ -36,6 +43,23 @@ public final class GoogleCloudDiscoveryengineV1alphaWorkspaceSettings extends co @com.google.api.client.util.Key private java.lang.Boolean workspaceAccessEnabled; + /** + * Whether the calling user's customer domain matches the workspace data stores under this engine. + * @return value or {@code null} for none + */ + public java.lang.Boolean getCustomerDomainValid() { + return customerDomainValid; + } + + /** + * Whether the calling user's customer domain matches the workspace data stores under this engine. + * @param customerDomainValid customerDomainValid or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1alphaWorkspaceSettings setCustomerDomainValid(java.lang.Boolean customerDomainValid) { + this.customerDomainValid = customerDomainValid; + return this; + } + /** * Whether an end user has workspace access enabled. * @return value or {@code null} for none diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java index 62bc44c194a..9c2244a6b89 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/com/google/api/services/discoveryengine/v1alpha/model/GoogleCloudDiscoveryengineV1betaEngine.java @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api * 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 @@ -458,7 +459,8 @@ public GoogleCloudDiscoveryengineV1betaEngine setDisplayName(java.lang.String di * 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 getFeatures() { @@ -474,7 +476,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1betaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml index 35df88c84bd..512ab51abca 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-discoveryengine - v1alpha-rev20260524-2.0.0 - Discovery Engine API v1alpha-rev20260524-2.0.0 + v1alpha-rev20260531-2.0.0 + Discovery Engine API v1alpha-rev20260531-2.0.0 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1alpha/README.md b/clients/google-api-services-discoveryengine/v1alpha/README.md index 8a727a2ec07..10c9265445d 100644 --- a/clients/google-api-services-discoveryengine/v1alpha/README.md +++ b/clients/google-api-services-discoveryengine/v1alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1alpha-rev20260524-2.0.0 + v1alpha-rev20260531-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20260524-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1alpha-rev20260531-2.0.0' } ``` diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md b/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md index 58510243050..d2e7f7fa446 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1beta-rev20260524-2.0.0 + v1beta-rev20260531-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260524-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260531-2.0.0' } ``` diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfig.java index 8496dcdfc75..fcc9e6c95e3 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfig.java @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1BAPConfig extends com.google.api. @com.google.api.client.util.Key private java.util.List 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 @@ -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); diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java new file mode 100644 index 00000000000..7c8728b3d80 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1BAPConfigToolspecOverride.java @@ -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.v1beta.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 + * . + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @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> 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> 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> 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(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java index 1f0a20ab646..7ab630f657a 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1Engine.java @@ -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 @@ -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 getFeatures() { @@ -474,7 +476,8 @@ public java.util.Map 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 features) { diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java index 9668f3c0a44..7f654f23eae 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfig.java @@ -43,6 +43,19 @@ public final class GoogleCloudDiscoveryengineV1alphaBAPConfig extends com.google @com.google.api.client.util.Key private java.util.List 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride toolspecOverride; + /** * Optional. The actions enabled on the associated BAP connection. * @return value or {@code null} for none @@ -77,6 +90,35 @@ public GoogleCloudDiscoveryengineV1alphaBAPConfig setSupportedConnectorModes(jav 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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 GoogleCloudDiscoveryengineV1alphaBAPConfig setToolspecOverride(GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride toolspecOverride) { + this.toolspecOverride = toolspecOverride; + return this; + } + @Override public GoogleCloudDiscoveryengineV1alphaBAPConfig set(String fieldName, Object value) { return (GoogleCloudDiscoveryengineV1alphaBAPConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java new file mode 100644 index 00000000000..7a800a8a6ec --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride.java @@ -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.v1beta.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 + * . + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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> 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride 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> 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 GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride setTools(java.util.List> tools) { + this.tools = tools; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride clone() { + return (GoogleCloudDiscoveryengineV1alphaBAPConfigToolspecOverride) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java index 38895b11039..5cf8924bb39 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1alphaEngine.java @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1alphaEngine extends com.google.ap * 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 @@ -473,7 +474,8 @@ public GoogleCloudDiscoveryengineV1alphaEngine setDisplayName(java.lang.String d * 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 getFeatures() { @@ -489,7 +491,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1alphaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java index 44eed4c6fee..3e09b848d75 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaEngine.java @@ -131,7 +131,8 @@ public final class GoogleCloudDiscoveryengineV1betaEngine extends com.google.api * 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 @@ -458,7 +459,8 @@ public GoogleCloudDiscoveryengineV1betaEngine setDisplayName(java.lang.String di * 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 getFeatures() { @@ -474,7 +476,8 @@ public java.util.Map 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 GoogleCloudDiscoveryengineV1betaEngine setFeatures(java.util.Map features) { diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaFeedback.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaFeedback.java new file mode 100644 index 00000000000..9605f847cb3 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaFeedback.java @@ -0,0 +1,241 @@ +/* + * 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.v1beta.model; + +/** + * Information about the user feedback. This information will be used for logging and metrics + * purpose. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaFeedback extends com.google.api.client.json.GenericJson { + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String comment; + + /** + * Optional. The version of the component that this report is being sent from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String componentVersion; + + /** + * The related conversation information when user gives feedback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo conversationInfo; + + /** + * Optional. Whether the customer accepted data use terms. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean dataTermsAccepted; + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackSource; + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String feedbackType; + + /** + * The version of the LLM model that was used to generate the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String llmModelVersion; + + /** + * Optional. The reason if user gives a thumb down. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List reasons; + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * @return value or {@code null} for none + */ + public java.lang.String getComment() { + return comment; + } + + /** + * Optional. The additional user comment of the feedback if user gives a thumb down. + * @param comment comment or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setComment(java.lang.String comment) { + this.comment = comment; + return this; + } + + /** + * Optional. The version of the component that this report is being sent from. + * @return value or {@code null} for none + */ + public java.lang.String getComponentVersion() { + return componentVersion; + } + + /** + * Optional. The version of the component that this report is being sent from. + * @param componentVersion componentVersion or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setComponentVersion(java.lang.String componentVersion) { + this.componentVersion = componentVersion; + return this; + } + + /** + * The related conversation information when user gives feedback. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo getConversationInfo() { + return conversationInfo; + } + + /** + * The related conversation information when user gives feedback. + * @param conversationInfo conversationInfo or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setConversationInfo(GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo conversationInfo) { + this.conversationInfo = conversationInfo; + return this; + } + + /** + * Optional. Whether the customer accepted data use terms. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDataTermsAccepted() { + return dataTermsAccepted; + } + + /** + * Optional. Whether the customer accepted data use terms. + * @param dataTermsAccepted dataTermsAccepted or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setDataTermsAccepted(java.lang.Boolean dataTermsAccepted) { + this.dataTermsAccepted = dataTermsAccepted; + return this; + } + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackSource() { + return feedbackSource; + } + + /** + * Optional. The UI component the user feedback comes from, which could be GOOGLE_CONSOLE, + * GOOGLE_WIDGET, GOOGLE_WEBAPP. + * @param feedbackSource feedbackSource or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setFeedbackSource(java.lang.String feedbackSource) { + this.feedbackSource = feedbackSource; + return this; + } + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * @return value or {@code null} for none + */ + public java.lang.String getFeedbackType() { + return feedbackType; + } + + /** + * Required. Indicate whether the user gives a positive or negative feedback. If the user gives a + * negative feedback, there might be more feedback details. + * @param feedbackType feedbackType or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setFeedbackType(java.lang.String feedbackType) { + this.feedbackType = feedbackType; + return this; + } + + /** + * The version of the LLM model that was used to generate the response. + * @return value or {@code null} for none + */ + public java.lang.String getLlmModelVersion() { + return llmModelVersion; + } + + /** + * The version of the LLM model that was used to generate the response. + * @param llmModelVersion llmModelVersion or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setLlmModelVersion(java.lang.String llmModelVersion) { + this.llmModelVersion = llmModelVersion; + return this; + } + + /** + * Optional. The reason if user gives a thumb down. + * @return value or {@code null} for none + */ + public java.util.List getReasons() { + return reasons; + } + + /** + * Optional. The reason if user gives a thumb down. + * @param reasons reasons or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback setReasons(java.util.List reasons) { + this.reasons = reasons; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaFeedback set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaFeedback) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaFeedback clone() { + return (GoogleCloudDiscoveryengineV1betaFeedback) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo.java new file mode 100644 index 00000000000..b47ed74cb57 --- /dev/null +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo.java @@ -0,0 +1,162 @@ +/* + * 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.v1beta.model; + +/** + * The conversation information such as the question index and session name. + * + *

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: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo extends com.google.api.client.json.GenericJson { + + /** + * Optional. The token which could be used to fetch the answer log. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String answerQueryToken; + + /** + * Optional. The token which could be used to fetch the assistant log. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assistToken; + + /** + * Required. The user's search query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaQuery query; + + /** + * The index of the user input within the conversation messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer questionIndex; + + /** + * Name of the newly generated or continued session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** + * Optional. The token which could be used to fetch the answer log. + * @return value or {@code null} for none + */ + public java.lang.String getAnswerQueryToken() { + return answerQueryToken; + } + + /** + * Optional. The token which could be used to fetch the answer log. + * @param answerQueryToken answerQueryToken or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo setAnswerQueryToken(java.lang.String answerQueryToken) { + this.answerQueryToken = answerQueryToken; + return this; + } + + /** + * Optional. The token which could be used to fetch the assistant log. + * @return value or {@code null} for none + */ + public java.lang.String getAssistToken() { + return assistToken; + } + + /** + * Optional. The token which could be used to fetch the assistant log. + * @param assistToken assistToken or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo setAssistToken(java.lang.String assistToken) { + this.assistToken = assistToken; + return this; + } + + /** + * Required. The user's search query. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaQuery getQuery() { + return query; + } + + /** + * Required. The user's search query. + * @param query query or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo setQuery(GoogleCloudDiscoveryengineV1betaQuery query) { + this.query = query; + return this; + } + + /** + * The index of the user input within the conversation messages. + * @return value or {@code null} for none + */ + public java.lang.Integer getQuestionIndex() { + return questionIndex; + } + + /** + * The index of the user input within the conversation messages. + * @param questionIndex questionIndex or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo setQuestionIndex(java.lang.Integer questionIndex) { + this.questionIndex = questionIndex; + return this; + } + + /** + * Name of the newly generated or continued session. + * @return value or {@code null} for none + */ + public java.lang.String getSession() { + return session; + } + + /** + * Name of the newly generated or continued session. + * @param session session or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo setSession(java.lang.String session) { + this.session = session; + return this; + } + + @Override + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo set(String fieldName, Object value) { + return (GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo) super.set(fieldName, value); + } + + @Override + public GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo clone() { + return (GoogleCloudDiscoveryengineV1betaFeedbackConversationInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaUserEvent.java b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaUserEvent.java index 6592ba10df2..a555b2e4c89 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaUserEvent.java +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/com/google/api/services/discoveryengine/v1beta/model/GoogleCloudDiscoveryengineV1betaUserEvent.java @@ -172,6 +172,13 @@ public final class GoogleCloudDiscoveryengineV1betaUserEvent extends com.google. @com.google.api.client.util.Key private java.lang.String eventType; + /** + * Optional. This field is optional except for the `add-feedback` event types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudDiscoveryengineV1betaFeedback feedback; + /** * Optional. The filter syntax consists of an expression language for constructing a predicate * from one or more fields of the documents being filtered. One example is for `search` events, @@ -577,6 +584,23 @@ public GoogleCloudDiscoveryengineV1betaUserEvent setEventType(java.lang.String e return this; } + /** + * Optional. This field is optional except for the `add-feedback` event types. + * @return value or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaFeedback getFeedback() { + return feedback; + } + + /** + * Optional. This field is optional except for the `add-feedback` event types. + * @param feedback feedback or {@code null} for none + */ + public GoogleCloudDiscoveryengineV1betaUserEvent setFeedback(GoogleCloudDiscoveryengineV1betaFeedback feedback) { + this.feedback = feedback; + return this; + } + /** * Optional. The filter syntax consists of an expression language for constructing a predicate * from one or more fields of the documents being filtered. One example is for `search` events, diff --git a/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml b/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml index edf419aea77..9d13266c77b 100644 --- a/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-discoveryengine/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-discoveryengine - v1beta-rev20260524-2.0.0 - Discovery Engine API v1beta-rev20260524-2.0.0 + v1beta-rev20260531-2.0.0 + Discovery Engine API v1beta-rev20260531-2.0.0 jar 2011 diff --git a/clients/google-api-services-discoveryengine/v1beta/README.md b/clients/google-api-services-discoveryengine/v1beta/README.md index 58510243050..d2e7f7fa446 100644 --- a/clients/google-api-services-discoveryengine/v1beta/README.md +++ b/clients/google-api-services-discoveryengine/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-discoveryengine - v1beta-rev20260524-2.0.0 + v1beta-rev20260531-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260524-2.0.0' + implementation 'com.google.apis:google-api-services-discoveryengine:v1beta-rev20260531-2.0.0' } ```