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

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions clients/google-api-services-retail/v2alpha/2.0.0/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-retail</artifactId>
<version>v2alpha-rev20260723-2.0.0</version>
<version>v2alpha-rev20260803-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt> 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
Expand Down Expand Up @@ -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<GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt> 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<GoogleCloudRetailV2alphaCompleteQueryResponseCompletionResultAgentPrompt> 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
Expand Down
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
* transmitted over HTTP when working with the Vertex AI Search for commerce API. For a detailed
* explanation see:
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
* </p>
*
* @author Google, Inc.
*/
@SuppressWarnings("javadoc")
public final class 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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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<GoogleCloudRetailV2alphaControl> 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
Expand Down Expand Up @@ -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<java.lang.String> 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
Expand Down Expand Up @@ -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<GoogleCloudRetailV2alphaControl> 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<GoogleCloudRetailV2alphaControl> 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
Expand Down Expand Up @@ -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<java.lang.String> 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<java.lang.String> 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
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-retail/v2alpha/2.0.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-retail</artifactId>
<version>v2alpha-rev20260723-2.0.0</version>
<name>Vertex AI Search for commerce API v2alpha-rev20260723-2.0.0</name>
<version>v2alpha-rev20260803-2.0.0</version>
<name>Vertex AI Search for commerce API v2alpha-rev20260803-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-retail/v2alpha/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-retail</artifactId>
<version>v2alpha-rev20260723-2.0.0</version>
<version>v2alpha-rev20260803-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Loading