{@link + * Stream#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param tenant Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + * @param content the {@link com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest} + * @since 1.13 + */ + protected Stream(java.lang.String tenant, com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.LfA2aV1StreamResponse.class); + this.tenant = com.google.api.client.util.Preconditions.checkNotNull(tenant, "Required parameter tenant must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TENANT_PATTERN.matcher(tenant).matches(), + "Parameter tenant must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @Override + public Stream set$Xgafv(java.lang.String $Xgafv) { + return (Stream) super.set$Xgafv($Xgafv); + } + + @Override + public Stream setAccessToken(java.lang.String accessToken) { + return (Stream) super.setAccessToken(accessToken); + } + + @Override + public Stream setAlt(java.lang.String alt) { + return (Stream) super.setAlt(alt); + } + + @Override + public Stream setCallback(java.lang.String callback) { + return (Stream) super.setCallback(callback); + } + + @Override + public Stream setFields(java.lang.String fields) { + return (Stream) super.setFields(fields); + } + + @Override + public Stream setKey(java.lang.String key) { + return (Stream) super.setKey(key); + } + + @Override + public Stream setOauthToken(java.lang.String oauthToken) { + return (Stream) super.setOauthToken(oauthToken); + } + + @Override + public Stream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stream) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stream setQuotaUser(java.lang.String quotaUser) { + return (Stream) super.setQuotaUser(quotaUser); + } + + @Override + public Stream setUploadType(java.lang.String uploadType) { + return (Stream) super.setUploadType(uploadType); + } + + @Override + public Stream setUploadProtocol(java.lang.String uploadProtocol) { + return (Stream) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. Opaque routing identifier. Must match the `tenant` value from the + * selected `AgentInterface` in the Agent Card when that field is set. + */ + @com.google.api.client.util.Key + private java.lang.String tenant; + + /** Optional. Opaque routing identifier. Must match the `tenant` value from the selected + `AgentInterface` in the Agent Card when that field is set. + */ + public java.lang.String getTenant() { + return tenant; + } + + /** + * Optional. Opaque routing identifier. Must match the `tenant` value from the + * selected `AgentInterface` in the Agent Card when that field is set. + */ + public Stream setTenant(java.lang.String tenant) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TENANT_PATTERN.matcher(tenant).matches(), + "Parameter tenant must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.tenant = tenant; + return this; + } + + @Override + public Stream set(String parameterName, Object value) { + return (Stream) super.set(parameterName, value); + } + } } } @@ -7231,6 +7356,147 @@ public Send set(String parameterName, Object value) { return (Send) super.set(parameterName, value); } } + /** + * Sends a streaming message to an agent, allowing for real-time interaction and status updates. + * Streaming version of `SendMessage` + * + * Create a request for the method "message.stream". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Stream#execute()} method to invoke the remote operation. + * + * @param tenant Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + * @param content the {@link com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest} + * @return the request + */ + public Stream stream(java.lang.String tenant, com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest content) throws java.io.IOException { + Stream result = new Stream(tenant, content); + initialize(result); + return result; + } + + public class Stream extends CustomerEngagementSuiteRequest{@link + * Stream#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param tenant Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + * @param content the {@link com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest} + * @since 1.13 + */ + protected Stream(java.lang.String tenant, com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.LfA2aV1StreamResponse.class); + this.tenant = com.google.api.client.util.Preconditions.checkNotNull(tenant, "Required parameter tenant must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TENANT_PATTERN.matcher(tenant).matches(), + "Parameter tenant must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public Stream set$Xgafv(java.lang.String $Xgafv) { + return (Stream) super.set$Xgafv($Xgafv); + } + + @Override + public Stream setAccessToken(java.lang.String accessToken) { + return (Stream) super.setAccessToken(accessToken); + } + + @Override + public Stream setAlt(java.lang.String alt) { + return (Stream) super.setAlt(alt); + } + + @Override + public Stream setCallback(java.lang.String callback) { + return (Stream) super.setCallback(callback); + } + + @Override + public Stream setFields(java.lang.String fields) { + return (Stream) super.setFields(fields); + } + + @Override + public Stream setKey(java.lang.String key) { + return (Stream) super.setKey(key); + } + + @Override + public Stream setOauthToken(java.lang.String oauthToken) { + return (Stream) super.setOauthToken(oauthToken); + } + + @Override + public Stream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stream) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stream setQuotaUser(java.lang.String quotaUser) { + return (Stream) super.setQuotaUser(quotaUser); + } + + @Override + public Stream setUploadType(java.lang.String uploadType) { + return (Stream) super.setUploadType(uploadType); + } + + @Override + public Stream setUploadProtocol(java.lang.String uploadProtocol) { + return (Stream) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + */ + @com.google.api.client.util.Key + private java.lang.String tenant; + + /** Optional. Opaque routing identifier. Must match the `tenant` value from the selected + `AgentInterface` in the Agent Card when that field is set. + */ + public java.lang.String getTenant() { + return tenant; + } + + /** + * Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + */ + public Stream setTenant(java.lang.String tenant) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TENANT_PATTERN.matcher(tenant).matches(), + "Parameter tenant must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.tenant = tenant; + return this; + } + + @Override + public Stream set(String parameterName, Object value) { + return (Stream) super.set(parameterName, value); + } + } } /** @@ -10766,6 +11032,147 @@ public Send set(String parameterName, Object value) { return (Send) super.set(parameterName, value); } } + /** + * Sends a streaming message to an agent, allowing for real-time interaction and status updates. + * Streaming version of `SendMessage` + * + * Create a request for the method "message.stream". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Stream#execute()} method to invoke the remote operation. + * + * @param tenant Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + * @param content the {@link com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest} + * @return the request + */ + public Stream stream(java.lang.String tenant, com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest content) throws java.io.IOException { + Stream result = new Stream(tenant, content); + initialize(result); + return result; + } + + public class Stream extends CustomerEngagementSuiteRequest{@link + * Stream#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param tenant Optional. Opaque routing identifier. Must match the `tenant` value from the selected + * `AgentInterface` in the Agent Card when that field is set. + * @param content the {@link com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest} + * @since 1.13 + */ + protected Stream(java.lang.String tenant, com.google.api.services.ces.v1.model.LfA2aV1SendMessageRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.LfA2aV1StreamResponse.class); + this.tenant = com.google.api.client.util.Preconditions.checkNotNull(tenant, "Required parameter tenant must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TENANT_PATTERN.matcher(tenant).matches(), + "Parameter tenant must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @Override + public Stream set$Xgafv(java.lang.String $Xgafv) { + return (Stream) super.set$Xgafv($Xgafv); + } + + @Override + public Stream setAccessToken(java.lang.String accessToken) { + return (Stream) super.setAccessToken(accessToken); + } + + @Override + public Stream setAlt(java.lang.String alt) { + return (Stream) super.setAlt(alt); + } + + @Override + public Stream setCallback(java.lang.String callback) { + return (Stream) super.setCallback(callback); + } + + @Override + public Stream setFields(java.lang.String fields) { + return (Stream) super.setFields(fields); + } + + @Override + public Stream setKey(java.lang.String key) { + return (Stream) super.setKey(key); + } + + @Override + public Stream setOauthToken(java.lang.String oauthToken) { + return (Stream) super.setOauthToken(oauthToken); + } + + @Override + public Stream setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Stream) super.setPrettyPrint(prettyPrint); + } + + @Override + public Stream setQuotaUser(java.lang.String quotaUser) { + return (Stream) super.setQuotaUser(quotaUser); + } + + @Override + public Stream setUploadType(java.lang.String uploadType) { + return (Stream) super.setUploadType(uploadType); + } + + @Override + public Stream setUploadProtocol(java.lang.String uploadProtocol) { + return (Stream) super.setUploadProtocol(uploadProtocol); + } + + /** + * Optional. Opaque routing identifier. Must match the `tenant` value from the + * selected `AgentInterface` in the Agent Card when that field is set. + */ + @com.google.api.client.util.Key + private java.lang.String tenant; + + /** Optional. Opaque routing identifier. Must match the `tenant` value from the selected + `AgentInterface` in the Agent Card when that field is set. + */ + public java.lang.String getTenant() { + return tenant; + } + + /** + * Optional. Opaque routing identifier. Must match the `tenant` value from the + * selected `AgentInterface` in the Agent Card when that field is set. + */ + public Stream setTenant(java.lang.String tenant) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TENANT_PATTERN.matcher(tenant).matches(), + "Parameter tenant must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.tenant = tenant; + return this; + } + + @Override + public Stream set(String parameterName, Object value) { + return (Stream) super.set(parameterName, value); + } + } } } diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java index 4de09345dae..bd5dcc40578 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java @@ -53,6 +53,14 @@ public final class App extends com.google.api.client.json.GenericJson { @com.google.api.client.util.Key private String createTime; + /** + * Optional. App-specific dashboard settings for linking and configuring Contact Center Insights + * dashboards. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DashboardSettings dashboardSettings; + /** * Optional. The data store settings for the app. * The value may be {@code null}. @@ -287,6 +295,25 @@ public App setCreateTime(String createTime) { return this; } + /** + * Optional. App-specific dashboard settings for linking and configuring Contact Center Insights + * dashboards. + * @return value or {@code null} for none + */ + public DashboardSettings getDashboardSettings() { + return dashboardSettings; + } + + /** + * Optional. App-specific dashboard settings for linking and configuring Contact Center Insights + * dashboards. + * @param dashboardSettings dashboardSettings or {@code null} for none + */ + public App setDashboardSettings(DashboardSettings dashboardSettings) { + this.dashboardSettings = dashboardSettings; + return this; + } + /** * Optional. The data store settings for the app. * @return value or {@code null} for none diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java index da0eb46f2e6..9f320519efe 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java @@ -38,14 +38,6 @@ public final class ConversationTurn extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private java.util.ListThis 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 DashboardSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The resource name of the default Contact Center Insights dashboard associated with + * the app. This is the dashboard that will be displayed when users navigate to the Monitoring + * view for the app. Format: `projects/{project}/locations/{location}/dashboards/{dashboard}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultDashboard; + + /** + * Optional. The resource name of the default Contact Center Insights dashboard associated with + * the app. This is the dashboard that will be displayed when users navigate to the Monitoring + * view for the app. Format: `projects/{project}/locations/{location}/dashboards/{dashboard}` + * @return value or {@code null} for none + */ + public java.lang.String getDefaultDashboard() { + return defaultDashboard; + } + + /** + * Optional. The resource name of the default Contact Center Insights dashboard associated with + * the app. This is the dashboard that will be displayed when users navigate to the Monitoring + * view for the app. Format: `projects/{project}/locations/{location}/dashboards/{dashboard}` + * @param defaultDashboard defaultDashboard or {@code null} for none + */ + public DashboardSettings setDefaultDashboard(java.lang.String defaultDashboard) { + this.defaultDashboard = defaultDashboard; + return this; + } + + @Override + public DashboardSettings set(String fieldName, Object value) { + return (DashboardSettings) super.set(fieldName, value); + } + + @Override + public DashboardSettings clone() { + return (DashboardSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSnippetsConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSnippetsConfig.java index a44fabe7080..b4f3e097347 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSnippetsConfig.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSnippetsConfig.java @@ -37,6 +37,14 @@ public final class DataStoreToolSnippetsConfig extends com.google.api.client.jso @com.google.api.client.util.Key private java.lang.Boolean enableSnippets; + /** + * Optional. Number of snippets to return per query. If unset, returns all snippets from the + * service by default. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxSnippets; + /** * Optional. Whether snippets are enabled. * @return value or {@code null} for none @@ -54,6 +62,25 @@ public DataStoreToolSnippetsConfig setEnableSnippets(java.lang.Boolean enableSni return this; } + /** + * Optional. Number of snippets to return per query. If unset, returns all snippets from the + * service by default. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxSnippets() { + return maxSnippets; + } + + /** + * Optional. Number of snippets to return per query. If unset, returns all snippets from the + * service by default. + * @param maxSnippets maxSnippets or {@code null} for none + */ + public DataStoreToolSnippetsConfig setMaxSnippets(java.lang.Integer maxSnippets) { + this.maxSnippets = maxSnippets; + return this; + } + @Override public DataStoreToolSnippetsConfig set(String fieldName, Object value) { return (DataStoreToolSnippetsConfig) super.set(fieldName, value); diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DeployChannelResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DeployChannelResponse.java new file mode 100644 index 00000000000..f1ace94ff7b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DeployChannelResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.DeployChannel. + * + *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 DeployChannelResponse extends com.google.api.client.json.GenericJson { + + /** + * The created deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Deployment deployment; + + /** + * The created deployment. + * @return value or {@code null} for none + */ + public Deployment getDeployment() { + return deployment; + } + + /** + * The created deployment. + * @param deployment deployment or {@code null} for none + */ + public DeployChannelResponse setDeployment(Deployment deployment) { + this.deployment = deployment; + return this; + } + + @Override + public DeployChannelResponse set(String fieldName, Object value) { + return (DeployChannelResponse) super.set(fieldName, value); + } + + @Override + public DeployChannelResponse clone() { + return (DeployChannelResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java index 437689e39e2..fd5aa01eac6 100644 --- a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java @@ -81,6 +81,20 @@ public final class ImportAppRequest extends com.google.api.client.json.GenericJs @com.google.api.client.util.Key private ImportAppRequestImportOptions importOptions; + /** + * Optional. Patch content as a JSON string. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String jsonPatchContent; + + /** + * Optional. A Cloud Storage URI pointing to a JSON file containing the patches. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String jsonPatchGcsUri; + /** * Raw bytes representing the compressed zip file with the app folder structure. * @see #decodeAppContent() @@ -229,6 +243,40 @@ public ImportAppRequest setImportOptions(ImportAppRequestImportOptions importOpt return this; } + /** + * Optional. Patch content as a JSON string. + * @return value or {@code null} for none + */ + public java.lang.String getJsonPatchContent() { + return jsonPatchContent; + } + + /** + * Optional. Patch content as a JSON string. + * @param jsonPatchContent jsonPatchContent or {@code null} for none + */ + public ImportAppRequest setJsonPatchContent(java.lang.String jsonPatchContent) { + this.jsonPatchContent = jsonPatchContent; + return this; + } + + /** + * Optional. A Cloud Storage URI pointing to a JSON file containing the patches. + * @return value or {@code null} for none + */ + public java.lang.String getJsonPatchGcsUri() { + return jsonPatchGcsUri; + } + + /** + * Optional. A Cloud Storage URI pointing to a JSON file containing the patches. + * @param jsonPatchGcsUri jsonPatchGcsUri or {@code null} for none + */ + public ImportAppRequest setJsonPatchGcsUri(java.lang.String jsonPatchGcsUri) { + this.jsonPatchGcsUri = jsonPatchGcsUri; + return this; + } + @Override public ImportAppRequest set(String fieldName, Object value) { return (ImportAppRequest) super.set(fieldName, value); diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LfA2aV1StreamResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LfA2aV1StreamResponse.java new file mode 100644 index 00000000000..c6909c8d82b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LfA2aV1StreamResponse.java @@ -0,0 +1,139 @@ +/* + * 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.v1.model; + +/** + * A wrapper object used in streaming operations to encapsulate different types of response data. + * + *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 LfA2aV1StreamResponse extends com.google.api.client.json.GenericJson { + + /** + * An event indicating a task artifact update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LfA2aV1TaskArtifactUpdateEvent artifactUpdate; + + /** + * A Message object containing a message from the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LfA2aV1Message message; + + /** + * An event indicating a task status update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LfA2aV1TaskStatusUpdateEvent statusUpdate; + + /** + * A Task object containing the current state of the task. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LfA2aV1Task task; + + /** + * An event indicating a task artifact update. + * @return value or {@code null} for none + */ + public LfA2aV1TaskArtifactUpdateEvent getArtifactUpdate() { + return artifactUpdate; + } + + /** + * An event indicating a task artifact update. + * @param artifactUpdate artifactUpdate or {@code null} for none + */ + public LfA2aV1StreamResponse setArtifactUpdate(LfA2aV1TaskArtifactUpdateEvent artifactUpdate) { + this.artifactUpdate = artifactUpdate; + return this; + } + + /** + * A Message object containing a message from the agent. + * @return value or {@code null} for none + */ + public LfA2aV1Message getMessage() { + return message; + } + + /** + * A Message object containing a message from the agent. + * @param message message or {@code null} for none + */ + public LfA2aV1StreamResponse setMessage(LfA2aV1Message message) { + this.message = message; + return this; + } + + /** + * An event indicating a task status update. + * @return value or {@code null} for none + */ + public LfA2aV1TaskStatusUpdateEvent getStatusUpdate() { + return statusUpdate; + } + + /** + * An event indicating a task status update. + * @param statusUpdate statusUpdate or {@code null} for none + */ + public LfA2aV1StreamResponse setStatusUpdate(LfA2aV1TaskStatusUpdateEvent statusUpdate) { + this.statusUpdate = statusUpdate; + return this; + } + + /** + * A Task object containing the current state of the task. + * @return value or {@code null} for none + */ + public LfA2aV1Task getTask() { + return task; + } + + /** + * A Task object containing the current state of the task. + * @param task task or {@code null} for none + */ + public LfA2aV1StreamResponse setTask(LfA2aV1Task task) { + this.task = task; + return this; + } + + @Override + public LfA2aV1StreamResponse set(String fieldName, Object value) { + return (LfA2aV1StreamResponse) super.set(fieldName, value); + } + + @Override + public LfA2aV1StreamResponse clone() { + return (LfA2aV1StreamResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LfA2aV1TaskArtifactUpdateEvent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LfA2aV1TaskArtifactUpdateEvent.java new file mode 100644 index 00000000000..c15a4dd068b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LfA2aV1TaskArtifactUpdateEvent.java @@ -0,0 +1,190 @@ +/* + * 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.v1.model; + +/** + * A task delta where an artifact has been generated. + * + *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 LfA2aV1TaskArtifactUpdateEvent extends com.google.api.client.json.GenericJson { + + /** + * If true, the content of this artifact should be appended to a previously sent artifact with the + * same ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean append; + + /** + * Required. The artifact that was generated or updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LfA2aV1Artifact artifact; + + /** + * Required. The ID of the context that this task belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contextId; + + /** + * If true, this is the final chunk of the artifact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean lastChunk; + + /** + * Optional. Metadata associated with the artifact update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.MapThis 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 LfA2aV1TaskStatusUpdateEvent extends com.google.api.client.json.GenericJson { + + /** + * Required. The ID of the context that the task belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String contextId; + + /** + * Optional. Metadata associated with the task update. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map