Skip to content

Commit dbce29b

Browse files
1 parent 2bf93f0 commit dbce29b

File tree

18 files changed

+809
-48
lines changed

18 files changed

+809
-48
lines changed

clients/google-api-services-ces/v1/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-ces</artifactId>
25-
<version>v1-rev20260312-2.0.0</version>
25+
<version>v1-rev20260318-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-ces:v1-rev20260312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-ces:v1-rev20260318-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java

Lines changed: 148 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6888,6 +6888,154 @@ public RunSession set(String parameterName, Object value) {
68886888
return (RunSession) super.set(parameterName, value);
68896889
}
68906890
}
6891+
/**
6892+
* Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver
6893+
* incremental results and partial responses as they are generated. By default, complete responses
6894+
* (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they are
6895+
* available. To enable streaming individual text chunks directly from the model, set
6896+
* enable_text_streaming to true.
6897+
*
6898+
* Create a request for the method "sessions.streamRunSession".
6899+
*
6900+
* This request holds the parameters needed by the ces server. After setting any optional
6901+
* parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation.
6902+
*
6903+
* @param session Required. The unique identifier of the session. Format:
6904+
* `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
6905+
* @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest}
6906+
* @return the request
6907+
*/
6908+
public StreamRunSession streamRunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) throws java.io.IOException {
6909+
StreamRunSession result = new StreamRunSession(session, content);
6910+
initialize(result);
6911+
return result;
6912+
}
6913+
6914+
public class StreamRunSession extends CustomerEngagementSuiteRequest<com.google.api.services.ces.v1.model.RunSessionResponse> {
6915+
6916+
private static final String REST_PATH = "v1/{+session}:streamRunSession";
6917+
6918+
private final java.util.regex.Pattern SESSION_PATTERN =
6919+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$");
6920+
6921+
/**
6922+
* Initiates a single-turn interaction with the CES agent. Uses server-side streaming to deliver
6923+
* incremental results and partial responses as they are generated. By default, complete responses
6924+
* (e.g., messages from callbacks or full LLM responses) are sent to the client as soon as they
6925+
* are available. To enable streaming individual text chunks directly from the model, set
6926+
* enable_text_streaming to true.
6927+
*
6928+
* Create a request for the method "sessions.streamRunSession".
6929+
*
6930+
* This request holds the parameters needed by the the ces server. After setting any optional
6931+
* parameters, call the {@link StreamRunSession#execute()} method to invoke the remote operation.
6932+
* <p> {@link StreamRunSession#initialize(com.google.api.client.googleapis.services.AbstractGoogle
6933+
* ClientRequest)} must be called to initialize this instance immediately after invoking the
6934+
* constructor. </p>
6935+
*
6936+
* @param session Required. The unique identifier of the session. Format:
6937+
* `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
6938+
* @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest}
6939+
* @since 1.13
6940+
*/
6941+
protected StreamRunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) {
6942+
super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RunSessionResponse.class);
6943+
this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified.");
6944+
if (!getSuppressPatternChecks()) {
6945+
com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(),
6946+
"Parameter session must conform to the pattern " +
6947+
"^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$");
6948+
}
6949+
}
6950+
6951+
@Override
6952+
public StreamRunSession set$Xgafv(java.lang.String $Xgafv) {
6953+
return (StreamRunSession) super.set$Xgafv($Xgafv);
6954+
}
6955+
6956+
@Override
6957+
public StreamRunSession setAccessToken(java.lang.String accessToken) {
6958+
return (StreamRunSession) super.setAccessToken(accessToken);
6959+
}
6960+
6961+
@Override
6962+
public StreamRunSession setAlt(java.lang.String alt) {
6963+
return (StreamRunSession) super.setAlt(alt);
6964+
}
6965+
6966+
@Override
6967+
public StreamRunSession setCallback(java.lang.String callback) {
6968+
return (StreamRunSession) super.setCallback(callback);
6969+
}
6970+
6971+
@Override
6972+
public StreamRunSession setFields(java.lang.String fields) {
6973+
return (StreamRunSession) super.setFields(fields);
6974+
}
6975+
6976+
@Override
6977+
public StreamRunSession setKey(java.lang.String key) {
6978+
return (StreamRunSession) super.setKey(key);
6979+
}
6980+
6981+
@Override
6982+
public StreamRunSession setOauthToken(java.lang.String oauthToken) {
6983+
return (StreamRunSession) super.setOauthToken(oauthToken);
6984+
}
6985+
6986+
@Override
6987+
public StreamRunSession setPrettyPrint(java.lang.Boolean prettyPrint) {
6988+
return (StreamRunSession) super.setPrettyPrint(prettyPrint);
6989+
}
6990+
6991+
@Override
6992+
public StreamRunSession setQuotaUser(java.lang.String quotaUser) {
6993+
return (StreamRunSession) super.setQuotaUser(quotaUser);
6994+
}
6995+
6996+
@Override
6997+
public StreamRunSession setUploadType(java.lang.String uploadType) {
6998+
return (StreamRunSession) super.setUploadType(uploadType);
6999+
}
7000+
7001+
@Override
7002+
public StreamRunSession setUploadProtocol(java.lang.String uploadProtocol) {
7003+
return (StreamRunSession) super.setUploadProtocol(uploadProtocol);
7004+
}
7005+
7006+
/**
7007+
* Required. The unique identifier of the session. Format:
7008+
* `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
7009+
*/
7010+
@com.google.api.client.util.Key
7011+
private java.lang.String session;
7012+
7013+
/** Required. The unique identifier of the session. Format:
7014+
`projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
7015+
*/
7016+
public java.lang.String getSession() {
7017+
return session;
7018+
}
7019+
7020+
/**
7021+
* Required. The unique identifier of the session. Format:
7022+
* `projects/{project}/locations/{location}/apps/{app}/sessions/{session}`
7023+
*/
7024+
public StreamRunSession setSession(java.lang.String session) {
7025+
if (!getSuppressPatternChecks()) {
7026+
com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(),
7027+
"Parameter session must conform to the pattern " +
7028+
"^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$");
7029+
}
7030+
this.session = session;
7031+
return this;
7032+
}
7033+
7034+
@Override
7035+
public StreamRunSession set(String parameterName, Object value) {
7036+
return (StreamRunSession) super.set(parameterName, value);
7037+
}
7038+
}
68917039

68927040
}
68937041
/**

clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson {
3232

3333
/**
34-
* Optional. The BigQuery dataset to export the data to.
34+
* Optional. The BigQuery **dataset ID** to export the data to.
3535
* The value may be {@code null}.
3636
*/
3737
@com.google.api.client.util.Key
@@ -45,24 +45,25 @@ public final class BigQueryExportSettings extends com.google.api.client.json.Gen
4545
private java.lang.Boolean enabled;
4646

4747
/**
48-
* Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery
49-
* dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to
50-
* the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
48+
* Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the
49+
* BigQuery dataset is in a different project from the app, you should grant
50+
* `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa-
51+
* ces.iam.gserviceaccount.com`.
5152
* The value may be {@code null}.
5253
*/
5354
@com.google.api.client.util.Key
5455
private java.lang.String project;
5556

5657
/**
57-
* Optional. The BigQuery dataset to export the data to.
58+
* Optional. The BigQuery **dataset ID** to export the data to.
5859
* @return value or {@code null} for none
5960
*/
6061
public java.lang.String getDataset() {
6162
return dataset;
6263
}
6364

6465
/**
65-
* Optional. The BigQuery dataset to export the data to.
66+
* Optional. The BigQuery **dataset ID** to export the data to.
6667
* @param dataset dataset or {@code null} for none
6768
*/
6869
public BigQueryExportSettings setDataset(java.lang.String dataset) {
@@ -88,19 +89,21 @@ public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) {
8889
}
8990

9091
/**
91-
* Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery
92-
* dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to
93-
* the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
92+
* Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the
93+
* BigQuery dataset is in a different project from the app, you should grant
94+
* `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa-
95+
* ces.iam.gserviceaccount.com`.
9496
* @return value or {@code null} for none
9597
*/
9698
public java.lang.String getProject() {
9799
return project;
98100
}
99101

100102
/**
101-
* Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery
102-
* dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to
103-
* the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`.
103+
* Optional. The **project ID** of the BigQuery dataset to export the data to. Note: If the
104+
* BigQuery dataset is in a different project from the app, you should grant
105+
* `roles/bigquery.admin` role to the CES service agent `service-@gcp-sa-
106+
* ces.iam.gserviceaccount.com`.
104107
* @param project project or {@code null} for none
105108
*/
106109
public BigQueryExportSettings setProject(java.lang.String project) {

clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ public final class SessionConfig extends com.google.api.client.json.GenericJson
3838
@com.google.api.client.util.Key
3939
private java.lang.String deployment;
4040

41+
/**
42+
* Optional. Whether to enable streaming text outputs from the model. By default, text outputs
43+
* from the model are collected before sending to the client. NOTE: This is only supported for
44+
* text (non-voice) sessions via StreamRunSession or BidiRunSession.
45+
* The value may be {@code null}.
46+
*/
47+
@com.google.api.client.util.Key
48+
private java.lang.Boolean enableTextStreaming;
49+
4150
/**
4251
* Optional. The entry agent to handle the session. If not specified, the session will be handled
4352
* by the root agent of the app. Format:
@@ -124,6 +133,27 @@ public SessionConfig setDeployment(java.lang.String deployment) {
124133
return this;
125134
}
126135

136+
/**
137+
* Optional. Whether to enable streaming text outputs from the model. By default, text outputs
138+
* from the model are collected before sending to the client. NOTE: This is only supported for
139+
* text (non-voice) sessions via StreamRunSession or BidiRunSession.
140+
* @return value or {@code null} for none
141+
*/
142+
public java.lang.Boolean getEnableTextStreaming() {
143+
return enableTextStreaming;
144+
}
145+
146+
/**
147+
* Optional. Whether to enable streaming text outputs from the model. By default, text outputs
148+
* from the model are collected before sending to the client. NOTE: This is only supported for
149+
* text (non-voice) sessions via StreamRunSession or BidiRunSession.
150+
* @param enableTextStreaming enableTextStreaming or {@code null} for none
151+
*/
152+
public SessionConfig setEnableTextStreaming(java.lang.Boolean enableTextStreaming) {
153+
this.enableTextStreaming = enableTextStreaming;
154+
return this;
155+
}
156+
127157
/**
128158
* Optional. The entry agent to handle the session. If not specified, the session will be handled
129159
* by the root agent of the app. Format:

clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetToolDataMapping.java

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,15 @@ public final class WidgetToolDataMapping extends com.google.api.client.json.Gene
4646
private java.lang.String mode;
4747

4848
/**
49-
* Optional. A Python script used to transform the source tool's output into the widget's input
50-
* format. This is used when the mapping is too complex for simple field mappings.
49+
* Optional. Configuration for a Python function used to transform the source tool's output into
50+
* the widget's input format.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private PythonFunction pythonFunction;
55+
56+
/**
57+
* Deprecated: Use `python_function` instead.
5158
* The value may be {@code null}.
5259
*/
5360
@com.google.api.client.util.Key
@@ -99,17 +106,34 @@ public WidgetToolDataMapping setMode(java.lang.String mode) {
99106
}
100107

101108
/**
102-
* Optional. A Python script used to transform the source tool's output into the widget's input
103-
* format. This is used when the mapping is too complex for simple field mappings.
109+
* Optional. Configuration for a Python function used to transform the source tool's output into
110+
* the widget's input format.
111+
* @return value or {@code null} for none
112+
*/
113+
public PythonFunction getPythonFunction() {
114+
return pythonFunction;
115+
}
116+
117+
/**
118+
* Optional. Configuration for a Python function used to transform the source tool's output into
119+
* the widget's input format.
120+
* @param pythonFunction pythonFunction or {@code null} for none
121+
*/
122+
public WidgetToolDataMapping setPythonFunction(PythonFunction pythonFunction) {
123+
this.pythonFunction = pythonFunction;
124+
return this;
125+
}
126+
127+
/**
128+
* Deprecated: Use `python_function` instead.
104129
* @return value or {@code null} for none
105130
*/
106131
public java.lang.String getPythonScript() {
107132
return pythonScript;
108133
}
109134

110135
/**
111-
* Optional. A Python script used to transform the source tool's output into the widget's input
112-
* format. This is used when the mapping is too complex for simple field mappings.
136+
* Deprecated: Use `python_function` instead.
113137
* @param pythonScript pythonScript or {@code null} for none
114138
*/
115139
public WidgetToolDataMapping setPythonScript(java.lang.String pythonScript) {

clients/google-api-services-ces/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-ces</artifactId>
11-
<version>v1-rev20260312-2.0.0</version>
12-
<name>Gemini Enterprise for Customer Experience API v1-rev20260312-2.0.0</name>
11+
<version>v1-rev20260318-2.0.0</version>
12+
<name>Gemini Enterprise for Customer Experience API v1-rev20260318-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-ces/v1/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-ces</artifactId>
25-
<version>v1-rev20260312-2.0.0</version>
25+
<version>v1-rev20260318-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-ces:v1-rev20260312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-ces:v1-rev20260318-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-ces/v1beta/2.0.0/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-ces</artifactId>
25-
<version>v1beta-rev20260312-2.0.0</version>
25+
<version>v1beta-rev20260318-2.0.0</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260318-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)