From 4aeeb4bc9347407d3a7fd9ac73df08973e153e1e Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Wed, 25 Mar 2026 18:15:35 -0700 Subject: [PATCH] chore: regenerate ces client --- .../v1/2.0.0/README.md | 4 +- .../ces/v1/CustomerEngagementSuite.java | 148 ++++++++++++++++++ .../ces/v1/model/BigQueryExportSettings.java | 27 ++-- .../services/ces/v1/model/SessionConfig.java | 30 ++++ .../ces/v1/model/WidgetToolDataMapping.java | 36 ++++- .../google-api-services-ces/v1/2.0.0/pom.xml | 4 +- clients/google-api-services-ces/v1/README.md | 4 +- .../v1beta/2.0.0/README.md | 4 +- .../ces/v1beta/CustomerEngagementSuite.java | 148 ++++++++++++++++++ .../v1beta/model/BigQueryExportSettings.java | 27 ++-- .../model/GenerateAppResourceResponse.java | 24 +++ .../ces/v1beta/model/QualityReport.java | 118 ++++++++++++++ .../model/QualityReportAgentIssues.java | 94 +++++++++++ .../ces/v1beta/model/QualityReportIssue.java | 115 ++++++++++++++ .../ces/v1beta/model/SessionConfig.java | 30 ++++ .../v1beta/model/WidgetToolDataMapping.java | 36 ++++- .../v1beta/2.0.0/pom.xml | 4 +- .../google-api-services-ces/v1beta/README.md | 4 +- 18 files changed, 809 insertions(+), 48 deletions(-) create mode 100644 clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReport.java create mode 100644 clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportAgentIssues.java create mode 100644 clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportIssue.java diff --git a/clients/google-api-services-ces/v1/2.0.0/README.md b/clients/google-api-services-ces/v1/2.0.0/README.md index 4239db35de4..8ef58e2afd3 100644 --- a/clients/google-api-services-ces/v1/2.0.0/README.md +++ b/clients/google-api-services-ces/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-ces - v1-rev20260312-2.0.0 + v1-rev20260318-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-ces:v1-rev20260312-2.0.0' + implementation 'com.google.apis:google-api-services-ces:v1-rev20260318-2.0.0' } ``` diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java index 1b42e6d74f2..dd4a4febc59 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java @@ -6888,6 +6888,154 @@ public RunSession set(String parameterName, Object value) { return (RunSession) super.set(parameterName, value); } } + /** + * Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver + * incremental results and partial responses as they are generated. By default, complete responses + * (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are + * available. To enable streaming individual text chunks directly from the model, set + * enable_text_streaming to true. + * + * Create a request for the method "sessions.streamRunSession". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation. + * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} + * @return the request + */ + public StreamRunSession streamRunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) throws java.io.IOException { + StreamRunSession result = new StreamRunSession(session, content); + initialize(result); + return result; + } + + public class StreamRunSession extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+session}:streamRunSession"; + + private final java.util.regex.Pattern SESSION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + + /** + * Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver + * incremental results and partial responses as they are generated. By default, complete responses + * (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they + * are available. To enable streaming individual text chunks directly from the model, set + * enable_text_streaming to true. + * + * Create a request for the method "sessions.streamRunSession". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation. + *

{@link StreamRunSession#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * ClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} + * @since 1.13 + */ + protected StreamRunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RunSessionResponse.class); + this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public StreamRunSession set$Xgafv(java.lang.String $Xgafv) { + return (StreamRunSession) super.set$Xgafv($Xgafv); + } + + @Override + public StreamRunSession setAccessToken(java.lang.String accessToken) { + return (StreamRunSession) super.setAccessToken(accessToken); + } + + @Override + public StreamRunSession setAlt(java.lang.String alt) { + return (StreamRunSession) super.setAlt(alt); + } + + @Override + public StreamRunSession setCallback(java.lang.String callback) { + return (StreamRunSession) super.setCallback(callback); + } + + @Override + public StreamRunSession setFields(java.lang.String fields) { + return (StreamRunSession) super.setFields(fields); + } + + @Override + public StreamRunSession setKey(java.lang.String key) { + return (StreamRunSession) super.setKey(key); + } + + @Override + public StreamRunSession setOauthToken(java.lang.String oauthToken) { + return (StreamRunSession) super.setOauthToken(oauthToken); + } + + @Override + public StreamRunSession setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamRunSession) super.setPrettyPrint(prettyPrint); + } + + @Override + public StreamRunSession setQuotaUser(java.lang.String quotaUser) { + return (StreamRunSession) super.setQuotaUser(quotaUser); + } + + @Override + public StreamRunSession setUploadType(java.lang.String uploadType) { + return (StreamRunSession) super.setUploadType(uploadType); + } + + @Override + public StreamRunSession setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamRunSession) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** Required. The unique identifier of the session. Format: + `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public java.lang.String getSession() { + return session; + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public StreamRunSession setSession(java.lang.String session) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.session = session; + return this; + } + + @Override + public StreamRunSession set(String parameterName, Object value) { + return (StreamRunSession) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java index b654219b939..1df54de600a 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java @@ -31,7 +31,7 @@ public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson { /** - * Optional. The BigQuery dataset to export the data to. + * Optional. The BigQuery **dataset ID** to export the data to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,16 +45,17 @@ public final class BigQueryExportSettings extends com.google.api.client.json.Gen private java.lang.Boolean enabled; /** - * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery - * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to - * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the + * BigQuery dataset is in a different project from the app, you should grant + * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String project; /** - * Optional. The BigQuery dataset to export the data to. + * Optional. The BigQuery **dataset ID** to export the data to. * @return value or {@code null} for none */ public java.lang.String getDataset() { @@ -62,7 +63,7 @@ public java.lang.String getDataset() { } /** - * Optional. The BigQuery dataset to export the data to. + * Optional. The BigQuery **dataset ID** to export the data to. * @param dataset dataset or {@code null} for none */ public BigQueryExportSettings setDataset(java.lang.String dataset) { @@ -88,9 +89,10 @@ public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) { } /** - * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery - * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to - * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the + * BigQuery dataset is in a different project from the app, you should grant + * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. * @return value or {@code null} for none */ public java.lang.String getProject() { @@ -98,9 +100,10 @@ public java.lang.String getProject() { } /** - * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery - * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to - * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the + * BigQuery dataset is in a different project from the app, you should grant + * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. * @param project project or {@code null} for none */ public BigQueryExportSettings setProject(java.lang.String project) { diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java index 7d2a880405f..2e06e04a485 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java @@ -38,6 +38,15 @@ public final class SessionConfig extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String deployment; + /** + * Optional. Whether to enable streaming text outputs from the model. By default, text outputs + * from the model are collected before sending to the client. NOTE: This is only supported for + * text (non-voice) sessions via StreamRunSession or BidiRunSession. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableTextStreaming; + /** * Optional. The entry agent to handle the session. If not specified, the session will be handled * by the root agent of the app. Format: @@ -124,6 +133,27 @@ public SessionConfig setDeployment(java.lang.String deployment) { return this; } + /** + * Optional. Whether to enable streaming text outputs from the model. By default, text outputs + * from the model are collected before sending to the client. NOTE: This is only supported for + * text (non-voice) sessions via StreamRunSession or BidiRunSession. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableTextStreaming() { + return enableTextStreaming; + } + + /** + * Optional. Whether to enable streaming text outputs from the model. By default, text outputs + * from the model are collected before sending to the client. NOTE: This is only supported for + * text (non-voice) sessions via StreamRunSession or BidiRunSession. + * @param enableTextStreaming enableTextStreaming or {@code null} for none + */ + public SessionConfig setEnableTextStreaming(java.lang.Boolean enableTextStreaming) { + this.enableTextStreaming = enableTextStreaming; + return this; + } + /** * Optional. The entry agent to handle the session. If not specified, the session will be handled * by the root agent of the app. Format: diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java index 6eeefe79cd5..eea3556b293 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java @@ -46,8 +46,15 @@ public final class WidgetToolDataMapping extends com.google.api.client.json.Gene private java.lang.String mode; /** - * Optional. A Python script used to transform the source tool's output into the widget's input - * format. This is used when the mapping is too complex for simple field mappings. + * Optional. Configuration for a Python function used to transform the source tool's output into + * the widget's input format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PythonFunction pythonFunction; + + /** + * Deprecated: Use `python_function` instead. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,8 +106,26 @@ public WidgetToolDataMapping setMode(java.lang.String mode) { } /** - * Optional. A Python script used to transform the source tool's output into the widget's input - * format. This is used when the mapping is too complex for simple field mappings. + * Optional. Configuration for a Python function used to transform the source tool's output into + * the widget's input format. + * @return value or {@code null} for none + */ + public PythonFunction getPythonFunction() { + return pythonFunction; + } + + /** + * Optional. Configuration for a Python function used to transform the source tool's output into + * the widget's input format. + * @param pythonFunction pythonFunction or {@code null} for none + */ + public WidgetToolDataMapping setPythonFunction(PythonFunction pythonFunction) { + this.pythonFunction = pythonFunction; + return this; + } + + /** + * Deprecated: Use `python_function` instead. * @return value or {@code null} for none */ public java.lang.String getPythonScript() { @@ -108,8 +133,7 @@ public java.lang.String getPythonScript() { } /** - * Optional. A Python script used to transform the source tool's output into the widget's input - * format. This is used when the mapping is too complex for simple field mappings. + * Deprecated: Use `python_function` instead. * @param pythonScript pythonScript or {@code null} for none */ public WidgetToolDataMapping setPythonScript(java.lang.String pythonScript) { diff --git a/clients/google-api-services-ces/v1/2.0.0/pom.xml b/clients/google-api-services-ces/v1/2.0.0/pom.xml index e5b75f2bf27..4aba1ba4fe9 100644 --- a/clients/google-api-services-ces/v1/2.0.0/pom.xml +++ b/clients/google-api-services-ces/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-ces - v1-rev20260312-2.0.0 - Gemini Enterprise for Customer Experience API v1-rev20260312-2.0.0 + v1-rev20260318-2.0.0 + Gemini Enterprise for Customer Experience API v1-rev20260318-2.0.0 jar 2011 diff --git a/clients/google-api-services-ces/v1/README.md b/clients/google-api-services-ces/v1/README.md index 4239db35de4..8ef58e2afd3 100644 --- a/clients/google-api-services-ces/v1/README.md +++ b/clients/google-api-services-ces/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-ces - v1-rev20260312-2.0.0 + v1-rev20260318-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-ces:v1-rev20260312-2.0.0' + implementation 'com.google.apis:google-api-services-ces:v1-rev20260318-2.0.0' } ``` diff --git a/clients/google-api-services-ces/v1beta/2.0.0/README.md b/clients/google-api-services-ces/v1beta/2.0.0/README.md index 89dc4132ffd..8308c8eea0f 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/README.md +++ b/clients/google-api-services-ces/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-ces - v1beta-rev20260312-2.0.0 + v1beta-rev20260318-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260312-2.0.0' + implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260318-2.0.0' } ``` diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java index 720d6718e08..0ca1a2c42e8 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java @@ -12581,6 +12581,154 @@ public RunSession set(String parameterName, Object value) { return (RunSession) super.set(parameterName, value); } } + /** + * Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver + * incremental results and partial responses as they are generated. By default, complete responses + * (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are + * available. To enable streaming individual text chunks directly from the model, set + * enable_text_streaming to true. + * + * Create a request for the method "sessions.streamRunSession". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation. + * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RunSessionRequest} + * @return the request + */ + public StreamRunSession streamRunSession(java.lang.String session, com.google.api.services.ces.v1beta.model.RunSessionRequest content) throws java.io.IOException { + StreamRunSession result = new StreamRunSession(session, content); + initialize(result); + return result; + } + + public class StreamRunSession extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+session}:streamRunSession"; + + private final java.util.regex.Pattern SESSION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + + /** + * Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver + * incremental results and partial responses as they are generated. By default, complete responses + * (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they + * are available. To enable streaming individual text chunks directly from the model, set + * enable_text_streaming to true. + * + * Create a request for the method "sessions.streamRunSession". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation. + *

{@link StreamRunSession#initialize(com.google.api.client.googleapis.services.AbstractGoogle + * ClientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RunSessionRequest} + * @since 1.13 + */ + protected StreamRunSession(java.lang.String session, com.google.api.services.ces.v1beta.model.RunSessionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.RunSessionResponse.class); + this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public StreamRunSession set$Xgafv(java.lang.String $Xgafv) { + return (StreamRunSession) super.set$Xgafv($Xgafv); + } + + @Override + public StreamRunSession setAccessToken(java.lang.String accessToken) { + return (StreamRunSession) super.setAccessToken(accessToken); + } + + @Override + public StreamRunSession setAlt(java.lang.String alt) { + return (StreamRunSession) super.setAlt(alt); + } + + @Override + public StreamRunSession setCallback(java.lang.String callback) { + return (StreamRunSession) super.setCallback(callback); + } + + @Override + public StreamRunSession setFields(java.lang.String fields) { + return (StreamRunSession) super.setFields(fields); + } + + @Override + public StreamRunSession setKey(java.lang.String key) { + return (StreamRunSession) super.setKey(key); + } + + @Override + public StreamRunSession setOauthToken(java.lang.String oauthToken) { + return (StreamRunSession) super.setOauthToken(oauthToken); + } + + @Override + public StreamRunSession setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamRunSession) super.setPrettyPrint(prettyPrint); + } + + @Override + public StreamRunSession setQuotaUser(java.lang.String quotaUser) { + return (StreamRunSession) super.setQuotaUser(quotaUser); + } + + @Override + public StreamRunSession setUploadType(java.lang.String uploadType) { + return (StreamRunSession) super.setUploadType(uploadType); + } + + @Override + public StreamRunSession setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamRunSession) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** Required. The unique identifier of the session. Format: + `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public java.lang.String getSession() { + return session; + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public StreamRunSession setSession(java.lang.String session) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.session = session; + return this; + } + + @Override + public StreamRunSession set(String parameterName, Object value) { + return (StreamRunSession) super.set(parameterName, value); + } + } } /** diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java index 6650c5b9a66..35133c7958f 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java @@ -31,7 +31,7 @@ public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson { /** - * Optional. The BigQuery dataset to export the data to. + * Optional. The BigQuery **dataset ID** to export the data to. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -45,16 +45,17 @@ public final class BigQueryExportSettings extends com.google.api.client.json.Gen private java.lang.Boolean enabled; /** - * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery - * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to - * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the + * BigQuery dataset is in a different project from the app, you should grant + * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.String project; /** - * Optional. The BigQuery dataset to export the data to. + * Optional. The BigQuery **dataset ID** to export the data to. * @return value or {@code null} for none */ public java.lang.String getDataset() { @@ -62,7 +63,7 @@ public java.lang.String getDataset() { } /** - * Optional. The BigQuery dataset to export the data to. + * Optional. The BigQuery **dataset ID** to export the data to. * @param dataset dataset or {@code null} for none */ public BigQueryExportSettings setDataset(java.lang.String dataset) { @@ -88,9 +89,10 @@ public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) { } /** - * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery - * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to - * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the + * BigQuery dataset is in a different project from the app, you should grant + * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. * @return value or {@code null} for none */ public java.lang.String getProject() { @@ -98,9 +100,10 @@ public java.lang.String getProject() { } /** - * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery - * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to - * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the + * BigQuery dataset is in a different project from the app, you should grant + * `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. * @param project project or {@code null} for none */ public BigQueryExportSettings setProject(java.lang.String project) { diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java index c6515228024..27c1a52dc82 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java @@ -66,6 +66,13 @@ public final class GenerateAppResourceResponse extends com.google.api.client.jso @com.google.api.client.util.Key private GenerateAppResourceResponseGenerateResultInfo generateResultInfo; + /** + * The quality report generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private QualityReport qualityReport; + /** * The list of tools generated by the LLM assistant. * The value may be {@code null}. @@ -167,6 +174,23 @@ public GenerateAppResourceResponse setGenerateResultInfo(GenerateAppResourceResp return this; } + /** + * The quality report generated by the LLM assistant. + * @return value or {@code null} for none + */ + public QualityReport getQualityReport() { + return qualityReport; + } + + /** + * The quality report generated by the LLM assistant. + * @param qualityReport qualityReport or {@code null} for none + */ + public GenerateAppResourceResponse setQualityReport(QualityReport qualityReport) { + this.qualityReport = qualityReport; + return this; + } + /** * The list of tools generated by the LLM assistant. * @return value or {@code null} for none diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReport.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReport.java new file mode 100644 index 00000000000..1bdef501d0c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReport.java @@ -0,0 +1,118 @@ +/* + * 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.ces.v1beta.model; + +/** + * The report describing any identified quality issues in the app. + * + *

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 Gemini Enterprise for Customer Experience 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 QualityReport extends com.google.api.client.json.GenericJson { + + /** + * Optional. A list of evaluation runs used to generate the quality report. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationRuns; + + /** + * Optional. General issues not specific to any agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List generalIssues; + + /** + * Optional. The issues grouped by agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List issues; + + /** + * Optional. A list of evaluation runs used to generate the quality report. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationRuns() { + return evaluationRuns; + } + + /** + * Optional. A list of evaluation runs used to generate the quality report. Format: + * `projects/{project}/locations/{location}/evaluationRuns/{evaluationRun}`. + * @param evaluationRuns evaluationRuns or {@code null} for none + */ + public QualityReport setEvaluationRuns(java.util.List evaluationRuns) { + this.evaluationRuns = evaluationRuns; + return this; + } + + /** + * Optional. General issues not specific to any agent. + * @return value or {@code null} for none + */ + public java.util.List getGeneralIssues() { + return generalIssues; + } + + /** + * Optional. General issues not specific to any agent. + * @param generalIssues generalIssues or {@code null} for none + */ + public QualityReport setGeneralIssues(java.util.List generalIssues) { + this.generalIssues = generalIssues; + return this; + } + + /** + * Optional. The issues grouped by agent. + * @return value or {@code null} for none + */ + public java.util.List getIssues() { + return issues; + } + + /** + * Optional. The issues grouped by agent. + * @param issues issues or {@code null} for none + */ + public QualityReport setIssues(java.util.List issues) { + this.issues = issues; + return this; + } + + @Override + public QualityReport set(String fieldName, Object value) { + return (QualityReport) super.set(fieldName, value); + } + + @Override + public QualityReport clone() { + return (QualityReport) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportAgentIssues.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportAgentIssues.java new file mode 100644 index 00000000000..dd86a709cbd --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportAgentIssues.java @@ -0,0 +1,94 @@ +/* + * 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.ces.v1beta.model; + +/** + * Issues identified for a single 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 Gemini Enterprise for Customer Experience 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 QualityReportAgentIssues extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the agent to which the issues are related. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Optional. List of issues found for this agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List issues; + + /** + * Optional. The name of the agent to which the issues are related. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * Optional. The name of the agent to which the issues are related. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param agent agent or {@code null} for none + */ + public QualityReportAgentIssues setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + /** + * Optional. List of issues found for this agent. + * @return value or {@code null} for none + */ + public java.util.List getIssues() { + return issues; + } + + /** + * Optional. List of issues found for this agent. + * @param issues issues or {@code null} for none + */ + public QualityReportAgentIssues setIssues(java.util.List issues) { + this.issues = issues; + return this; + } + + @Override + public QualityReportAgentIssues set(String fieldName, Object value) { + return (QualityReportAgentIssues) super.set(fieldName, value); + } + + @Override + public QualityReportAgentIssues clone() { + return (QualityReportAgentIssues) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportIssue.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportIssue.java new file mode 100644 index 00000000000..556c0d45396 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/QualityReportIssue.java @@ -0,0 +1,115 @@ +/* + * 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.ces.v1beta.model; + +/** + * The issue identified. + * + *

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 Gemini Enterprise for Customer Experience 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 QualityReportIssue extends com.google.api.client.json.GenericJson { + + /** + * Optional. Description of the issue found. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. How many times this issue occurred. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer occurrenceCount; + + /** + * Optional. Proposed solution to fix the issue by modifying instructions or tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String proposedSolution; + + /** + * Optional. Description of the issue found. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the issue found. + * @param description description or {@code null} for none + */ + public QualityReportIssue setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. How many times this issue occurred. + * @return value or {@code null} for none + */ + public java.lang.Integer getOccurrenceCount() { + return occurrenceCount; + } + + /** + * Optional. How many times this issue occurred. + * @param occurrenceCount occurrenceCount or {@code null} for none + */ + public QualityReportIssue setOccurrenceCount(java.lang.Integer occurrenceCount) { + this.occurrenceCount = occurrenceCount; + return this; + } + + /** + * Optional. Proposed solution to fix the issue by modifying instructions or tools. + * @return value or {@code null} for none + */ + public java.lang.String getProposedSolution() { + return proposedSolution; + } + + /** + * Optional. Proposed solution to fix the issue by modifying instructions or tools. + * @param proposedSolution proposedSolution or {@code null} for none + */ + public QualityReportIssue setProposedSolution(java.lang.String proposedSolution) { + this.proposedSolution = proposedSolution; + return this; + } + + @Override + public QualityReportIssue set(String fieldName, Object value) { + return (QualityReportIssue) super.set(fieldName, value); + } + + @Override + public QualityReportIssue clone() { + return (QualityReportIssue) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java index e929c274bb5..325ee071723 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java @@ -38,6 +38,15 @@ public final class SessionConfig extends com.google.api.client.json.GenericJson @com.google.api.client.util.Key private java.lang.String deployment; + /** + * Optional. Whether to enable streaming text outputs from the model. By default, text outputs + * from the model are collected before sending to the client. NOTE: This is only supported for + * text (non-voice) sessions via StreamRunSession or BidiRunSession. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableTextStreaming; + /** * Optional. The entry agent to handle the session. If not specified, the session will be handled * by the root agent of the app. Format: @@ -124,6 +133,27 @@ public SessionConfig setDeployment(java.lang.String deployment) { return this; } + /** + * Optional. Whether to enable streaming text outputs from the model. By default, text outputs + * from the model are collected before sending to the client. NOTE: This is only supported for + * text (non-voice) sessions via StreamRunSession or BidiRunSession. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableTextStreaming() { + return enableTextStreaming; + } + + /** + * Optional. Whether to enable streaming text outputs from the model. By default, text outputs + * from the model are collected before sending to the client. NOTE: This is only supported for + * text (non-voice) sessions via StreamRunSession or BidiRunSession. + * @param enableTextStreaming enableTextStreaming or {@code null} for none + */ + public SessionConfig setEnableTextStreaming(java.lang.Boolean enableTextStreaming) { + this.enableTextStreaming = enableTextStreaming; + return this; + } + /** * Optional. The entry agent to handle the session. If not specified, the session will be handled * by the root agent of the app. Format: diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetToolDataMapping.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetToolDataMapping.java index bff1ff6e7b9..acd5b09776c 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetToolDataMapping.java +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetToolDataMapping.java @@ -46,8 +46,15 @@ public final class WidgetToolDataMapping extends com.google.api.client.json.Gene private java.lang.String mode; /** - * Optional. A Python script used to transform the source tool's output into the widget's input - * format. This is used when the mapping is too complex for simple field mappings. + * Optional. Configuration for a Python function used to transform the source tool's output into + * the widget's input format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PythonFunction pythonFunction; + + /** + * Deprecated: Use `python_function` instead. * The value may be {@code null}. */ @com.google.api.client.util.Key @@ -99,8 +106,26 @@ public WidgetToolDataMapping setMode(java.lang.String mode) { } /** - * Optional. A Python script used to transform the source tool's output into the widget's input - * format. This is used when the mapping is too complex for simple field mappings. + * Optional. Configuration for a Python function used to transform the source tool's output into + * the widget's input format. + * @return value or {@code null} for none + */ + public PythonFunction getPythonFunction() { + return pythonFunction; + } + + /** + * Optional. Configuration for a Python function used to transform the source tool's output into + * the widget's input format. + * @param pythonFunction pythonFunction or {@code null} for none + */ + public WidgetToolDataMapping setPythonFunction(PythonFunction pythonFunction) { + this.pythonFunction = pythonFunction; + return this; + } + + /** + * Deprecated: Use `python_function` instead. * @return value or {@code null} for none */ public java.lang.String getPythonScript() { @@ -108,8 +133,7 @@ public java.lang.String getPythonScript() { } /** - * Optional. A Python script used to transform the source tool's output into the widget's input - * format. This is used when the mapping is too complex for simple field mappings. + * Deprecated: Use `python_function` instead. * @param pythonScript pythonScript or {@code null} for none */ public WidgetToolDataMapping setPythonScript(java.lang.String pythonScript) { diff --git a/clients/google-api-services-ces/v1beta/2.0.0/pom.xml b/clients/google-api-services-ces/v1beta/2.0.0/pom.xml index 13f7a0271ff..50cc84ec305 100644 --- a/clients/google-api-services-ces/v1beta/2.0.0/pom.xml +++ b/clients/google-api-services-ces/v1beta/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-ces - v1beta-rev20260312-2.0.0 - Gemini Enterprise for Customer Experience API v1beta-rev20260312-2.0.0 + v1beta-rev20260318-2.0.0 + Gemini Enterprise for Customer Experience API v1beta-rev20260318-2.0.0 jar 2011 diff --git a/clients/google-api-services-ces/v1beta/README.md b/clients/google-api-services-ces/v1beta/README.md index 89dc4132ffd..8308c8eea0f 100644 --- a/clients/google-api-services-ces/v1beta/README.md +++ b/clients/google-api-services-ces/v1beta/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-ces - v1beta-rev20260312-2.0.0 + v1beta-rev20260318-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260312-2.0.0' + implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260318-2.0.0' } ```