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 026191cd4de..0a62bf71ef4 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-rev20260121-2.0.0 + v1-rev20260202-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260121-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260202-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 b98a67d5752..b3ceb9a8dac 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 @@ -573,6 +573,140 @@ public BulkUploadFeedbackLabels set(String parameterName, Object value) { return (BulkUploadFeedbackLabels) super.set(parameterName, value); } } + /** + * Natural language based Insights which powers the next generation of dashboards in Insights. Next + * generation of QueryMetrics. + * + * Create a request for the method "locations.generativeInsights". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link GenerativeInsights#execute()} method to invoke the remote + * operation. + * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest} + * @return the request + */ + public GenerativeInsights generativeInsights(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest content) throws java.io.IOException { + GenerativeInsights result = new GenerativeInsights(location, content); + initialize(result); + return result; + } + + public class GenerativeInsights extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+location}:generativeInsights"; + + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Natural language based Insights which powers the next generation of dashboards in Insights. + * Next generation of QueryMetrics. + * + * Create a request for the method "locations.generativeInsights". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link GenerativeInsights#execute()} method to invoke + * the remote operation.

{@link GenerativeInsights#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

+ * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest} + * @since 1.13 + */ + protected GenerativeInsights(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + } + + @Override + public GenerativeInsights set$Xgafv(java.lang.String $Xgafv) { + return (GenerativeInsights) super.set$Xgafv($Xgafv); + } + + @Override + public GenerativeInsights setAccessToken(java.lang.String accessToken) { + return (GenerativeInsights) super.setAccessToken(accessToken); + } + + @Override + public GenerativeInsights setAlt(java.lang.String alt) { + return (GenerativeInsights) super.setAlt(alt); + } + + @Override + public GenerativeInsights setCallback(java.lang.String callback) { + return (GenerativeInsights) super.setCallback(callback); + } + + @Override + public GenerativeInsights setFields(java.lang.String fields) { + return (GenerativeInsights) super.setFields(fields); + } + + @Override + public GenerativeInsights setKey(java.lang.String key) { + return (GenerativeInsights) super.setKey(key); + } + + @Override + public GenerativeInsights setOauthToken(java.lang.String oauthToken) { + return (GenerativeInsights) super.setOauthToken(oauthToken); + } + + @Override + public GenerativeInsights setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerativeInsights) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerativeInsights setQuotaUser(java.lang.String quotaUser) { + return (GenerativeInsights) super.setQuotaUser(quotaUser); + } + + @Override + public GenerativeInsights setUploadType(java.lang.String uploadType) { + return (GenerativeInsights) super.setUploadType(uploadType); + } + + @Override + public GenerativeInsights setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerativeInsights) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** Required. The location of the data. "projects/{project}/locations/{location}" + */ + public java.lang.String getLocation() { + return location; + } + + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + public GenerativeInsights setLocation(java.lang.String location) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.location = location; + return this; + } + + @Override + public GenerativeInsights set(String parameterName, Object value) { + return (GenerativeInsights) super.set(parameterName, value); + } + } /** * Gets correlation config. * @@ -4741,6 +4875,140 @@ public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } + /** + * Natural language based Insights which powers the next generation of dashboards in Insights. Next + * generation of QueryMetrics. + * + * Create a request for the method "authorizedViews.generativeInsights". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link GenerativeInsights#execute()} method to invoke the remote + * operation. + * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest} + * @return the request + */ + public GenerativeInsights generativeInsights(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest content) throws java.io.IOException { + GenerativeInsights result = new GenerativeInsights(location, content); + initialize(result); + return result; + } + + public class GenerativeInsights extends ContactcenterinsightsRequest { + + private static final String REST_PATH = "v1/{+location}:generativeInsights"; + + private final java.util.regex.Pattern LOCATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + + /** + * Natural language based Insights which powers the next generation of dashboards in Insights. + * Next generation of QueryMetrics. + * + * Create a request for the method "authorizedViews.generativeInsights". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link GenerativeInsights#execute()} method to invoke + * the remote operation.

{@link GenerativeInsights#initialize(com.google.api.client.googleapis + * .services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately + * after invoking the constructor.

+ * + * @param location Required. The location of the data. "projects/{project}/locations/{location}" + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest} + * @since 1.13 + */ + protected GenerativeInsights(java.lang.String location, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleLongrunningOperation.class); + this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + } + + @Override + public GenerativeInsights set$Xgafv(java.lang.String $Xgafv) { + return (GenerativeInsights) super.set$Xgafv($Xgafv); + } + + @Override + public GenerativeInsights setAccessToken(java.lang.String accessToken) { + return (GenerativeInsights) super.setAccessToken(accessToken); + } + + @Override + public GenerativeInsights setAlt(java.lang.String alt) { + return (GenerativeInsights) super.setAlt(alt); + } + + @Override + public GenerativeInsights setCallback(java.lang.String callback) { + return (GenerativeInsights) super.setCallback(callback); + } + + @Override + public GenerativeInsights setFields(java.lang.String fields) { + return (GenerativeInsights) super.setFields(fields); + } + + @Override + public GenerativeInsights setKey(java.lang.String key) { + return (GenerativeInsights) super.setKey(key); + } + + @Override + public GenerativeInsights setOauthToken(java.lang.String oauthToken) { + return (GenerativeInsights) super.setOauthToken(oauthToken); + } + + @Override + public GenerativeInsights setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerativeInsights) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerativeInsights setQuotaUser(java.lang.String quotaUser) { + return (GenerativeInsights) super.setQuotaUser(quotaUser); + } + + @Override + public GenerativeInsights setUploadType(java.lang.String uploadType) { + return (GenerativeInsights) super.setUploadType(uploadType); + } + + @Override + public GenerativeInsights setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerativeInsights) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + @com.google.api.client.util.Key + private java.lang.String location; + + /** Required. The location of the data. "projects/{project}/locations/{location}" + */ + public java.lang.String getLocation() { + return location; + } + + /** Required. The location of the data. "projects/{project}/locations/{location}" */ + public GenerativeInsights setLocation(java.lang.String location) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(), + "Parameter location must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/authorizedViewSets/[^/]+/authorizedViews/[^/]+$"); + } + this.location = location; + return this; + } + + @Override + public GenerativeInsights set(String parameterName, Object value) { + return (GenerativeInsights) super.set(parameterName, value); + } + } /** * Get AuthorizedView * @@ -16475,6 +16743,1592 @@ public BulkAnalyze set(String parameterName, Object value) { } } + /** + * An accessor for creating requests from the Dashboards collection. + * + *

The typical use is:

+ *
+       *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+       *   {@code Contactcenterinsights.Dashboards.List request = contactcenterinsights.dashboards().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Dashboards dashboards() { + return new Dashboards(); + } + + /** + * The "dashboards" collection of methods. + */ + public class Dashboards { + + /** + * Creates a Dashboard. + * + * Create a request for the method "dashboards.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 of the dashboard. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard 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}/dashboards"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a Dashboard. + * + * Create a request for the method "dashboards.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 of the dashboard. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard.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 of the dashboard. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the dashboard. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the dashboard. */ + 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. A unique ID for the new Dashboard. This ID will become the final component of + * the Dashboard's resource name. If no ID is specified, a server-generated ID will be + * used. This value should be 4-64 characters and must match the regular expression + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + */ + @com.google.api.client.util.Key + private java.lang.String dashboardId; + + /** Optional. A unique ID for the new Dashboard. This ID will become the final component of the + Dashboard's resource name. If no ID is specified, a server-generated ID will be used. This value + should be 4-64 characters and must match the regular expression + `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + */ + public java.lang.String getDashboardId() { + return dashboardId; + } + + /** + * Optional. A unique ID for the new Dashboard. This ID will become the final component of + * the Dashboard's resource name. If no ID is specified, a server-generated ID will be + * used. This value should be 4-64 characters and must match the regular expression + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + */ + public Create setDashboardId(java.lang.String dashboardId) { + this.dashboardId = dashboardId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Dashboard. + * + * Create a request for the method "dashboards.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the dashboard to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete 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/[^/]+/dashboards/[^/]+$"); + + /** + * Deletes a Dashboard. + * + * Create a request for the method "dashboards.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#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 dashboard to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.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/[^/]+/dashboards/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the dashboard to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the dashboard to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the dashboard to delete. */ + public Delete 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/[^/]+/dashboards/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a Dashboard. + * + * Create a request for the method "dashboards.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 dashboard to get. + * @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/[^/]+/dashboards/[^/]+$"); + + /** + * Gets a Dashboard. + * + * Create a request for the method "dashboards.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 dashboard to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard.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/[^/]+/dashboards/[^/]+$"); + } + } + + @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 dashboard to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the dashboard to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the dashboard to get. */ + 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/[^/]+/dashboards/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Dashboards. + * + * Create a request for the method "dashboards.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 of the dashboards. + * @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}/dashboards"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists Dashboards. + * + * Create a request for the method "dashboards.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 of the dashboards. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListDashboardsResponse.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 of the dashboards. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the dashboards. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the dashboards. */ + 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. The filter expression to filter dashboards listed in the response. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. The filter expression to filter dashboards listed in the response. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. The filter expression to filter dashboards listed in the response. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** Optional. The order by expression to order dashboards listed in the response. */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. The order by expression to order dashboards listed in the response. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** Optional. The order by expression to order dashboards listed in the response. */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of dashboards to return. The service may return fewer than + * this value. The default and maximum value is 100. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of dashboards to return. The service may return fewer than this value. + The default and maximum value is 100. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of dashboards to return. The service may return fewer than + * this value. The default and maximum value is 100. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The value returned by the last `ListDashboardsResponse`. This value indicates + * that this is a continuation of a prior `ListDashboards` call and that the system should + * return the next page of data. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The value returned by the last `ListDashboardsResponse`. This value indicates that this + is a continuation of a prior `ListDashboards` call and that the system should return the next page + of data. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The value returned by the last `ListDashboardsResponse`. This value indicates + * that this is a continuation of a prior `ListDashboards` call and that the system should + * return the next page of data. + */ + 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); + } + } + /** + * Updates a Dashboard. + * + * Create a request for the method "dashboards.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch 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/[^/]+/dashboards/[^/]+$"); + + /** + * Updates a Dashboard. + * + * Create a request for the method "dashboards.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Dashboard.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/[^/]+/dashboards/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Dashboard resource name. Format: + projects/{project}/locations/{location}/dashboards/{dashboard} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + */ + public Patch 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/[^/]+/dashboards/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. List of fields to be updated. All possible fields can be updated by passing + * `*`, or a subset of the following updateable fields can be provided: * `display_name` * + * `root_container` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to be updated. All possible fields can be updated by passing `*`, or a + subset of the following updateable fields can be provided: * `display_name` * `root_container` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. List of fields to be updated. All possible fields can be updated by passing + * `*`, or a subset of the following updateable fields can be provided: * `display_name` * + * `root_container` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Charts collection. + * + *

The typical use is:

+ *
+         *   {@code Contactcenterinsights contactcenterinsights = new Contactcenterinsights(...);}
+         *   {@code Contactcenterinsights.Charts.List request = contactcenterinsights.charts().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Charts charts() { + return new Charts(); + } + + /** + * The "charts" collection of methods. + */ + public class Charts { + + /** + * Creates a Chart. + * + * Create a request for the method "charts.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 of the chart. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart 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}/charts"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$"); + + /** + * Creates a Chart. + * + * Create a request for the method "charts.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 of the chart. + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart content) { + super(Contactcenterinsights.this, "POST", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart.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/[^/]+/dashboards/[^/]+$"); + } + } + + @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 of the chart. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the chart. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the chart. */ + 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/[^/]+/dashboards/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. A unique ID for the new Chart. This ID will become the final component of + * the Chart's resource name. If no ID is specified, a server-generated ID will be used. + * This value should be 4-64 characters and must match the regular expression + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + */ + @com.google.api.client.util.Key + private java.lang.String chartId; + + /** Optional. A unique ID for the new Chart. This ID will become the final component of the Chart's + resource name. If no ID is specified, a server-generated ID will be used. This value should be 4-64 + characters and must match the regular expression `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + */ + public java.lang.String getChartId() { + return chartId; + } + + /** + * Optional. A unique ID for the new Chart. This ID will become the final component of + * the Chart's resource name. If no ID is specified, a server-generated ID will be used. + * This value should be 4-64 characters and must match the regular expression + * `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`. + */ + public Create setChartId(java.lang.String chartId) { + this.chartId = chartId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a Chart. + * + * Create a request for the method "charts.delete". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the chart to delete. + * @return the request + */ + public Delete delete(java.lang.String name) throws java.io.IOException { + Delete result = new Delete(name); + initialize(result); + return result; + } + + public class Delete 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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + + /** + * Deletes a Chart. + * + * Create a request for the method "charts.delete". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Delete#execute()} method to invoke the remote + * operation.

{@link + * Delete#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 chart to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(Contactcenterinsights.this, "DELETE", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleProtobufEmpty.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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + } + } + + @Override + public Delete set$Xgafv(java.lang.String $Xgafv) { + return (Delete) super.set$Xgafv($Xgafv); + } + + @Override + public Delete setAccessToken(java.lang.String accessToken) { + return (Delete) super.setAccessToken(accessToken); + } + + @Override + public Delete setAlt(java.lang.String alt) { + return (Delete) super.setAlt(alt); + } + + @Override + public Delete setCallback(java.lang.String callback) { + return (Delete) super.setCallback(callback); + } + + @Override + public Delete setFields(java.lang.String fields) { + return (Delete) super.setFields(fields); + } + + @Override + public Delete setKey(java.lang.String key) { + return (Delete) super.setKey(key); + } + + @Override + public Delete setOauthToken(java.lang.String oauthToken) { + return (Delete) super.setOauthToken(oauthToken); + } + + @Override + public Delete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Delete) super.setPrettyPrint(prettyPrint); + } + + @Override + public Delete setQuotaUser(java.lang.String quotaUser) { + return (Delete) super.setQuotaUser(quotaUser); + } + + @Override + public Delete setUploadType(java.lang.String uploadType) { + return (Delete) super.setUploadType(uploadType); + } + + @Override + public Delete setUploadProtocol(java.lang.String uploadProtocol) { + return (Delete) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The name of the chart to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the chart to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the chart to delete. */ + public Delete 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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets a Chart. + * + * Create a request for the method "charts.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 chart to get. + * @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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + + /** + * Gets a Chart. + * + * Create a request for the method "charts.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 chart to get. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart.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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + } + } + + @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 chart to get. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the chart to get. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The name of the chart to get. */ + 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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists Charts. + * + * Create a request for the method "charts.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 of the charts. + * @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}/charts"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/dashboards/[^/]+$"); + + /** + * Lists Charts. + * + * Create a request for the method "charts.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 of the charts. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(Contactcenterinsights.this, "GET", REST_PATH, null, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1ListChartsResponse.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/[^/]+/dashboards/[^/]+$"); + } + } + + @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 of the charts. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource of the charts. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource of the charts. */ + 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/[^/]+/dashboards/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a Chart. + * + * Create a request for the method "charts.patch". + * + * This request holds the parameters needed by the contactcenterinsights server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch 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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + + /** + * Updates a Chart. + * + * Create a request for the method "charts.patch". + * + * This request holds the parameters needed by the the contactcenterinsights server. After + * setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

{@link + * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must + * be called to initialize this instance immediately after invoking the constructor.

+ * + * @param name Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @param content the {@link com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart content) { + super(Contactcenterinsights.this, "PATCH", REST_PATH, content, com.google.api.services.contactcenterinsights.v1.model.GoogleCloudContactcenterinsightsV1Chart.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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. Chart resource name. Format: + projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + */ + public Patch 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/[^/]+/dashboards/[^/]+/charts/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. List of fields to be updated. All possible fields can be updated by passing + * `*`, or a subset of the following updateable fields can be provided: * `display_name` + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. List of fields to be updated. All possible fields can be updated by passing `*`, or a + subset of the following updateable fields can be provided: * `display_name` + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. List of fields to be updated. All possible fields can be updated by passing + * `*`, or a subset of the following updateable fields can be provided: * `display_name` + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + } + } /** * An accessor for creating requests from the Datasets collection. * diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Chart.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Chart.java new file mode 100644 index 00000000000..4574e7b9ce8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Chart.java @@ -0,0 +1,331 @@ +/* + * 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; + +/** + * Configurable dashboard's widget that displays data as a chart. + * + *

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 GoogleCloudContactcenterinsightsV1Chart extends com.google.api.client.json.GenericJson { + + /** + * Output only. Chart type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chartType; + + /** + * Chart visualization type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chartVisualizationType; + + /** + * Output only. Chart create time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1ChartDataSource dataSource; + + /** + * Date range config applied to the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DateRangeConfig dateRangeConfig; + + /** + * Chart description + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * User provided display name of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Filter applied to all charts in the container. Should support scope later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * The height of the chart in grid units. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer height; + + /** + * Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Chart last update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * The width of the chart in grid units. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer width; + + /** + * Output only. Chart type. + * @return value or {@code null} for none + */ + public java.lang.String getChartType() { + return chartType; + } + + /** + * Output only. Chart type. + * @param chartType chartType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setChartType(java.lang.String chartType) { + this.chartType = chartType; + return this; + } + + /** + * Chart visualization type. + * @return value or {@code null} for none + */ + public java.lang.String getChartVisualizationType() { + return chartVisualizationType; + } + + /** + * Chart visualization type. + * @param chartVisualizationType chartVisualizationType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setChartVisualizationType(java.lang.String chartVisualizationType) { + this.chartVisualizationType = chartVisualizationType; + return this; + } + + /** + * Output only. Chart create time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Chart create time. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ChartDataSource getDataSource() { + return dataSource; + } + + /** + * @param dataSource dataSource or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setDataSource(GoogleCloudContactcenterinsightsV1ChartDataSource dataSource) { + this.dataSource = dataSource; + return this; + } + + /** + * Date range config applied to the chart. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfig getDateRangeConfig() { + return dateRangeConfig; + } + + /** + * Date range config applied to the chart. + * @param dateRangeConfig dateRangeConfig or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setDateRangeConfig(GoogleCloudContactcenterinsightsV1DateRangeConfig dateRangeConfig) { + this.dateRangeConfig = dateRangeConfig; + return this; + } + + /** + * Chart description + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Chart description + * @param description description or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * User provided display name of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * User provided display name of the chart. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filter applied to all charts in the container. Should support scope later. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter applied to all charts in the container. Should support scope later. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The height of the chart in grid units. + * @return value or {@code null} for none + */ + public java.lang.Integer getHeight() { + return height; + } + + /** + * The height of the chart in grid units. + * @param height height or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setHeight(java.lang.Integer height) { + this.height = height; + return this; + } + + /** + * Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Chart resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Chart last update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Chart last update time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * The width of the chart in grid units. + * @return value or {@code null} for none + */ + public java.lang.Integer getWidth() { + return width; + } + + /** + * The width of the chart in grid units. + * @param width width or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart setWidth(java.lang.Integer width) { + this.width = width; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1Chart set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1Chart) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1Chart clone() { + return (GoogleCloudContactcenterinsightsV1Chart) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ChartDataSource.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ChartDataSource.java new file mode 100644 index 00000000000..0fcf2ca816a --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ChartDataSource.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * The request data for visualizing the dataset in the chart. + * + *

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 GoogleCloudContactcenterinsightsV1ChartDataSource extends com.google.api.client.json.GenericJson { + + /** + * Use natural language query to generate the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsights generativeInsights; + + /** + * Use the existing QueryMetrics to generate the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QueryMetrics queryMetrics; + + /** + * Use natural language query to generate the chart. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights getGenerativeInsights() { + return generativeInsights; + } + + /** + * Use natural language query to generate the chart. + * @param generativeInsights generativeInsights or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ChartDataSource setGenerativeInsights(GoogleCloudContactcenterinsightsV1GenerativeInsights generativeInsights) { + this.generativeInsights = generativeInsights; + return this; + } + + /** + * Use the existing QueryMetrics to generate the chart. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetrics getQueryMetrics() { + return queryMetrics; + } + + /** + * Use the existing QueryMetrics to generate the chart. + * @param queryMetrics queryMetrics or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ChartDataSource setQueryMetrics(GoogleCloudContactcenterinsightsV1QueryMetrics queryMetrics) { + this.queryMetrics = queryMetrics; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ChartDataSource set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ChartDataSource) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ChartDataSource clone() { + return (GoogleCloudContactcenterinsightsV1ChartDataSource) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Container.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Container.java new file mode 100644 index 00000000000..87245000f59 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Container.java @@ -0,0 +1,235 @@ +/* + * 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; + +/** + * Configurable dashboard's container. Container can contain multiple widgets. + * + *

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 GoogleCloudContactcenterinsightsV1Container extends com.google.api.client.json.GenericJson { + + /** + * Output only. Unique ID for the container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String containerId; + + /** + * Date range config applied to all charts in the container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DateRangeConfig dateRangeConfig; + + /** + * Container description + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * User provided display name of the Container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Filter applied to all charts in the container. Should support scope later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * The height of the container in grid units. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer height; + + /** + * Widgets in the Container. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List widgets; + + /** + * The width of the container in grid units. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer width; + + /** + * Output only. Unique ID for the container. + * @return value or {@code null} for none + */ + public java.lang.String getContainerId() { + return containerId; + } + + /** + * Output only. Unique ID for the container. + * @param containerId containerId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setContainerId(java.lang.String containerId) { + this.containerId = containerId; + return this; + } + + /** + * Date range config applied to all charts in the container. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfig getDateRangeConfig() { + return dateRangeConfig; + } + + /** + * Date range config applied to all charts in the container. + * @param dateRangeConfig dateRangeConfig or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setDateRangeConfig(GoogleCloudContactcenterinsightsV1DateRangeConfig dateRangeConfig) { + this.dateRangeConfig = dateRangeConfig; + return this; + } + + /** + * Container description + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Container description + * @param description description or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * User provided display name of the Container. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * User provided display name of the Container. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filter applied to all charts in the container. Should support scope later. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter applied to all charts in the container. Should support scope later. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The height of the container in grid units. + * @return value or {@code null} for none + */ + public java.lang.Integer getHeight() { + return height; + } + + /** + * The height of the container in grid units. + * @param height height or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setHeight(java.lang.Integer height) { + this.height = height; + return this; + } + + /** + * Widgets in the Container. + * @return value or {@code null} for none + */ + public java.util.List getWidgets() { + return widgets; + } + + /** + * Widgets in the Container. + * @param widgets widgets or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setWidgets(java.util.List widgets) { + this.widgets = widgets; + return this; + } + + /** + * The width of the container in grid units. + * @return value or {@code null} for none + */ + public java.lang.Integer getWidth() { + return width; + } + + /** + * The width of the container in grid units. + * @param width width or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container setWidth(java.lang.Integer width) { + this.width = width; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1Container set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1Container) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1Container clone() { + return (GoogleCloudContactcenterinsightsV1Container) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dashboard.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dashboard.java new file mode 100644 index 00000000000..5aaff09bb40 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Dashboard.java @@ -0,0 +1,268 @@ +/* + * 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; + +/** + * Configurable dashboard + * + *

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 GoogleCloudContactcenterinsightsV1Dashboard extends com.google.api.client.json.GenericJson { + + /** + * Output only. Dashboard creation time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Date range config applied to all charts in the dashboard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DateRangeConfig dateRangeConfig; + + /** + * Dashboard description + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * User provided display name of the dashboard. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Filter applied to all charts in the dashboard. Should support scope later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Whether the dashboard is read-only. All predefined dashboards are read-only and + * cannot be modified by the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean readOnly; + + /** + * The dashboard's root widget container. We want to display the dashboard layout in a tree-like + * structure, where the root container contains other widgets (containers or charts) as children. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1Container rootContainer; + + /** + * Output only. Dashboard last update time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Dashboard creation time. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Dashboard creation time. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Date range config applied to all charts in the dashboard. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfig getDateRangeConfig() { + return dateRangeConfig; + } + + /** + * Date range config applied to all charts in the dashboard. + * @param dateRangeConfig dateRangeConfig or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setDateRangeConfig(GoogleCloudContactcenterinsightsV1DateRangeConfig dateRangeConfig) { + this.dateRangeConfig = dateRangeConfig; + return this; + } + + /** + * Dashboard description + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Dashboard description + * @param description description or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * User provided display name of the dashboard. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * User provided display name of the dashboard. + * @param displayName displayName or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Filter applied to all charts in the dashboard. Should support scope later. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter applied to all charts in the dashboard. Should support scope later. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. Dashboard resource name. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard} + * @param name name or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Whether the dashboard is read-only. All predefined dashboards are read-only and + * cannot be modified by the user. + * @return value or {@code null} for none + */ + public java.lang.Boolean getReadOnly() { + return readOnly; + } + + /** + * Output only. Whether the dashboard is read-only. All predefined dashboards are read-only and + * cannot be modified by the user. + * @param readOnly readOnly or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setReadOnly(java.lang.Boolean readOnly) { + this.readOnly = readOnly; + return this; + } + + /** + * The dashboard's root widget container. We want to display the dashboard layout in a tree-like + * structure, where the root container contains other widgets (containers or charts) as children. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container getRootContainer() { + return rootContainer; + } + + /** + * The dashboard's root widget container. We want to display the dashboard layout in a tree-like + * structure, where the root container contains other widgets (containers or charts) as children. + * @param rootContainer rootContainer or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setRootContainer(GoogleCloudContactcenterinsightsV1Container rootContainer) { + this.rootContainer = rootContainer; + return this; + } + + /** + * Output only. Dashboard last update time. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Dashboard last update time. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Dashboard setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1Dashboard set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1Dashboard) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1Dashboard clone() { + return (GoogleCloudContactcenterinsightsV1Dashboard) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DateRangeConfig.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DateRangeConfig.java new file mode 100644 index 00000000000..92d26e5c03a --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DateRangeConfig.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Date range configuration for dashboard charts. + * + *

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 GoogleCloudContactcenterinsightsV1DateRangeConfig extends com.google.api.client.json.GenericJson { + + /** + * An absolute date range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1QueryInterval absoluteDateRange; + + /** + * A relative date range. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange relativeDateRange; + + /** + * An absolute date range. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryInterval getAbsoluteDateRange() { + return absoluteDateRange; + } + + /** + * An absolute date range. + * @param absoluteDateRange absoluteDateRange or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfig setAbsoluteDateRange(GoogleCloudContactcenterinsightsV1QueryInterval absoluteDateRange) { + this.absoluteDateRange = absoluteDateRange; + return this; + } + + /** + * A relative date range. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange getRelativeDateRange() { + return relativeDateRange; + } + + /** + * A relative date range. + * @param relativeDateRange relativeDateRange or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfig setRelativeDateRange(GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange relativeDateRange) { + this.relativeDateRange = relativeDateRange; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1DateRangeConfig set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DateRangeConfig) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DateRangeConfig clone() { + return (GoogleCloudContactcenterinsightsV1DateRangeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange.java new file mode 100644 index 00000000000..06402aff2ca --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Relative date range configuration. + * + *

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 GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange extends com.google.api.client.json.GenericJson { + + /** + * Required. The quantity of units in the past. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long quantity; + + /** + * Required. The unit of time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String unit; + + /** + * Required. The quantity of units in the past. + * @return value or {@code null} for none + */ + public java.lang.Long getQuantity() { + return quantity; + } + + /** + * Required. The quantity of units in the past. + * @param quantity quantity or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange setQuantity(java.lang.Long quantity) { + this.quantity = quantity; + return this; + } + + /** + * Required. The unit of time. + * @return value or {@code null} for none + */ + public java.lang.String getUnit() { + return unit; + } + + /** + * Required. The unit of time. + * @param unit unit or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange setUnit(java.lang.String unit) { + this.unit = unit; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange clone() { + return (GoogleCloudContactcenterinsightsV1DateRangeConfigRelativeDateRange) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript.java new file mode 100644 index 00000000000..0022e05c6ee --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript.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; + +/** + * The conversation transcript for the chart. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript extends com.google.api.client.json.GenericJson { + + /** + * The conversation id of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationId; + + /** + * Output only. The create time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Ordered list of messages, including user inputs and system responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Output only. The update time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * The conversation id of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getConversationId() { + return conversationId; + } + + /** + * The conversation id of the chart. + * @param conversationId conversationId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript setConversationId(java.lang.String conversationId) { + this.conversationId = conversationId; + return this; + } + + /** + * Output only. The create time of the conversation. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The create time of the conversation. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @param messages messages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Output only. The update time of the conversation. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The update time of the conversation. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage.java new file mode 100644 index 00000000000..d2a23d9cf9e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage.java @@ -0,0 +1,142 @@ +/* + * 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; + +/** + * The message in the conversation. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage extends com.google.api.client.json.GenericJson { + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * The message id of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String messageId; + + /** + * A wrapper for system messages per turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages systemMessageWrapper; + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage userMessage; + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * The message id of the message. + * @return value or {@code null} for none + */ + public java.lang.String getMessageId() { + return messageId; + } + + /** + * The message id of the message. + * @param messageId messageId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage setMessageId(java.lang.String messageId) { + this.messageId = messageId; + return this; + } + + /** + * A wrapper for system messages per turn. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages getSystemMessageWrapper() { + return systemMessageWrapper; + } + + /** + * A wrapper for system messages per turn. + * @param systemMessageWrapper systemMessageWrapper or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage setSystemMessageWrapper(GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages systemMessageWrapper) { + this.systemMessageWrapper = systemMessageWrapper; + return this; + } + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage getUserMessage() { + return userMessage; + } + + /** + * A message from the user that is interacting with the system. + * @param userMessage userMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage setUserMessage(GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage userMessage) { + this.userMessage = userMessage; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage.java new file mode 100644 index 00000000000..48fddf6b2da --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage.java @@ -0,0 +1,164 @@ +/* + * 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 from the system in response to the user. This message can also be a message from the + * user as historical context for multiturn conversations with the system. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage extends com.google.api.client.json.GenericJson { + + /** + * Chart spec from LLM + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * Raw SQL from LLM, before templatization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * A direct natural language response to the user message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput textMessage; + + /** + * Optional. User provided chart spec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map userProvidedChartSpec; + + /** + * Optional. User provided SQL query + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userProvidedSqlQuery; + + /** + * Chart spec from LLM + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * Chart spec from LLM + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * Raw SQL from LLM, before templatization + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * Raw SQL from LLM, before templatization + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * A direct natural language response to the user message. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput getTextMessage() { + return textMessage; + } + + /** + * A direct natural language response to the user message. + * @param textMessage textMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage setTextMessage(GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput textMessage) { + this.textMessage = textMessage; + return this; + } + + /** + * Optional. User provided chart spec + * @return value or {@code null} for none + */ + public java.util.Map getUserProvidedChartSpec() { + return userProvidedChartSpec; + } + + /** + * Optional. User provided chart spec + * @param userProvidedChartSpec userProvidedChartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage setUserProvidedChartSpec(java.util.Map userProvidedChartSpec) { + this.userProvidedChartSpec = userProvidedChartSpec; + return this; + } + + /** + * Optional. User provided SQL query + * @return value or {@code null} for none + */ + public java.lang.String getUserProvidedSqlQuery() { + return userProvidedSqlQuery; + } + + /** + * Optional. User provided SQL query + * @param userProvidedSqlQuery userProvidedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage setUserProvidedSqlQuery(java.lang.String userProvidedSqlQuery) { + this.userProvidedSqlQuery = userProvidedSqlQuery; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java new file mode 100644 index 00000000000..deef564af39 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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 text output message from the system. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The parts of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List text; + + /** + * The type of the text message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textType; + + /** + * The parts of the message. + * @return value or {@code null} for none + */ + public java.util.List getText() { + return text; + } + + /** + * The parts of the message. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput setText(java.util.List text) { + this.text = text; + return this; + } + + /** + * The type of the text message. + * @return value or {@code null} for none + */ + public java.lang.String getTextType() { + return textType; + } + + /** + * The type of the text message. + * @param textType textType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput setTextType(java.lang.String textType) { + this.textType = textType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages.java new file mode 100644 index 00000000000..577abf751b8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages.java @@ -0,0 +1,73 @@ +/* + * 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 wrapper for system messages per turn. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages extends com.google.api.client.json.GenericJson { + + /** + * A message from the system in response to the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemMessages; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage 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(GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessage.class); + } + + /** + * A message from the system in response to the user. + * @return value or {@code null} for none + */ + public java.util.List getSystemMessages() { + return systemMessages; + } + + /** + * A message from the system in response to the user. + * @param systemMessages systemMessages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages setSystemMessages(java.util.List systemMessages) { + this.systemMessages = systemMessages; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageSystemMessages) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage.java new file mode 100644 index 00000000000..69eaa8f9cb6 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage.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; + +/** + * The user 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 GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage extends com.google.api.client.json.GenericJson { + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * A message from the user that is interacting with the system. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscriptMessageUserMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsights.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsights.java new file mode 100644 index 00000000000..dfa113793d5 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsights.java @@ -0,0 +1,187 @@ +/* + * 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 that use natural language query to generate the chart. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsights extends com.google.api.client.json.GenericJson { + + /** + * The chart checkpoint used to generate the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint chartCheckpoint; + + /** + * Output only. The chart conversations used to generate the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List chartConversations; + + /** + * Chart spec for the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map request; + + /** + * Optional. For charts with comparison, this key will determine the metric that will be compared + * between the current and another dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sqlComparisonKey; + + /** + * SQL query used to generate the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sqlQuery; + + /** + * The chart checkpoint used to generate the chart. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint getChartCheckpoint() { + return chartCheckpoint; + } + + /** + * The chart checkpoint used to generate the chart. + * @param chartCheckpoint chartCheckpoint or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights setChartCheckpoint(GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint chartCheckpoint) { + this.chartCheckpoint = chartCheckpoint; + return this; + } + + /** + * Output only. The chart conversations used to generate the chart. + * @return value or {@code null} for none + */ + public java.util.List getChartConversations() { + return chartConversations; + } + + /** + * Output only. The chart conversations used to generate the chart. + * @param chartConversations chartConversations or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights setChartConversations(java.util.List chartConversations) { + this.chartConversations = chartConversations; + return this; + } + + /** + * Chart spec for the chart. + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * Chart spec for the chart. + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * @return value or {@code null} for none + */ + public java.util.Map getRequest() { + return request; + } + + /** + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights setRequest(java.util.Map request) { + this.request = request; + return this; + } + + /** + * Optional. For charts with comparison, this key will determine the metric that will be compared + * between the current and another dataset. + * @return value or {@code null} for none + */ + public java.lang.String getSqlComparisonKey() { + return sqlComparisonKey; + } + + /** + * Optional. For charts with comparison, this key will determine the metric that will be compared + * between the current and another dataset. + * @param sqlComparisonKey sqlComparisonKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights setSqlComparisonKey(java.lang.String sqlComparisonKey) { + this.sqlComparisonKey = sqlComparisonKey; + return this; + } + + /** + * SQL query used to generate the chart. + * @return value or {@code null} for none + */ + public java.lang.String getSqlQuery() { + return sqlQuery; + } + + /** + * SQL query used to generate the chart. + * @param sqlQuery sqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsights setSqlQuery(java.lang.String sqlQuery) { + this.sqlQuery = sqlQuery; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsights set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsights) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsights clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsights) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint.java new file mode 100644 index 00000000000..bfd216075ea --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * The current chart checkpoint state. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint extends com.google.api.client.json.GenericJson { + + /** + * The revision id of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** + * The session id of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** + * The revision id of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * The revision id of the chart. + * @param revisionId revisionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + + /** + * The session id of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * The session id of the chart. + * @param sessionId sessionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartCheckpoint) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation.java new file mode 100644 index 00000000000..f1dfc4df3e2 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation.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; + +/** + * The conversation used to generate the chart. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation extends com.google.api.client.json.GenericJson { + + /** + * The conversation id of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationId; + + /** + * The create time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Ordered list of messages, including user inputs and system responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * The update time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * The conversation id of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getConversationId() { + return conversationId; + } + + /** + * The conversation id of the chart. + * @param conversationId conversationId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation setConversationId(java.lang.String conversationId) { + this.conversationId = conversationId; + return this; + } + + /** + * The create time of the conversation. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * The create time of the conversation. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @param messages messages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * The update time of the conversation. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * The update time of the conversation. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversation) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage.java new file mode 100644 index 00000000000..3912c64857d --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage.java @@ -0,0 +1,142 @@ +/* + * 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; + +/** + * The message in the conversation. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage extends com.google.api.client.json.GenericJson { + + /** + * For user messages, this is the time at which the system received the message. For system + * messages, this is the time at which the system generated the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * The message id of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String messageId; + + /** + * A message from the system in response to the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage systemMessage; + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage userMessage; + + /** + * For user messages, this is the time at which the system received the message. For system + * messages, this is the time at which the system generated the message. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * For user messages, this is the time at which the system received the message. For system + * messages, this is the time at which the system generated the message. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * The message id of the message. + * @return value or {@code null} for none + */ + public java.lang.String getMessageId() { + return messageId; + } + + /** + * The message id of the message. + * @param messageId messageId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage setMessageId(java.lang.String messageId) { + this.messageId = messageId; + return this; + } + + /** + * A message from the system in response to the user. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage getSystemMessage() { + return systemMessage; + } + + /** + * A message from the system in response to the user. + * @param systemMessage systemMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage setSystemMessage(GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage systemMessage) { + this.systemMessage = systemMessage; + return this; + } + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage getUserMessage() { + return userMessage; + } + + /** + * A message from the user that is interacting with the system. + * @param userMessage userMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage setUserMessage(GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage userMessage) { + this.userMessage = userMessage; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage.java new file mode 100644 index 00000000000..f6b2582bd6a --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage.java @@ -0,0 +1,116 @@ +/* + * 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 from the system in response to the user. This message can also be a message from the + * user as historical context for multiturn conversations with the system. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage extends com.google.api.client.json.GenericJson { + + /** + * Chart spec from LLM + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * Raw SQL from LLM, before templatization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * A direct natural language response to the user message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput textOutput; + + /** + * Chart spec from LLM + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * Chart spec from LLM + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * Raw SQL from LLM, before templatization + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * Raw SQL from LLM, before templatization + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * A direct natural language response to the user message. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput getTextOutput() { + return textOutput; + } + + /** + * A direct natural language response to the user message. + * @param textOutput textOutput or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage setTextOutput(GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput textOutput) { + this.textOutput = textOutput; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput.java new file mode 100644 index 00000000000..5753366db98 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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 text output message from the system. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The parts of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List texts; + + /** + * The type of the text message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * The parts of the message. + * @return value or {@code null} for none + */ + public java.util.List getTexts() { + return texts; + } + + /** + * The parts of the message. + * @param texts texts or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput setTexts(java.util.List texts) { + this.texts = texts; + return this; + } + + /** + * The type of the text message. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * The type of the text message. + * @param type type or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageSystemMessageTextOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage.java new file mode 100644 index 00000000000..71c5b3afee1 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage.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; + +/** + * The user 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 GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage extends com.google.api.client.json.GenericJson { + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * A message from the user that is interacting with the system. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsChartConversationMessageUserMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata.java new file mode 100644 index 00000000000..171f63ac70f --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata.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; + +/** + * The metadata for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata extends com.google.api.client.json.GenericJson { + + /** + * The error message when the generative insights request fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorMessages; + + /** + * The error message when the generative insights request fails. + * @return value or {@code null} for none + */ + public java.util.List getErrorMessages() { + return errorMessages; + } + + /** + * The error message when the generative insights request fails. + * @param errorMessages errorMessages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata setErrorMessages(java.util.List errorMessages) { + this.errorMessages = errorMessages; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest.java new file mode 100644 index 00000000000..5fff9f3f571 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest.java @@ -0,0 +1,295 @@ +/* + * 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; + +/** + * The request for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest extends com.google.api.client.json.GenericJson { + + /** + * The full name of the chart resource this request corresponds to. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chart; + + /** + * Optional. Filter for the data that can be specified in addition to the natural language query. + * This `filter` is specifically used for charts where comparisons are possible. For example, + * "compare to last month" or "compare to previous quarter". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String comparisonFilter; + + /** + * Filter for the data that can be specified in addition to the natural language query. Users are + * encouraged to use this field to populate time-windows. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * The natural language query specified by the user. If this field is specified, `sql_query` will + * be ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String naturalLanguageQuery; + + /** + * Optional. The revision id that maps to the state of the chart state revision. When specified, + * the backend will reload the chart with the sql and visual spec from that revision. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String revisionId; + + /** + * Optional. The session id of the conversation. If the session id is not specified, backend will + * generate a random session id. If the session id is specified, will associate user-provided + * user_query with the provided session id. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** + * Optional. For charts with comparison, this key will determine the metric that will be compared + * between the current and another dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sqlComparisonKey; + + /** + * Optional. The SQL query specified by the user. This query must be in BigQuery SQL dialect. The + * `filter` field will also be ignored, as it is assumed that any filtering is already included in + * the SQL query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sqlQuery; + + /** + * Optional. The user provided chart spec for the chart. This will be used to override the visual + * spec generated by the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map userProvidedChartSpec; + + /** + * The full name of the chart resource this request corresponds to. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @return value or {@code null} for none + */ + public java.lang.String getChart() { + return chart; + } + + /** + * The full name of the chart resource this request corresponds to. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @param chart chart or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setChart(java.lang.String chart) { + this.chart = chart; + return this; + } + + /** + * Optional. Filter for the data that can be specified in addition to the natural language query. + * This `filter` is specifically used for charts where comparisons are possible. For example, + * "compare to last month" or "compare to previous quarter". + * @return value or {@code null} for none + */ + public java.lang.String getComparisonFilter() { + return comparisonFilter; + } + + /** + * Optional. Filter for the data that can be specified in addition to the natural language query. + * This `filter` is specifically used for charts where comparisons are possible. For example, + * "compare to last month" or "compare to previous quarter". + * @param comparisonFilter comparisonFilter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setComparisonFilter(java.lang.String comparisonFilter) { + this.comparisonFilter = comparisonFilter; + return this; + } + + /** + * Filter for the data that can be specified in addition to the natural language query. Users are + * encouraged to use this field to populate time-windows. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter for the data that can be specified in addition to the natural language query. Users are + * encouraged to use this field to populate time-windows. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * The natural language query specified by the user. If this field is specified, `sql_query` will + * be ignored. + * @return value or {@code null} for none + */ + public java.lang.String getNaturalLanguageQuery() { + return naturalLanguageQuery; + } + + /** + * The natural language query specified by the user. If this field is specified, `sql_query` will + * be ignored. + * @param naturalLanguageQuery naturalLanguageQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setNaturalLanguageQuery(java.lang.String naturalLanguageQuery) { + this.naturalLanguageQuery = naturalLanguageQuery; + return this; + } + + /** + * Optional. The revision id that maps to the state of the chart state revision. When specified, + * the backend will reload the chart with the sql and visual spec from that revision. + * @return value or {@code null} for none + */ + public java.lang.String getRevisionId() { + return revisionId; + } + + /** + * Optional. The revision id that maps to the state of the chart state revision. When specified, + * the backend will reload the chart with the sql and visual spec from that revision. + * @param revisionId revisionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setRevisionId(java.lang.String revisionId) { + this.revisionId = revisionId; + return this; + } + + /** + * Optional. The session id of the conversation. If the session id is not specified, backend will + * generate a random session id. If the session id is specified, will associate user-provided + * user_query with the provided session id. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Optional. The session id of the conversation. If the session id is not specified, backend will + * generate a random session id. If the session id is specified, will associate user-provided + * user_query with the provided session id. + * @param sessionId sessionId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + /** + * Optional. For charts with comparison, this key will determine the metric that will be compared + * between the current and another dataset. + * @return value or {@code null} for none + */ + public java.lang.String getSqlComparisonKey() { + return sqlComparisonKey; + } + + /** + * Optional. For charts with comparison, this key will determine the metric that will be compared + * between the current and another dataset. + * @param sqlComparisonKey sqlComparisonKey or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setSqlComparisonKey(java.lang.String sqlComparisonKey) { + this.sqlComparisonKey = sqlComparisonKey; + return this; + } + + /** + * Optional. The SQL query specified by the user. This query must be in BigQuery SQL dialect. The + * `filter` field will also be ignored, as it is assumed that any filtering is already included in + * the SQL query. + * @return value or {@code null} for none + */ + public java.lang.String getSqlQuery() { + return sqlQuery; + } + + /** + * Optional. The SQL query specified by the user. This query must be in BigQuery SQL dialect. The + * `filter` field will also be ignored, as it is assumed that any filtering is already included in + * the SQL query. + * @param sqlQuery sqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setSqlQuery(java.lang.String sqlQuery) { + this.sqlQuery = sqlQuery; + return this; + } + + /** + * Optional. The user provided chart spec for the chart. This will be used to override the visual + * spec generated by the LLM. + * @return value or {@code null} for none + */ + public java.util.Map getUserProvidedChartSpec() { + return userProvidedChartSpec; + } + + /** + * Optional. The user provided chart spec for the chart. This will be used to override the visual + * spec generated by the LLM. + * @param userProvidedChartSpec userProvidedChartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest setUserProvidedChartSpec(java.util.Map userProvidedChartSpec) { + this.userProvidedChartSpec = userProvidedChartSpec; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse.java new file mode 100644 index 00000000000..879358cc511 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * The response for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse extends com.google.api.client.json.GenericJson { + + /** + * The full list of generative responses. Each response is ordered by time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List generativeResponses; + + /** + * The transcript of the generative insights conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript transcript; + + /** + * The full list of generative responses. Each response is ordered by time. + * @return value or {@code null} for none + */ + public java.util.List getGenerativeResponses() { + return generativeResponses; + } + + /** + * The full list of generative responses. Each response is ordered by time. + * @param generativeResponses generativeResponses or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse setGenerativeResponses(java.util.List generativeResponses) { + this.generativeResponses = generativeResponses; + return this; + } + + /** + * The transcript of the generative insights conversation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript getTranscript() { + return transcript; + } + + /** + * The transcript of the generative insights conversation. + * @param transcript transcript or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse setTranscript(GoogleCloudContactcenterinsightsV1GenerativeInsightConversationTranscript transcript) { + this.transcript = transcript; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse.java new file mode 100644 index 00000000000..4a9b5aff6f2 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse.java @@ -0,0 +1,154 @@ +/* + * 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; + +/** + * Wrapper for storing the generative response for a chart. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse extends com.google.api.client.json.GenericJson { + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput textMessage; + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textOutput; + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput getTextMessage() { + return textMessage; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @param textMessage textMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse setTextMessage(GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput textMessage) { + this.textMessage = textMessage; + return this; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @return value or {@code null} for none + */ + public java.lang.String getTextOutput() { + return textOutput; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @param textOutput textOutput or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse setTextOutput(java.lang.String textOutput) { + this.textOutput = textOutput; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput.java new file mode 100644 index 00000000000..055d1aa67ba --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Wrapper for text output. + * + *

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 GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The text output from the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List text; + + /** + * The type of text output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textType; + + /** + * The text output from the LLM. + * @return value or {@code null} for none + */ + public java.util.List getText() { + return text; + } + + /** + * The text output from the LLM. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput setText(java.util.List text) { + this.text = text; + return this; + } + + /** + * The type of text output. + * @return value or {@code null} for none + */ + public java.lang.String getTextType() { + return textType; + } + + /** + * The type of text output. + * @param textType textType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput setTextType(java.lang.String textType) { + this.textType = textType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1GenerativeInsightsResponseGenerativeResponseTextOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListChartsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListChartsResponse.java new file mode 100644 index 00000000000..bfea145f6de --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListChartsResponse.java @@ -0,0 +1,103 @@ +/* + * 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; + +/** + * The response of listing charts. + * + *

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 GoogleCloudContactcenterinsightsV1ListChartsResponse extends com.google.api.client.json.GenericJson { + + /** + * The charts under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List charts; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1Chart 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(GoogleCloudContactcenterinsightsV1Chart.class); + } + + /** + * The value returned by the last `ListChartsResponse`. This value indicates that this is a + * continuation of a prior `ListCharts` call and that the system should return the next page of + * data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The charts under the parent. + * @return value or {@code null} for none + */ + public java.util.List getCharts() { + return charts; + } + + /** + * The charts under the parent. + * @param charts charts or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListChartsResponse setCharts(java.util.List charts) { + this.charts = charts; + return this; + } + + /** + * The value returned by the last `ListChartsResponse`. This value indicates that this is a + * continuation of a prior `ListCharts` call and that the system should return the next page of + * data. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The value returned by the last `ListChartsResponse`. This value indicates that this is a + * continuation of a prior `ListCharts` call and that the system should return the next page of + * data. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListChartsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListChartsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListChartsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListChartsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListChartsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListDashboardsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListDashboardsResponse.java new file mode 100644 index 00000000000..0bd17bb4ead --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1ListDashboardsResponse.java @@ -0,0 +1,103 @@ +/* + * 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; + +/** + * The response of listing dashboards. + * + *

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 GoogleCloudContactcenterinsightsV1ListDashboardsResponse extends com.google.api.client.json.GenericJson { + + /** + * The dashboards under the parent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dashboards; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1Dashboard 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(GoogleCloudContactcenterinsightsV1Dashboard.class); + } + + /** + * The value returned by the last `ListDashboardsResponse`. This value indicates that this is a + * continuation of a prior `ListDashboards` call and that the system should return the next page + * of data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The dashboards under the parent. + * @return value or {@code null} for none + */ + public java.util.List getDashboards() { + return dashboards; + } + + /** + * The dashboards under the parent. + * @param dashboards dashboards or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListDashboardsResponse setDashboards(java.util.List dashboards) { + this.dashboards = dashboards; + return this; + } + + /** + * The value returned by the last `ListDashboardsResponse`. This value indicates that this is a + * continuation of a prior `ListDashboards` call and that the system should return the next page + * of data. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The value returned by the last `ListDashboardsResponse`. This value indicates that this is a + * continuation of a prior `ListDashboards` call and that the system should return the next page + * of data. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1ListDashboardsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1ListDashboardsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1ListDashboardsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1ListDashboardsResponse clone() { + return (GoogleCloudContactcenterinsightsV1ListDashboardsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetrics.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetrics.java new file mode 100644 index 00000000000..05eb0e36ec6 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1QueryMetrics.java @@ -0,0 +1,64 @@ +/* + * 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 data that use the existing QueryMetrics. + * + *

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 GoogleCloudContactcenterinsightsV1QueryMetrics extends com.google.api.client.json.GenericJson { + + /** + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map request; + + /** + * @return value or {@code null} for none + */ + public java.util.Map getRequest() { + return request; + } + + /** + * @param request request or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1QueryMetrics setRequest(java.util.Map request) { + this.request = request; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetrics set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1QueryMetrics) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1QueryMetrics clone() { + return (GoogleCloudContactcenterinsightsV1QueryMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Widget.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Widget.java new file mode 100644 index 00000000000..8d05da32dac --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1Widget.java @@ -0,0 +1,142 @@ +/* + * 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 dashboard element, could be a nested Container or Chart. + * + *

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 GoogleCloudContactcenterinsightsV1Widget extends com.google.api.client.json.GenericJson { + + /** + * A chart widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1Chart chart; + + /** + * A reference to a chart widget. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chartReference; + + /** + * A container widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1Container container; + + /** + * Filter applied to all charts in the container. Should support scope later. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * A chart widget. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Chart getChart() { + return chart; + } + + /** + * A chart widget. + * @param chart chart or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Widget setChart(GoogleCloudContactcenterinsightsV1Chart chart) { + this.chart = chart; + return this; + } + + /** + * A reference to a chart widget. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @return value or {@code null} for none + */ + public java.lang.String getChartReference() { + return chartReference; + } + + /** + * A reference to a chart widget. Format: + * projects/{project}/locations/{location}/dashboards/{dashboard}/charts/{chart} + * @param chartReference chartReference or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Widget setChartReference(java.lang.String chartReference) { + this.chartReference = chartReference; + return this; + } + + /** + * A container widget. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Container getContainer() { + return container; + } + + /** + * A container widget. + * @param container container or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Widget setContainer(GoogleCloudContactcenterinsightsV1Container container) { + this.container = container; + return this; + } + + /** + * Filter applied to all charts in the container. Should support scope later. + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Filter applied to all charts in the container. Should support scope later. + * @param filter filter or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1Widget setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1Widget set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1Widget) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1Widget clone() { + return (GoogleCloudContactcenterinsightsV1Widget) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript.java new file mode 100644 index 00000000000..864f23beb4c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript.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; + +/** + * The conversation transcript for the chart. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript extends com.google.api.client.json.GenericJson { + + /** + * The conversation id of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationId; + + /** + * Output only. The create time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Ordered list of messages, including user inputs and system responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Output only. The update time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * The conversation id of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getConversationId() { + return conversationId; + } + + /** + * The conversation id of the chart. + * @param conversationId conversationId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript setConversationId(java.lang.String conversationId) { + this.conversationId = conversationId; + return this; + } + + /** + * Output only. The create time of the conversation. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The create time of the conversation. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @param messages messages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Output only. The update time of the conversation. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The update time of the conversation. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage.java new file mode 100644 index 00000000000..33d9bf340eb --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage.java @@ -0,0 +1,142 @@ +/* + * 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; + +/** + * The message in the conversation. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage extends com.google.api.client.json.GenericJson { + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * The message id of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String messageId; + + /** + * A wrapper for system messages per turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages systemMessageWrapper; + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage userMessage; + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * The message id of the message. + * @return value or {@code null} for none + */ + public java.lang.String getMessageId() { + return messageId; + } + + /** + * The message id of the message. + * @param messageId messageId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage setMessageId(java.lang.String messageId) { + this.messageId = messageId; + return this; + } + + /** + * A wrapper for system messages per turn. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages getSystemMessageWrapper() { + return systemMessageWrapper; + } + + /** + * A wrapper for system messages per turn. + * @param systemMessageWrapper systemMessageWrapper or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage setSystemMessageWrapper(GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages systemMessageWrapper) { + this.systemMessageWrapper = systemMessageWrapper; + return this; + } + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage getUserMessage() { + return userMessage; + } + + /** + * A message from the user that is interacting with the system. + * @param userMessage userMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage setUserMessage(GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage userMessage) { + this.userMessage = userMessage; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage.java new file mode 100644 index 00000000000..1d79025018b --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage.java @@ -0,0 +1,164 @@ +/* + * 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 from the system in response to the user. This message can also be a message from the + * user as historical context for multiturn conversations with the system. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage extends com.google.api.client.json.GenericJson { + + /** + * Chart spec from LLM + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * Raw SQL from LLM, before templatization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * A direct natural language response to the user message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput textMessage; + + /** + * Optional. User provided chart spec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map userProvidedChartSpec; + + /** + * Optional. User provided SQL query + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userProvidedSqlQuery; + + /** + * Chart spec from LLM + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * Chart spec from LLM + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * Raw SQL from LLM, before templatization + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * Raw SQL from LLM, before templatization + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * A direct natural language response to the user message. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput getTextMessage() { + return textMessage; + } + + /** + * A direct natural language response to the user message. + * @param textMessage textMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage setTextMessage(GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput textMessage) { + this.textMessage = textMessage; + return this; + } + + /** + * Optional. User provided chart spec + * @return value or {@code null} for none + */ + public java.util.Map getUserProvidedChartSpec() { + return userProvidedChartSpec; + } + + /** + * Optional. User provided chart spec + * @param userProvidedChartSpec userProvidedChartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage setUserProvidedChartSpec(java.util.Map userProvidedChartSpec) { + this.userProvidedChartSpec = userProvidedChartSpec; + return this; + } + + /** + * Optional. User provided SQL query + * @return value or {@code null} for none + */ + public java.lang.String getUserProvidedSqlQuery() { + return userProvidedSqlQuery; + } + + /** + * Optional. User provided SQL query + * @param userProvidedSqlQuery userProvidedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage setUserProvidedSqlQuery(java.lang.String userProvidedSqlQuery) { + this.userProvidedSqlQuery = userProvidedSqlQuery; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java new file mode 100644 index 00000000000..294f6034abe --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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 text output message from the system. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The parts of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List text; + + /** + * The type of the text message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textType; + + /** + * The parts of the message. + * @return value or {@code null} for none + */ + public java.util.List getText() { + return text; + } + + /** + * The parts of the message. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput setText(java.util.List text) { + this.text = text; + return this; + } + + /** + * The type of the text message. + * @return value or {@code null} for none + */ + public java.lang.String getTextType() { + return textType; + } + + /** + * The type of the text message. + * @param textType textType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput setTextType(java.lang.String textType) { + this.textType = textType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessageTextOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages.java new file mode 100644 index 00000000000..0b93d6e4a09 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages.java @@ -0,0 +1,73 @@ +/* + * 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 wrapper for system messages per turn. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages extends com.google.api.client.json.GenericJson { + + /** + * A message from the system in response to the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemMessages; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage 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(GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessage.class); + } + + /** + * A message from the system in response to the user. + * @return value or {@code null} for none + */ + public java.util.List getSystemMessages() { + return systemMessages; + } + + /** + * A message from the system in response to the user. + * @param systemMessages systemMessages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages setSystemMessages(java.util.List systemMessages) { + this.systemMessages = systemMessages; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageSystemMessages) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage.java new file mode 100644 index 00000000000..5cdcfbd23e2 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage.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; + +/** + * The user 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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage extends com.google.api.client.json.GenericJson { + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * A message from the user that is interacting with the system. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscriptMessageUserMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata.java new file mode 100644 index 00000000000..ab0185ab3ea --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata.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; + +/** + * The metadata for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata extends com.google.api.client.json.GenericJson { + + /** + * The error message when the generative insights request fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorMessages; + + /** + * The error message when the generative insights request fails. + * @return value or {@code null} for none + */ + public java.util.List getErrorMessages() { + return errorMessages; + } + + /** + * The error message when the generative insights request fails. + * @param errorMessages errorMessages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata setErrorMessages(java.util.List errorMessages) { + this.errorMessages = errorMessages; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse.java new file mode 100644 index 00000000000..199cf0acd2e --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * The response for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse extends com.google.api.client.json.GenericJson { + + /** + * The full list of generative responses. Each response is ordered by time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List generativeResponses; + + /** + * The transcript of the generative insights conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript transcript; + + /** + * The full list of generative responses. Each response is ordered by time. + * @return value or {@code null} for none + */ + public java.util.List getGenerativeResponses() { + return generativeResponses; + } + + /** + * The full list of generative responses. Each response is ordered by time. + * @param generativeResponses generativeResponses or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse setGenerativeResponses(java.util.List generativeResponses) { + this.generativeResponses = generativeResponses; + return this; + } + + /** + * The transcript of the generative insights conversation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript getTranscript() { + return transcript; + } + + /** + * The transcript of the generative insights conversation. + * @param transcript transcript or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse setTranscript(GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightConversationTranscript transcript) { + this.transcript = transcript; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse.java new file mode 100644 index 00000000000..4e30dbf9db0 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse.java @@ -0,0 +1,154 @@ +/* + * 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; + +/** + * Wrapper for storing the generative response for a chart. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse extends com.google.api.client.json.GenericJson { + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput textMessage; + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textOutput; + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput getTextMessage() { + return textMessage; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @param textMessage textMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse setTextMessage(GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput textMessage) { + this.textMessage = textMessage; + return this; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @return value or {@code null} for none + */ + public java.lang.String getTextOutput() { + return textOutput; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @param textOutput textOutput or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse setTextOutput(java.lang.String textOutput) { + this.textOutput = textOutput; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput.java new file mode 100644 index 00000000000..2561d496214 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Wrapper for text output. + * + *

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 GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The text output from the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List text; + + /** + * The type of text output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textType; + + /** + * The text output from the LLM. + * @return value or {@code null} for none + */ + public java.util.List getText() { + return text; + } + + /** + * The text output from the LLM. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput setText(java.util.List text) { + this.text = text; + return this; + } + + /** + * The type of text output. + * @return value or {@code null} for none + */ + public java.lang.String getTextType() { + return textType; + } + + /** + * The type of text output. + * @param textType textType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput setTextType(java.lang.String textType) { + this.textType = textType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1alpha1GenerativeInsightsResponseGenerativeResponseTextOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript.java new file mode 100644 index 00000000000..5ca906d1bf3 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript.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; + +/** + * The conversation transcript for the chart. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript extends com.google.api.client.json.GenericJson { + + /** + * The conversation id of the chart. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversationId; + + /** + * Output only. The create time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Ordered list of messages, including user inputs and system responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Output only. The update time of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * The conversation id of the chart. + * @return value or {@code null} for none + */ + public java.lang.String getConversationId() { + return conversationId; + } + + /** + * The conversation id of the chart. + * @param conversationId conversationId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript setConversationId(java.lang.String conversationId) { + this.conversationId = conversationId; + return this; + } + + /** + * Output only. The create time of the conversation. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The create time of the conversation. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Ordered list of messages, including user inputs and system responses. + * @param messages messages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Output only. The update time of the conversation. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. The update time of the conversation. + * @param updateTime updateTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage.java new file mode 100644 index 00000000000..5ec649d70bf --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage.java @@ -0,0 +1,142 @@ +/* + * 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; + +/** + * The message in the conversation. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage extends com.google.api.client.json.GenericJson { + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * The message id of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String messageId; + + /** + * A wrapper for system messages per turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages systemMessageWrapper; + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage userMessage; + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. For user messages, this is the time at which the system received the message. For + * system messages, this is the time at which the system generated the message. + * @param createTime createTime or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * The message id of the message. + * @return value or {@code null} for none + */ + public java.lang.String getMessageId() { + return messageId; + } + + /** + * The message id of the message. + * @param messageId messageId or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage setMessageId(java.lang.String messageId) { + this.messageId = messageId; + return this; + } + + /** + * A wrapper for system messages per turn. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages getSystemMessageWrapper() { + return systemMessageWrapper; + } + + /** + * A wrapper for system messages per turn. + * @param systemMessageWrapper systemMessageWrapper or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage setSystemMessageWrapper(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages systemMessageWrapper) { + this.systemMessageWrapper = systemMessageWrapper; + return this; + } + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage getUserMessage() { + return userMessage; + } + + /** + * A message from the user that is interacting with the system. + * @param userMessage userMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage setUserMessage(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage userMessage) { + this.userMessage = userMessage; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage.java new file mode 100644 index 00000000000..0a8304af7a3 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage.java @@ -0,0 +1,164 @@ +/* + * 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 from the system in response to the user. This message can also be a message from the + * user as historical context for multiturn conversations with the system. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage extends com.google.api.client.json.GenericJson { + + /** + * Chart spec from LLM + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * Raw SQL from LLM, before templatization + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * A direct natural language response to the user message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput textMessage; + + /** + * Optional. User provided chart spec + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map userProvidedChartSpec; + + /** + * Optional. User provided SQL query + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userProvidedSqlQuery; + + /** + * Chart spec from LLM + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * Chart spec from LLM + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * Raw SQL from LLM, before templatization + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * Raw SQL from LLM, before templatization + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * A direct natural language response to the user message. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput getTextMessage() { + return textMessage; + } + + /** + * A direct natural language response to the user message. + * @param textMessage textMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage setTextMessage(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput textMessage) { + this.textMessage = textMessage; + return this; + } + + /** + * Optional. User provided chart spec + * @return value or {@code null} for none + */ + public java.util.Map getUserProvidedChartSpec() { + return userProvidedChartSpec; + } + + /** + * Optional. User provided chart spec + * @param userProvidedChartSpec userProvidedChartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage setUserProvidedChartSpec(java.util.Map userProvidedChartSpec) { + this.userProvidedChartSpec = userProvidedChartSpec; + return this; + } + + /** + * Optional. User provided SQL query + * @return value or {@code null} for none + */ + public java.lang.String getUserProvidedSqlQuery() { + return userProvidedSqlQuery; + } + + /** + * Optional. User provided SQL query + * @param userProvidedSqlQuery userProvidedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage setUserProvidedSqlQuery(java.lang.String userProvidedSqlQuery) { + this.userProvidedSqlQuery = userProvidedSqlQuery; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java new file mode 100644 index 00000000000..74754c4c5eb --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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 text output message from the system. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The parts of the message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List text; + + /** + * The type of the text message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textType; + + /** + * The parts of the message. + * @return value or {@code null} for none + */ + public java.util.List getText() { + return text; + } + + /** + * The parts of the message. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput setText(java.util.List text) { + this.text = text; + return this; + } + + /** + * The type of the text message. + * @return value or {@code null} for none + */ + public java.lang.String getTextType() { + return textType; + } + + /** + * The type of the text message. + * @param textType textType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput setTextType(java.lang.String textType) { + this.textType = textType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessageTextOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages.java new file mode 100644 index 00000000000..263268baeec --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages.java @@ -0,0 +1,73 @@ +/* + * 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 wrapper for system messages per turn. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages extends com.google.api.client.json.GenericJson { + + /** + * A message from the system in response to the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List systemMessages; + + static { + // hack to force ProGuard to consider GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage 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(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessage.class); + } + + /** + * A message from the system in response to the user. + * @return value or {@code null} for none + */ + public java.util.List getSystemMessages() { + return systemMessages; + } + + /** + * A message from the system in response to the user. + * @param systemMessages systemMessages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages setSystemMessages(java.util.List systemMessages) { + this.systemMessages = systemMessages; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageSystemMessages) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage.java new file mode 100644 index 00000000000..688390d5be8 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage.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; + +/** + * The user 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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage extends com.google.api.client.json.GenericJson { + + /** + * A message from the user that is interacting with the system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * A message from the user that is interacting with the system. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * A message from the user that is interacting with the system. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscriptMessageUserMessage) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata.java new file mode 100644 index 00000000000..7c80d0c94da --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata.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; + +/** + * The metadata for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata extends com.google.api.client.json.GenericJson { + + /** + * The error message when the generative insights request fails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorMessages; + + /** + * The error message when the generative insights request fails. + * @return value or {@code null} for none + */ + public java.util.List getErrorMessages() { + return errorMessages; + } + + /** + * The error message when the generative insights request fails. + * @param errorMessages errorMessages or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata setErrorMessages(java.util.List errorMessages) { + this.errorMessages = errorMessages; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse.java new file mode 100644 index 00000000000..954f26f0345 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * The response for generative insights. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse extends com.google.api.client.json.GenericJson { + + /** + * The full list of generative responses. Each response is ordered by time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List generativeResponses; + + /** + * The transcript of the generative insights conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript transcript; + + /** + * The full list of generative responses. Each response is ordered by time. + * @return value or {@code null} for none + */ + public java.util.List getGenerativeResponses() { + return generativeResponses; + } + + /** + * The full list of generative responses. Each response is ordered by time. + * @param generativeResponses generativeResponses or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse setGenerativeResponses(java.util.List generativeResponses) { + this.generativeResponses = generativeResponses; + return this; + } + + /** + * The transcript of the generative insights conversation. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript getTranscript() { + return transcript; + } + + /** + * The transcript of the generative insights conversation. + * @param transcript transcript or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse setTranscript(GoogleCloudContactcenterinsightsV1mainGenerativeInsightConversationTranscript transcript) { + this.transcript = transcript; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse.java new file mode 100644 index 00000000000..9fa030aea39 --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse.java @@ -0,0 +1,154 @@ +/* + * 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; + +/** + * Wrapper for storing the generative response for a chart. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse extends com.google.api.client.json.GenericJson { + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map chartSpec; + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSqlQuery; + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput textMessage; + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textOutput; + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * @return value or {@code null} for none + */ + public java.util.Map getChartSpec() { + return chartSpec; + } + + /** + * The chart spec for the data. This will be specified in the vega-lite or vega format. + * @param chartSpec chartSpec or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse setChartSpec(java.util.Map chartSpec) { + this.chartSpec = chartSpec; + return this; + } + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSqlQuery() { + return generatedSqlQuery; + } + + /** + * The generated SQL query from the LLM. Will be populated during the chart building phase. The + * generated SQL will be cached in the corresponding chart resource. + * @param generatedSqlQuery generatedSqlQuery or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse setGeneratedSqlQuery(java.lang.String generatedSqlQuery) { + this.generatedSqlQuery = generatedSqlQuery; + return this; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @return value or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput getTextMessage() { + return textMessage; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @param textMessage textMessage or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse setTextMessage(GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput textMessage) { + this.textMessage = textMessage; + return this; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @return value or {@code null} for none + */ + public java.lang.String getTextOutput() { + return textOutput; + } + + /** + * The text output from the LLM. Will be populated during the chart building phase. For a reloaded + * chart, this will NOT be populated. May contain THOUGHT or a FINAL response or some in-progress + * response. + * @param textOutput textOutput or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse setTextOutput(java.lang.String textOutput) { + this.textOutput = textOutput; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput.java b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput.java new file mode 100644 index 00000000000..12ad9102e9c --- /dev/null +++ b/clients/google-api-services-contactcenterinsights/v1/2.0.0/com/google/api/services/contactcenterinsights/v1/model/GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput.java @@ -0,0 +1,91 @@ +/* + * 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; + +/** + * Wrapper for text output. + * + *

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 GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput extends com.google.api.client.json.GenericJson { + + /** + * The text output from the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List text; + + /** + * The type of text output. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String textType; + + /** + * The text output from the LLM. + * @return value or {@code null} for none + */ + public java.util.List getText() { + return text; + } + + /** + * The text output from the LLM. + * @param text text or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput setText(java.util.List text) { + this.text = text; + return this; + } + + /** + * The type of text output. + * @return value or {@code null} for none + */ + public java.lang.String getTextType() { + return textType; + } + + /** + * The type of text output. + * @param textType textType or {@code null} for none + */ + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput setTextType(java.lang.String textType) { + this.textType = textType; + return this; + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput set(String fieldName, Object value) { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput) super.set(fieldName, value); + } + + @Override + public GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput clone() { + return (GoogleCloudContactcenterinsightsV1mainGenerativeInsightsResponseGenerativeResponseTextOutput) 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 6e4d6c38903..46eadcead3d 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-rev20260121-2.0.0 - Contact Center AI Insights API v1-rev20260121-2.0.0 + v1-rev20260202-2.0.0 + Contact Center AI Insights API v1-rev20260202-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 026191cd4de..0a62bf71ef4 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-rev20260121-2.0.0 + v1-rev20260202-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260121-2.0.0' + implementation 'com.google.apis:google-api-services-contactcenterinsights:v1-rev20260202-2.0.0' } ```