From ace6851406794d5682df829371440f2898c8ac23 Mon Sep 17 00:00:00 2001
From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com>
Date: Wed, 29 Jul 2026 18:11:41 -0700
Subject: [PATCH] chore: regenerate contactcenterinsights client
---
.../v1/2.0.0/README.md | 4 +-
.../v1/Contactcenterinsights.java | 691 ++++++++++++++++++
...ContactcenterinsightsV1AssistantChunk.java | 67 ++
...ntactcenterinsightsV1AssistantMessage.java | 121 +++
...ntactcenterinsightsV1AssistantSession.java | 220 ++++++
...sightsV1ListAssistantSessionsResponse.java | 97 +++
...tactcenterinsightsV1StreamChatRequest.java | 67 ++
...actcenterinsightsV1StreamChatResponse.java | 139 ++++
.../v1/2.0.0/pom.xml | 4 +-
.../v1/README.md | 4 +-
10 files changed, 1408 insertions(+), 6 deletions(-)
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantChunk.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantMessage.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantSession.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatRequest.java
create mode 100644 clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatResponse.java
diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md b/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md
index 7fb1d863fe5..320fba8e922 100644
--- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md
+++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/README.md
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
The typical use is:
+ *
+ * {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+ * {@code Contactcenterinsights.AssistantSessions.List request = contactcenterinsights.assistantSessions().list(parameters ...)}
+ *
+ *
+ * @return the resource collection
+ */
+ public AssistantSessions assistantSessions() {
+ return new AssistantSessions();
+ }
+
+ /**
+ * The "assistantSessions" collection of methods.
+ */
+ public class AssistantSessions {
+
+ /**
+ * Creates an assistant session.
+ *
+ * Create a request for the method "assistantSessions.create".
+ *
+ * This request holds the parameters needed by the contactcenterinsights server. After setting any
+ * optional parameters, call the {@link Create#execute()} method to invoke the remote operation.
+ *
+ * @param parent Required. The parent resource where this assistant session will be created. Format:
+ * projects/{project}/locations/{location}
+ * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AssistantSession}
+ * @return the request
+ */
+ public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AssistantSession content) throws java.io.IOException {
+ Create result = new Create(parent, content);
+ initialize(result);
+ return result;
+ }
+
+ public class Create extends ContactcenterinsightsRequest{@link + * Create#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource where this assistant session will be created. Format: + * projects/{project}/locations/{location} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AssistantSession} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AssistantSession content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AssistantSession.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this assistant session will be created. Format: + * projects/{project}/locations/{location} + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this assistant session will be created. Format: + projects/{project}/locations/{location} + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this assistant session will be created. Format: + * projects/{project}/locations/{location} + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the assistant session, which will become the final + * component of the assistant session's resource name. If not provided, a random UUID will + * be generated by the server. This value should be 4-64 characters and must match the + * regular expression `^[a-z0-9-]{4,64}$`. + */ + @com.google.api.client.util.Key + private java.lang.String assistantSessionId; + + /** Optional. The ID to use for the assistant session, which will become the final component of the + assistant session's resource name. If not provided, a random UUID will be generated by the server. + This value should be 4-64 characters and must match the regular expression `^[a-z0-9-]{4,64}$`. + */ + public java.lang.String getAssistantSessionId() { + return assistantSessionId; + } + + /** + * Optional. The ID to use for the assistant session, which will become the final + * component of the assistant session's resource name. If not provided, a random UUID will + * be generated by the server. This value should be 4-64 characters and must match the + * regular expression `^[a-z0-9-]{4,64}$`. + */ + public Create setAssistantSessionId(java.lang.String assistantSessionId) { + this.assistantSessionId = assistantSessionId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets an assistant session. + * + * Create a request for the method "assistantSessions.get". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends ContactcenterinsightsRequest{@link + * Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1AssistantSession.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/assistantSessions/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the assistant session to retrieve. Format: + `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + */ + public Get setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/assistantSessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists assistant sessions. + * + * Create a request for the method "assistantSessions.list". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource, which owns this collection of assistant sessions. Format: + * `projects/{project}/locations/{location}` + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends ContactcenterinsightsRequest{@link + * List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must be + * called to initialize this instance immediately after invoking the constructor.
+ * + * @param parent Required. The parent resource, which owns this collection of assistant sessions. Format: + * `projects/{project}/locations/{location}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource, which owns this collection of assistant sessions. + * Format: `projects/{project}/locations/{location}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource, which owns this collection of assistant sessions. Format: + `projects/{project}/locations/{location}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource, which owns this collection of assistant sessions. + * Format: `projects/{project}/locations/{location}` + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. A filter to reduce results to a specific subset. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter to reduce results to a specific subset. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. A filter to reduce results to a specific subset. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of assistant sessions to return in a single response. If + * unspecified, at most 100 assistant sessions will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of assistant sessions to return in a single response. If unspecified, + at most 100 assistant sessions will be returned. The maximum value is 1000; values above 1000 will + be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of assistant sessions to return in a single response. If + * unspecified, at most 100 assistant sessions will be returned. The maximum value is + * 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListAssistantSessions` call. Provide + * this to retrieve the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListAssistantSessions` call. Provide this to + retrieve the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListAssistantSessions` call. Provide + * this to retrieve the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Streams chat messages from the assistant. + * + * Create a request for the method "assistantSessions.streamChat". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link StreamChat#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the assistant session to stream chat. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1StreamChatRequest} + * @return the request + */ + public StreamChat streamChat(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1StreamChatRequest content) throws java.io.IOException { + StreamChat result = new StreamChat(name, content); + initialize(result); + return result; + } + + public class StreamChat extends ContactcenterinsightsRequest{@link + * StreamChat#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} + * must be called to initialize this instance immediately after invoking the constructor.
+ * + * @param name Required. The name of the assistant session to stream chat. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1StreamChatRequest} + * @since 1.13 + */ + protected StreamChat(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1StreamChatRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1StreamChatResponse.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/assistantSessions/[^/]+$"); + } + } + + @Override + public StreamChat set$Xgafv(java.lang.String $Xgafv) { + return (StreamChat) super.set$Xgafv($Xgafv); + } + + @Override + public StreamChat setAccessToken(java.lang.String accessToken) { + return (StreamChat) super.setAccessToken(accessToken); + } + + @Override + public StreamChat setAlt(java.lang.String alt) { + return (StreamChat) super.setAlt(alt); + } + + @Override + public StreamChat setCallback(java.lang.String callback) { + return (StreamChat) super.setCallback(callback); + } + + @Override + public StreamChat setFields(java.lang.String fields) { + return (StreamChat) super.setFields(fields); + } + + @Override + public StreamChat setKey(java.lang.String key) { + return (StreamChat) super.setKey(key); + } + + @Override + public StreamChat setOauthToken(java.lang.String oauthToken) { + return (StreamChat) super.setOauthToken(oauthToken); + } + + @Override + public StreamChat setPrettyPrint(java.lang.Boolean prettyPrint) { + return (StreamChat) super.setPrettyPrint(prettyPrint); + } + + @Override + public StreamChat setQuotaUser(java.lang.String quotaUser) { + return (StreamChat) super.setQuotaUser(quotaUser); + } + + @Override + public StreamChat setUploadType(java.lang.String uploadType) { + return (StreamChat) super.setUploadType(uploadType); + } + + @Override + public StreamChat setUploadProtocol(java.lang.String uploadProtocol) { + return (StreamChat) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the assistant session to stream chat. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the assistant session to stream chat. Format: + `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the assistant session to stream chat. Format: + * `projects/{project}/locations/{location}/assistantSessions/{assistant_session}` + */ + public StreamChat setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/assistantSessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public StreamChat set(String parameterName, Object value) { + return (StreamChat) super.set(parameterName, value); + } + } + } /** * An accessor for creating requests from the AuthorizedViewSets collection. diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantChunk.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantChunk.java new file mode 100644 index 00000000000..35ea211d93d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantChunk.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.contactcenterinsights.v1.model; + +/** + * A chunk of data in an assistant message. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1AssistantChunk extends com.google.api.client.json.GenericJson { + + /** + * Optional. Text data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Text data. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Optional. Text data. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantChunk setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AssistantChunk set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AssistantChunk) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AssistantChunk clone() { + return (GoogleCloudContactcenterinsightsV1AssistantChunk) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantMessage.java new file mode 100644 index 00000000000..7d1c2e5bc50 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantMessage.java @@ -0,0 +1,121 @@ +/* + * 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.contactcenterinsights.v1.model; + +/** + * A message in an assistant session. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1AssistantMessage extends com.google.api.client.json.GenericJson { + + /** + * Required. Content of the message. + * The value may be {@code null}. + */ + @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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1AssistantSession extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the session was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The display name of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. History of messages in the session. + * The value may be {@code null}. + */ + @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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse extends com.google.api.client.json.GenericJson { + + /** + * The assistant sessions. + * The value may be {@code null}. + */ + @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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1StreamChatRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The message to send to the assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * Required. The message to send to the assistant. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * Required. The message to send to the assistant. + * @param message message or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1StreamChatRequest setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1StreamChatRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1StreamChatRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1StreamChatRequest clone() { + return (GoogleCloudContactcenterinsightsV1StreamChatRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatResponse.java new file mode 100644 index 00000000000..fdec16ed75c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatResponse.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.contactcenterinsights.v1.model; + +/** + * Response from streaming chat. + * + *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 Contact Center AI Insights 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 GoogleCloudContactcenterinsightsV1StreamChatResponse extends com.google.api.client.json.GenericJson { + + /** + * A chunk of the assistant response message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1AssistantChunk chunk; + + /** + * The unique ID of the event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String eventId; + + /** + * The time when the event occurred. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String eventTime; + + /** + * A status message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * A chunk of the assistant response message. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantChunk getChunk() { + return chunk; + } + + /** + * A chunk of the assistant response message. + * @param chunk chunk or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1StreamChatResponse setChunk(GoogleCloudContactcenterinsightsV1AssistantChunk chunk) { + this.chunk = chunk; + return this; + } + + /** + * The unique ID of the event. + * @return value or {@code null} for none + */ + public java.lang.String getEventId() { + return eventId; + } + + /** + * The unique ID of the event. + * @param eventId eventId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1StreamChatResponse setEventId(java.lang.String eventId) { + this.eventId = eventId; + return this; + } + + /** + * The time when the event occurred. + * @return value or {@code null} for none + */ + public String getEventTime() { + return eventTime; + } + + /** + * The time when the event occurred. + * @param eventTime eventTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1StreamChatResponse setEventTime(String eventTime) { + this.eventTime = eventTime; + return this; + } + + /** + * A status message. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * A status message. + * @param statusMessage statusMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1StreamChatResponse setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1StreamChatResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1StreamChatResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1StreamChatResponse clone() { + return (GoogleCloudContactcenterinsightsV1StreamChatResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml index 4442fd71d9f..282294bc6e8 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@