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-ces/v1/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-ces</artifactId>
<version>v1-rev20260312-2.0.0</version>
<version>v1-rev20260318-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<com.google.api.services.ces.v1.model.RunSessionResponse> {

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.
* <p> {@link StreamRunSession#initialize(com.google.api.client.googleapis.services.AbstractGoogle
* ClientRequest)} must be called to initialize this instance immediately after invoking the
* constructor. </p>
*
* @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);
}
}

}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -45,24 +45,25 @@ 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() {
return dataset;
}

/**
* 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) {
Expand All @@ -88,19 +89,21 @@ 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() {
return project;
}

/**
* 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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -99,17 +106,34 @@ 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() {
return pythonScript;
}

/**
* 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) {
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-ces/v1/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-ces</artifactId>
<version>v1-rev20260312-2.0.0</version>
<name>Gemini Enterprise for Customer Experience API v1-rev20260312-2.0.0</name>
<version>v1-rev20260318-2.0.0</version>
<name>Gemini Enterprise for Customer Experience API v1-rev20260318-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-ces/v1/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-ces</artifactId>
<version>v1-rev20260312-2.0.0</version>
<version>v1-rev20260318-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
4 changes: 2 additions & 2 deletions clients/google-api-services-ces/v1beta/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-ces</artifactId>
<version>v1beta-rev20260312-2.0.0</version>
<version>v1beta-rev20260318-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Loading