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: com.google.apis google-api-services-contactcenterinsights - v1-rev20260623-2.0.0 + v1-rev20260727-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260623-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260727-2.0.0' } ``` diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java index 3df9eef8faf..08e40e8b33b 100644 --- a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/Contactcenterinsights.java @@ -3691,6 +3691,697 @@ public Patch set(String parameterName, Object value) { } } + } + /** + * An accessor for creating requests from the AssistantSessions collection. + * + *

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 { + + private static final String REST_PATH = "v1/{+parent}/assistantSessions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates an assistant session. + * + * Create a request for the method "assistantSessions.create". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/assistantSessions/[^/]+$"); + + /** + * Gets an assistant session. + * + * Create a request for the method "assistantSessions.get". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Get#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1/{+parent}/assistantSessions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists assistant sessions. + * + * Create a request for the method "assistantSessions.list". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link List#execute()} method to invoke the remote + * operation.

{@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 { + + private static final String REST_PATH = "v1/{+name}:streamChat"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/assistantSessions/[^/]+$"); + + /** + * Streams chat messages from the assistant. + * + * Create a request for the method "assistantSessions.streamChat". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link StreamChat#execute()} method to invoke the + * remote operation.

{@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.List chunks; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1AssistantChunk used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1AssistantChunk.class); + } + + /** + * Required. Timestamp when the message was sent or received. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String eventTime; + + /** + * Required. Role within the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Required. Content of the message. + * @return value or {@code null} for none + */ + public java.util.List getChunks() { + return chunks; + } + + /** + * Required. Content of the message. + * @param chunks chunks or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantMessage setChunks(java.util.List chunks) { + this.chunks = chunks; + return this; + } + + /** + * Required. Timestamp when the message was sent or received. + * @return value or {@code null} for none + */ + public String getEventTime() { + return eventTime; + } + + /** + * Required. Timestamp when the message was sent or received. + * @param eventTime eventTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantMessage setEventTime(String eventTime) { + this.eventTime = eventTime; + return this; + } + + /** + * Required. Role within the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Required. Role within the conversation. + * @param role role or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantMessage setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AssistantMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AssistantMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AssistantMessage clone() { + return (GoogleCloudContactcenterinsightsV1AssistantMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantSession.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantSession.java new file mode 100644 index 00000000000..0388af5aa41 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1AssistantSession.java @@ -0,0 +1,220 @@ +/* + * 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; + +/** + * Represents a conversation session with the Assistant Agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the 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.List messages; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1AssistantMessage used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1AssistantMessage.class); + } + + /** + * Identifier. Resource name of the session. Format: + * projects/{project}/locations/{location}/assistantSessions/{assistant_session} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The user who initiated the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requester; + + /** + * Output only. The status of the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The time the session was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The time the session was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the session was created. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The display name of the session. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the session. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. History of messages in the session. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Optional. History of messages in the session. + * @param messages messages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Identifier. Resource name of the session. Format: + * projects/{project}/locations/{location}/assistantSessions/{assistant_session} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Resource name of the session. Format: + * projects/{project}/locations/{location}/assistantSessions/{assistant_session} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The user who initiated the session. + * @return value or {@code null} for none + */ + public java.lang.String getRequester() { + return requester; + } + + /** + * Output only. The user who initiated the session. + * @param requester requester or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setRequester(java.lang.String requester) { + this.requester = requester; + return this; + } + + /** + * Output only. The status of the session. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The status of the session. + * @param state state or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Output only. The time the session was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The time the session was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1AssistantSession setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1AssistantSession set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1AssistantSession) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1AssistantSession clone() { + return (GoogleCloudContactcenterinsightsV1AssistantSession) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse.java new file mode 100644 index 00000000000..4c7b8ff862f --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse.java @@ -0,0 +1,97 @@ +/* + * 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 to list assistant sessions. + * + *

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 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.List assistantSessions; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1AssistantSession used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(GoogleCloudContactcenterinsightsV1AssistantSession.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The assistant sessions. + * @return value or {@code null} for none + */ + public java.util.List getAssistantSessions() { + return assistantSessions; + } + + /** + * The assistant sessions. + * @param assistantSessions assistantSessions or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse setAssistantSessions(java.util.List assistantSessions) { + this.assistantSessions = assistantSessions; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListAssistantSessionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatRequest.java new file mode 100644 index 00000000000..40b12fcf6fb --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1StreamChatRequest.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; + +/** + * Request to stream 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 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 @@ com.google.apis google-api-services-contactcenterinsights - v1-rev20260623-2.0.0 - Contact Center AI Insights API v1-rev20260623-2.0.0 + v1-rev20260727-2.0.0 + Contact Center AI Insights API v1-rev20260727-2.0.0 jar 2011 diff --git a/clients/google-api-services-contactcenterinsights/v1/README.md b/clients/google-api-services-contactcenterinsights/v1/README.md index 7fb1d863fe5..320fba8e922 100644 --- a/clients/google-api-services-contactcenterinsights/v1/README.md +++ b/clients/google-api-services-contactcenterinsights/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-contactcenterinsights - v1-rev20260623-2.0.0 + v1-rev20260727-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260623-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260727-2.0.0' } ```