From 1b582b1cd337809d72cb3a4a56f7132180182692 Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 5 Aug 2026 17:57:19 -0700 Subject: [PATCH] chore: regenerate retail client --- .../v2alpha/2.0.0/README.md | 4 +- ...CompleteQueryResponseCompletionResult.java | 30 ++++++++ ...ryResponseCompletionResultAgentPrompt.java | 67 ++++++++++++++++++ ...GoogleCloudRetailV2alphaSearchRequest.java | 69 +++++++++++++++++++ .../v2alpha/2.0.0/pom.xml | 4 +- .../v2alpha/README.md | 4 +- 6 files changed, 172 insertions(+), 6 deletions(-) create mode 100644 clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt.java diff --git a/clients/google-api-services-retail/v2alpha/2.0.0/README.md b/clients/google-api-services-retail/v2alpha/2.0.0/README.md index 67005c5a4d8..1566a9a2ae4 100644 --- a/clients/google-api-services-retail/v2alpha/2.0.0/README.md +++ b/clients/google-api-services-retail/v2alpha/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-retail - v2alpha-rev20260723-2.0.0 + v2alpha-rev20260803-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20260723-2.0.0' + implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20260803-2.0.0' } ``` diff --git a/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult.java b/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult.java index b07aa813750..0eaa9ef2391 100644 --- a/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult.java +++ b/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult.java @@ -30,6 +30,15 @@ @SuppressWarnings("javadoc") public final class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult extends com.google.api.client.json.GenericJson { + /** + * Conversational prompts to trigger agents like Shopping Agent. There may be multiple prompts for + * a single suggestion. This is an experimental feature for select customers. If you want to + * receive this prompt information, reach out to the Retail support team. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agentPrompts; + /** * Custom attributes for the suggestion term. * For `user-data`, the attributes are additional * custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product @@ -65,6 +74,27 @@ public final class GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult @com.google.api.client.util.Key private java.lang.Integer totalProductCount; + /** + * Conversational prompts to trigger agents like Shopping Agent. There may be multiple prompts for + * a single suggestion. This is an experimental feature for select customers. If you want to + * receive this prompt information, reach out to the Retail support team. + * @return value or {@code null} for none + */ + public java.util.List getAgentPrompts() { + return agentPrompts; + } + + /** + * Conversational prompts to trigger agents like Shopping Agent. There may be multiple prompts for + * a single suggestion. This is an experimental feature for select customers. If you want to + * receive this prompt information, reach out to the Retail support team. + * @param agentPrompts agentPrompts or {@code null} for none + */ + public GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResult setAgentPrompts(java.util.List agentPrompts) { + this.agentPrompts = agentPrompts; + return this; + } + /** * Custom attributes for the suggestion term. * For `user-data`, the attributes are additional * custom attributes ingested through BigQuery. * For `cloud-retail`, the attributes are product diff --git a/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt.java b/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt.java new file mode 100644 index 00000000000..08a94b2238d --- /dev/null +++ b/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt.java @@ -0,0 +1,67 @@ +/* + * 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.retail.v2alpha.model; + +/** + * A conversational prompt to trigger agents like Shopping Agent. + * + *

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 Vertex AI Search for commerce 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 GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt extends com.google.api.client.json.GenericJson { + + /** + * The conversational prompt string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * The conversational prompt string. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * The conversational prompt string. + * @param prompt prompt or {@code null} for none + */ + public GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt set(String fieldName, Object value) { + return (GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt) super.set(fieldName, value); + } + + @Override + public GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt clone() { + return (GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt) super.clone(); + } + +} diff --git a/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaSearchRequest.java b/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaSearchRequest.java index 298dae56ec0..20726080e01 100644 --- a/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaSearchRequest.java +++ b/clients/google-api-services-retail/v2alpha/2.0.0/com/google/api/services/retail/v2alpha/model/GoogleCloudRetailV2alphaSearchRequest.java @@ -71,6 +71,23 @@ public final class GoogleCloudRetailV2alphaSearchRequest extends com.google.api. @com.google.api.client.util.Key private GoogleCloudRetailV2alphaSearchRequestConversationalSearchSpec conversationalSearchSpec; + /** + * Optional. A set of controls that are applied dynamically to the search request. These controls + * are applied in addition to the controls specified in the serving config. These controls are + * expected to not yet be persisted in storage. A control could be applied twice if it is in both + * the serving config and specified here. A maximum of 5 values are allowed. Otherwise, an + * INVALID_ARGUMENT error is returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dynamicControls; + + static { + // hack to force ProGuard to consider GoogleCloudRetailV2alphaControl used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudRetailV2alphaControl.class); + } + /** * Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic * facets. Do not set this field. The specification for dynamically generated facets. Notice that @@ -115,6 +132,14 @@ public final class GoogleCloudRetailV2alphaSearchRequest extends com.google.api. @com.google.api.client.util.Key private java.lang.String filter; + /** + * Optional. A list of control IDs to ignore. These controls will not be applied to the search + * request, even if they are specified in the serving config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ignoredControlIds; + /** * The labels applied to a resource must meet the following requirements: * Each resource can have * multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a @@ -423,6 +448,31 @@ public GoogleCloudRetailV2alphaSearchRequest setConversationalSearchSpec(GoogleC return this; } + /** + * Optional. A set of controls that are applied dynamically to the search request. These controls + * are applied in addition to the controls specified in the serving config. These controls are + * expected to not yet be persisted in storage. A control could be applied twice if it is in both + * the serving config and specified here. A maximum of 5 values are allowed. Otherwise, an + * INVALID_ARGUMENT error is returned. + * @return value or {@code null} for none + */ + public java.util.List getDynamicControls() { + return dynamicControls; + } + + /** + * Optional. A set of controls that are applied dynamically to the search request. These controls + * are applied in addition to the controls specified in the serving config. These controls are + * expected to not yet be persisted in storage. A control could be applied twice if it is in both + * the serving config and specified here. A maximum of 5 values are allowed. Otherwise, an + * INVALID_ARGUMENT error is returned. + * @param dynamicControls dynamicControls or {@code null} for none + */ + public GoogleCloudRetailV2alphaSearchRequest setDynamicControls(java.util.List dynamicControls) { + this.dynamicControls = dynamicControls; + return this; + } + /** * Deprecated. Refer to https://cloud.google.com/retail/docs/configs#dynamic to enable dynamic * facets. Do not set this field. The specification for dynamically generated facets. Notice that @@ -526,6 +576,25 @@ public GoogleCloudRetailV2alphaSearchRequest setFilter(java.lang.String filter) return this; } + /** + * Optional. A list of control IDs to ignore. These controls will not be applied to the search + * request, even if they are specified in the serving config. + * @return value or {@code null} for none + */ + public java.util.List getIgnoredControlIds() { + return ignoredControlIds; + } + + /** + * Optional. A list of control IDs to ignore. These controls will not be applied to the search + * request, even if they are specified in the serving config. + * @param ignoredControlIds ignoredControlIds or {@code null} for none + */ + public GoogleCloudRetailV2alphaSearchRequest setIgnoredControlIds(java.util.List ignoredControlIds) { + this.ignoredControlIds = ignoredControlIds; + return this; + } + /** * The labels applied to a resource must meet the following requirements: * Each resource can have * multiple labels, up to a maximum of 64. * Each label must be a key-value pair. * Keys have a diff --git a/clients/google-api-services-retail/v2alpha/2.0.0/pom.xml b/clients/google-api-services-retail/v2alpha/2.0.0/pom.xml index 3b3fceca5fb..70b44d75665 100644 --- a/clients/google-api-services-retail/v2alpha/2.0.0/pom.xml +++ b/clients/google-api-services-retail/v2alpha/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-retail - v2alpha-rev20260723-2.0.0 - Vertex AI Search for commerce API v2alpha-rev20260723-2.0.0 + v2alpha-rev20260803-2.0.0 + Vertex AI Search for commerce API v2alpha-rev20260803-2.0.0 jar 2011 diff --git a/clients/google-api-services-retail/v2alpha/README.md b/clients/google-api-services-retail/v2alpha/README.md index 67005c5a4d8..1566a9a2ae4 100644 --- a/clients/google-api-services-retail/v2alpha/README.md +++ b/clients/google-api-services-retail/v2alpha/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-retail - v2alpha-rev20260723-2.0.0 + v2alpha-rev20260803-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20260723-2.0.0' + implementation 'com.google.apis:google-api-services-retail:v2alpha-rev20260803-2.0.0' } ```