diff --git a/clients/google-api-services-ces/v1/2.0.0/README.md b/clients/google-api-services-ces/v1/2.0.0/README.md new file mode 100644 index 00000000000..7e3a8629e7c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/README.md @@ -0,0 +1,44 @@ +# Gemini Enterprise for Customer Experience API Client Library for Java + + + +This page contains information about getting started with the Gemini Enterprise for Customer Experience API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Gemini Enterprise for Customer Experience API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Gemini Enterprise for Customer Experience API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ces + v1-rev20260204-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ces:v1-rev20260204-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ces/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ces/v1/ diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java new file mode 100644 index 00000000000..20ff1e6fc8e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuite.java @@ -0,0 +1,10433 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1; + +/** + * Service definition for CustomerEngagementSuite (v1). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link CustomerEngagementSuiteRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CustomerEngagementSuite extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Gemini Enterprise for Customer Experience API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://ces.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://ces.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

+ * Use {@link Builder} if you need to specify any of the optional parameters. + *

+ * + * @param transport HTTP transport, which should normally be: + * + * @param jsonFactory JSON factory, which may be: + * + * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public CustomerEngagementSuite(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + CustomerEngagementSuite(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+   *   {@code CustomerEngagementSuite.Projects.List request = ces.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+     *   {@code CustomerEngagementSuite.Locations.List request = ces.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the ces 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 Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Location.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/[^/]+$"); + } + } + + @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); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the ces 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 name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListLocationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + otherwise. This is primarily for internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Apps collection. + * + *

The typical use is:

+ *
+       *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+       *   {@code CustomerEngagementSuite.Apps.List request = ces.apps().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Apps apps() { + return new Apps(); + } + + /** + * The "apps" collection of methods. + */ + public class Apps { + + /** + * Creates a new app in the given project and location. + * + * Create a request for the method "apps.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the location to create an app in. + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.App content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/apps"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new app in the given project and location. + * + * Create a request for the method "apps.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the location to create an app in. + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.App content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.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 resource name of the location to create an app in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the location to create an app in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the location to create an app in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the app, which will become the final component of the app's + * resource name. If not provided, a unique ID will be automatically assigned for the app. + */ + @com.google.api.client.util.Key + private java.lang.String appId; + + /** Optional. The ID to use for the app, which will become the final component of the app's resource + name. If not provided, a unique ID will be automatically assigned for the app. + */ + public java.lang.String getAppId() { + return appId; + } + + /** + * Optional. The ID to use for the app, which will become the final component of the app's + * resource name. If not provided, a unique ID will be automatically assigned for the app. + */ + public Create setAppId(java.lang.String appId) { + this.appId = appId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified app. + * + * Create a request for the method "apps.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Deletes the specified app. + * + * Create a request for the method "apps.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the app. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the current + * etag of the app, deletion will be blocked and an ABORTED error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the app. If an etag is not provided, the deletion will overwrite any + concurrent changes. If an etag is provided and does not match the current etag of the app, deletion + will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the app. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the current + * etag of the app, deletion will be blocked and an ABORTED error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Executes the given tool with the given arguments. + * + * Create a request for the method "apps.executeTool". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ExecuteTool#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.ExecuteToolRequest} + * @return the request + */ + public ExecuteTool executeTool(java.lang.String parent, com.google.api.services.ces.v1.model.ExecuteToolRequest content) throws java.io.IOException { + ExecuteTool result = new ExecuteTool(parent, content); + initialize(result); + return result; + } + + public class ExecuteTool extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}:executeTool"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Executes the given tool with the given arguments. + * + * Create a request for the method "apps.executeTool". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ExecuteTool#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.ExecuteToolRequest} + * @since 1.13 + */ + protected ExecuteTool(java.lang.String parent, com.google.api.services.ces.v1.model.ExecuteToolRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.ExecuteToolResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ExecuteTool set$Xgafv(java.lang.String $Xgafv) { + return (ExecuteTool) super.set$Xgafv($Xgafv); + } + + @Override + public ExecuteTool setAccessToken(java.lang.String accessToken) { + return (ExecuteTool) super.setAccessToken(accessToken); + } + + @Override + public ExecuteTool setAlt(java.lang.String alt) { + return (ExecuteTool) super.setAlt(alt); + } + + @Override + public ExecuteTool setCallback(java.lang.String callback) { + return (ExecuteTool) super.setCallback(callback); + } + + @Override + public ExecuteTool setFields(java.lang.String fields) { + return (ExecuteTool) super.setFields(fields); + } + + @Override + public ExecuteTool setKey(java.lang.String key) { + return (ExecuteTool) super.setKey(key); + } + + @Override + public ExecuteTool setOauthToken(java.lang.String oauthToken) { + return (ExecuteTool) super.setOauthToken(oauthToken); + } + + @Override + public ExecuteTool setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExecuteTool) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExecuteTool setQuotaUser(java.lang.String quotaUser) { + return (ExecuteTool) super.setQuotaUser(quotaUser); + } + + @Override + public ExecuteTool setUploadType(java.lang.String uploadType) { + return (ExecuteTool) super.setUploadType(uploadType); + } + + @Override + public ExecuteTool setUploadProtocol(java.lang.String uploadProtocol) { + return (ExecuteTool) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app which the tool/toolset belongs to. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public ExecuteTool 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ExecuteTool set(String parameterName, Object value) { + return (ExecuteTool) super.set(parameterName, value); + } + } + /** + * Exports the specified app. + * + * Create a request for the method "apps.exportApp". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ExportApp#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to export. + * @param content the {@link com.google.api.services.ces.v1.model.ExportAppRequest} + * @return the request + */ + public ExportApp exportApp(java.lang.String name, com.google.api.services.ces.v1.model.ExportAppRequest content) throws java.io.IOException { + ExportApp result = new ExportApp(name, content); + initialize(result); + return result; + } + + public class ExportApp extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}:exportApp"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Exports the specified app. + * + * Create a request for the method "apps.exportApp". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ExportApp#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The resource name of the app to export. + * @param content the {@link com.google.api.services.ces.v1.model.ExportAppRequest} + * @since 1.13 + */ + protected ExportApp(java.lang.String name, com.google.api.services.ces.v1.model.ExportAppRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ExportApp set$Xgafv(java.lang.String $Xgafv) { + return (ExportApp) super.set$Xgafv($Xgafv); + } + + @Override + public ExportApp setAccessToken(java.lang.String accessToken) { + return (ExportApp) super.setAccessToken(accessToken); + } + + @Override + public ExportApp setAlt(java.lang.String alt) { + return (ExportApp) super.setAlt(alt); + } + + @Override + public ExportApp setCallback(java.lang.String callback) { + return (ExportApp) super.setCallback(callback); + } + + @Override + public ExportApp setFields(java.lang.String fields) { + return (ExportApp) super.setFields(fields); + } + + @Override + public ExportApp setKey(java.lang.String key) { + return (ExportApp) super.setKey(key); + } + + @Override + public ExportApp setOauthToken(java.lang.String oauthToken) { + return (ExportApp) super.setOauthToken(oauthToken); + } + + @Override + public ExportApp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExportApp) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExportApp setQuotaUser(java.lang.String quotaUser) { + return (ExportApp) super.setQuotaUser(quotaUser); + } + + @Override + public ExportApp setUploadType(java.lang.String uploadType) { + return (ExportApp) super.setUploadType(uploadType); + } + + @Override + public ExportApp setUploadProtocol(java.lang.String uploadProtocol) { + return (ExportApp) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to export. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to export. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to export. */ + public ExportApp 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ExportApp set(String parameterName, Object value) { + return (ExportApp) super.set(parameterName, value); + } + } + /** + * Gets details of the specified app. + * + * Create a request for the method "apps.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Gets details of the specified app. + * + * Create a request for the method "apps.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.App.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to retrieve. */ + 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports the specified app. + * + * Create a request for the method "apps.importApp". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ImportApp#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource name with the location of the app to import. + * @param content the {@link com.google.api.services.ces.v1.model.ImportAppRequest} + * @return the request + */ + public ImportApp importApp(java.lang.String parent, com.google.api.services.ces.v1.model.ImportAppRequest content) throws java.io.IOException { + ImportApp result = new ImportApp(parent, content); + initialize(result); + return result; + } + + public class ImportApp extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/apps:importApp"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Imports the specified app. + * + * Create a request for the method "apps.importApp". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ImportApp#execute()} method to invoke the remote operation.

+ * {@link + * ImportApp#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 name with the location of the app to import. + * @param content the {@link com.google.api.services.ces.v1.model.ImportAppRequest} + * @since 1.13 + */ + protected ImportApp(java.lang.String parent, com.google.api.services.ces.v1.model.ImportAppRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.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 ImportApp set$Xgafv(java.lang.String $Xgafv) { + return (ImportApp) super.set$Xgafv($Xgafv); + } + + @Override + public ImportApp setAccessToken(java.lang.String accessToken) { + return (ImportApp) super.setAccessToken(accessToken); + } + + @Override + public ImportApp setAlt(java.lang.String alt) { + return (ImportApp) super.setAlt(alt); + } + + @Override + public ImportApp setCallback(java.lang.String callback) { + return (ImportApp) super.setCallback(callback); + } + + @Override + public ImportApp setFields(java.lang.String fields) { + return (ImportApp) super.setFields(fields); + } + + @Override + public ImportApp setKey(java.lang.String key) { + return (ImportApp) super.setKey(key); + } + + @Override + public ImportApp setOauthToken(java.lang.String oauthToken) { + return (ImportApp) super.setOauthToken(oauthToken); + } + + @Override + public ImportApp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ImportApp) super.setPrettyPrint(prettyPrint); + } + + @Override + public ImportApp setQuotaUser(java.lang.String quotaUser) { + return (ImportApp) super.setQuotaUser(quotaUser); + } + + @Override + public ImportApp setUploadType(java.lang.String uploadType) { + return (ImportApp) super.setUploadType(uploadType); + } + + @Override + public ImportApp setUploadProtocol(java.lang.String uploadProtocol) { + return (ImportApp) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource name with the location of the app to import. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource name with the location of the app to import. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource name with the location of the app to import. */ + public ImportApp 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; + } + + @Override + public ImportApp set(String parameterName, Object value) { + return (ImportApp) super.set(parameterName, value); + } + } + /** + * Lists apps in the given project and location. + * + * Create a request for the method "apps.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the location to list apps from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/apps"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists apps in the given project and location. + * + * Create a request for the method "apps.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the location to list apps from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListAppsResponse.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 resource name of the location to list apps from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the location to list apps from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the location to list apps from. */ + 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. Filter to be applied when listing the apps. See https://google.aip.dev/160 + * for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 + * for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list AgentService.ListApps + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListApps call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list AgentService.ListApps + * call. + */ + 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 the specified app. + * + * Create a request for the method "apps.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.App content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Updates the specified app. + * + * Create a request for the method "apps.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.App} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.App content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.App.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/[^/]+/apps/[^/]+$"); + } + } + + @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. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the app. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + * Create a request for the method "apps.retrieveToolSchema". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RetrieveToolSchema#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest} + * @return the request + */ + public RetrieveToolSchema retrieveToolSchema(java.lang.String parent, com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest content) throws java.io.IOException { + RetrieveToolSchema result = new RetrieveToolSchema(parent, content); + initialize(result); + return result; + } + + public class RetrieveToolSchema extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}:retrieveToolSchema"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + * Create a request for the method "apps.retrieveToolSchema". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RetrieveToolSchema#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest} + * @since 1.13 + */ + protected RetrieveToolSchema(java.lang.String parent, com.google.api.services.ces.v1.model.RetrieveToolSchemaRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RetrieveToolSchemaResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public RetrieveToolSchema set$Xgafv(java.lang.String $Xgafv) { + return (RetrieveToolSchema) super.set$Xgafv($Xgafv); + } + + @Override + public RetrieveToolSchema setAccessToken(java.lang.String accessToken) { + return (RetrieveToolSchema) super.setAccessToken(accessToken); + } + + @Override + public RetrieveToolSchema setAlt(java.lang.String alt) { + return (RetrieveToolSchema) super.setAlt(alt); + } + + @Override + public RetrieveToolSchema setCallback(java.lang.String callback) { + return (RetrieveToolSchema) super.setCallback(callback); + } + + @Override + public RetrieveToolSchema setFields(java.lang.String fields) { + return (RetrieveToolSchema) super.setFields(fields); + } + + @Override + public RetrieveToolSchema setKey(java.lang.String key) { + return (RetrieveToolSchema) super.setKey(key); + } + + @Override + public RetrieveToolSchema setOauthToken(java.lang.String oauthToken) { + return (RetrieveToolSchema) super.setOauthToken(oauthToken); + } + + @Override + public RetrieveToolSchema setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RetrieveToolSchema) super.setPrettyPrint(prettyPrint); + } + + @Override + public RetrieveToolSchema setQuotaUser(java.lang.String quotaUser) { + return (RetrieveToolSchema) super.setQuotaUser(quotaUser); + } + + @Override + public RetrieveToolSchema setUploadType(java.lang.String uploadType) { + return (RetrieveToolSchema) super.setUploadType(uploadType); + } + + @Override + public RetrieveToolSchema setUploadProtocol(java.lang.String uploadProtocol) { + return (RetrieveToolSchema) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app which the tool/toolset belongs to. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public RetrieveToolSchema 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public RetrieveToolSchema set(String parameterName, Object value) { + return (RetrieveToolSchema) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Agents collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Agents.List request = ces.agents().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Agents agents() { + return new Agents(); + } + + /** + * The "agents" collection of methods. + */ + public class Agents { + + /** + * Creates a new agent in the given app. + * + * Create a request for the method "agents.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create an agent in. + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Agent content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/agents"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new agent in the given app. + * + * Create a request for the method "agents.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create an agent in. + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Agent content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Agent.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create an agent in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an agent in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an agent in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the agent, which will become the final component of the + * agent's resource name. If not provided, a unique ID will be automatically assigned + * for the agent. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** Optional. The ID to use for the agent, which will become the final component of the agent's + resource name. If not provided, a unique ID will be automatically assigned for the agent. + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * Optional. The ID to use for the agent, which will become the final component of the + * agent's resource name. If not provided, a unique ID will be automatically assigned + * for the agent. + */ + public Create setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified agent. + * + * Create a request for the method "agents.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the agent 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + + /** + * Deletes the specified agent. + * + * Create a request for the method "agents.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the agent to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @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 resource name of the agent to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the agent to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the agent 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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the agent. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the agent, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the agent. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the agent, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the agent. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the agent, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the agent, even if it is still + * referenced by other app/agents/examples. * If `force = false`, the deletion fails if + * other agents/examples reference it. * If `force = true`, delete the agent and remove + * it from all referencing apps/agents/examples. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the agent, even if it is still referenced by other + app/agents/examples. * If `force = false`, the deletion fails if other agents/examples reference + it. * If `force = true`, delete the agent and remove it from all referencing apps/agents/examples. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the agent, even if it is still + * referenced by other app/agents/examples. * If `force = false`, the deletion fails if + * other agents/examples reference it. * If `force = true`, delete the agent and remove + * it from all referencing apps/agents/examples. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified agent. + * + * Create a request for the method "agents.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the agent to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + + /** + * Gets details of the specified agent. + * + * Create a request for the method "agents.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the agent to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Agent.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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @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 resource name of the agent to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the agent to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the agent to retrieve. */ + 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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists agents in the given app. + * + * Create a request for the method "agents.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list agents from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/agents"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists agents in the given app. + * + * Create a request for the method "agents.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list agents from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListAgentsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list agents from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list agents from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list agents from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the agents. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the agents. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the agents. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAgents call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListAgents call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAgents call. + */ + 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 the specified agent. + * + * Create a request for the method "agents.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Agent content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + + /** + * Updates the specified agent. + * + * Create a request for the method "agents.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param content the {@link com.google.api.services.ces.v1.model.Agent} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Agent content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Agent.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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @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. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the agent. Format: + `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + 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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Changelogs collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Changelogs.List request = ces.changelogs().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Changelogs changelogs() { + return new Changelogs(); + } + + /** + * The "changelogs" collection of methods. + */ + public class Changelogs { + + /** + * Gets the specified changelog. + * + * Create a request for the method "changelogs.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the changelog to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + + /** + * Gets the specified changelog. + * + * Create a request for the method "changelogs.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the changelog to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Changelog.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/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + } + } + + @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 resource name of the changelog to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the changelog to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the changelog to retrieve. */ + 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/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the changelogs of the specified app. + * + * Create a request for the method "changelogs.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list changelogs from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/changelogs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists the changelogs of the specified app. + * + * Create a request for the method "changelogs.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list changelogs from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListChangelogsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list changelogs from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list changelogs from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list changelogs from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the changelogs. See + * https://google.aip.dev/160 for more details. The filter string can be used to filter + * by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` + * comparator can be used for case-insensitive partial matching on string fields, while + * `=` performs an exact case-sensitive match. Examples: * `action:update` (case- + * insensitive partial match) * `action="Create"` (case-sensitive exact match) * + * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * + * `create_time > "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND + * resource_type:tool` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the changelogs. See https://google.aip.dev/160 for more + details. The filter string can be used to filter by `action`, `resource_type`, `resource_name`, + `author`, and `create_time`. The `:` comparator can be used for case-insensitive partial matching + on string fields, while `=` performs an exact case-sensitive match. Examples: * `action:update` + (case-insensitive partial match) * `action="Create"` (case-sensitive exact match) * + `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * `create_time > + "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the changelogs. See + * https://google.aip.dev/160 for more details. The filter string can be used to filter + * by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` + * comparator can be used for case-insensitive partial matching on string fields, while + * `=` performs an exact case-sensitive match. Examples: * `action:update` (case- + * insensitive partial match) * `action="Create"` (case-sensitive exact match) * + * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * + * `create_time > "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND + * resource_type:tool` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListChangelogs call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListChangelogs call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListChangelogs call. + */ + 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); + } + } + + } + /** + * An accessor for creating requests from the Conversations collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Conversations.List request = ces.conversations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Conversations conversations() { + return new Conversations(); + } + + /** + * The "conversations" collection of methods. + */ + public class Conversations { + + /** + * Batch deletes the specified conversations. + * + * Create a request for the method "conversations.batchDelete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest} + * @return the request + */ + public BatchDelete batchDelete(java.lang.String parent, com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest content) throws java.io.IOException { + BatchDelete result = new BatchDelete(parent, content); + initialize(result); + return result; + } + + public class BatchDelete extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations:batchDelete"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Batch deletes the specified conversations. + * + * Create a request for the method "conversations.batchDelete". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest} + * @since 1.13 + */ + protected BatchDelete(java.lang.String parent, com.google.api.services.ces.v1.model.BatchDeleteConversationsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); + } + + @Override + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } + + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } + + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } + + @Override + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } + + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } + + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } + + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to delete conversations from. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public BatchDelete 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); + } + } + /** + * Deletes the specified conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the conversation 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + + /** + * Deletes the specified conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the conversation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @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 resource name of the conversation to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the conversation to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the conversation 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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by + default. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + public Delete setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the conversation to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + + /** + * Gets details of the specified conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the conversation to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Conversation.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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @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 resource name of the conversation to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the conversation to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the conversation to retrieve. */ + 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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all source will be + * searched. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, all source will be searched. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all source will be + * searched. + */ + public Get setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists conversations in the given app. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list conversations from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/conversations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists conversations in the given app. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list conversations from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListConversationsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list conversations from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list conversations from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list conversations from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the conversations. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the conversations. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the conversations. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListConversations call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListConversations + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListConversations call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by + default. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + public List setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Deployments collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Deployments.List request = ces.deployments().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Deployments deployments() { + return new Deployments(); + } + + /** + * The "deployments" collection of methods. + */ + public class Deployments { + + /** + * Creates a new deployment in the given app. + * + * Create a request for the method "deployments.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Deployment content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/deployments"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new deployment in the given app. + * + * Create a request for the method "deployments.create". + * + * This request holds the parameters needed by the the ces 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 app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Deployment content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Deployment.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the deployment, which will become the final component of + * the deployment's resource name. If not provided, a unique ID will be automatically + * assigned for the deployment. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentId; + + /** Optional. The ID to use for the deployment, which will become the final component of the + deployment's resource name. If not provided, a unique ID will be automatically assigned for the + deployment. + */ + public java.lang.String getDeploymentId() { + return deploymentId; + } + + /** + * Optional. The ID to use for the deployment, which will become the final component of + * the deployment's resource name. If not provided, a unique ID will be automatically + * assigned for the deployment. + */ + public Create setDeploymentId(java.lang.String deploymentId) { + this.deploymentId = deploymentId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified deployment. + * + * Create a request for the method "deployments.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + + /** + * Deletes the specified deployment. + * + * Create a request for the method "deployments.delete". + * + * This request holds the parameters needed by the the ces 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 deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @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 deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the deployment to delete. Format: + `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + 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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The etag of the deployment. If an etag is provided and does not match the + * current etag of the deployment, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the deployment. If an etag is provided and does not match the current etag of + the deployment, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag of the deployment. If an etag is provided and does not match the + * current etag of the deployment, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified deployment. + * + * Create a request for the method "deployments.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + + /** + * Gets details of the specified deployment. + * + * Create a request for the method "deployments.get". + * + * This request holds the parameters needed by the the ces 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 deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Deployment.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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @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 deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the deployment. Format: + `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + 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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists deployments in the given app. + * + * Create a request for the method "deployments.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/deployments"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists deployments in the given app. + * + * Create a request for the method "deployments.list". + * + * This request holds the parameters needed by the the ces 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 app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListDeploymentsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of deployments to return. The service may return fewer + * than this value. If unspecified, at most 50 deployments will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of deployments to return. The service may return fewer than this + value. If unspecified, at most 50 deployments will be returned. The maximum value is 1000; values + above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of deployments to return. The service may return fewer + * than this value. If unspecified, at most 50 deployments will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListDeployments` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeployments` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListDeployments` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `ListDeployments` must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListDeployments` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeployments` must match the call that provided the page token. + */ + 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 the specified deployment. + * + * Create a request for the method "deployments.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Deployment content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + + /** + * Updates the specified deployment. + * + * Create a request for the method "deployments.patch". + * + * This request holds the parameters needed by the the ces 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. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param content the {@link com.google.api.services.ces.v1.model.Deployment} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Deployment content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Deployment.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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @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. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the deployment. Format: + projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + 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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + 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 Examples collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Examples.List request = ces.examples().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Examples examples() { + return new Examples(); + } + + /** + * The "examples" collection of methods. + */ + public class Examples { + + /** + * Creates a new example in the given app. + * + * Create a request for the method "examples.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create an example in. + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Example content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/examples"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new example in the given app. + * + * Create a request for the method "examples.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create an example in. + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Example content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Example.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create an example in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an example in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an example in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the example, which will become the final component of the + * example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + */ + @com.google.api.client.util.Key + private java.lang.String exampleId; + + /** Optional. The ID to use for the example, which will become the final component of the example's + resource name. If not provided, a unique ID will be automatically assigned for the example. + */ + public java.lang.String getExampleId() { + return exampleId; + } + + /** + * Optional. The ID to use for the example, which will become the final component of the + * example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + */ + public Create setExampleId(java.lang.String exampleId) { + this.exampleId = exampleId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified example. + * + * Create a request for the method "examples.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the example 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + + /** + * Deletes the specified example. + * + * Create a request for the method "examples.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the example to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @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 resource name of the example to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the example to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the example 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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the example. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the example, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the example. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the example, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the example. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the example, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified example. + * + * Create a request for the method "examples.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the example to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + + /** + * Gets details of the specified example. + * + * Create a request for the method "examples.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the example to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Example.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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @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 resource name of the example to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the example to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the example to retrieve. */ + 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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists examples in the given app. + * + * Create a request for the method "examples.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list examples from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/examples"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists examples in the given app. + * + * Create a request for the method "examples.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list examples from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListExamplesResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list examples from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list examples from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list examples from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the examples. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the examples. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the examples. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListExamples call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListExamples call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListExamples call. + */ + 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 the specified example. + * + * Create a request for the method "examples.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Example content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + + /** + * Updates the specified example. + * + * Create a request for the method "examples.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param content the {@link com.google.api.services.ces.v1.model.Example} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Example content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Example.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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @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. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the example. Format: + `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + 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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Guardrails collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Guardrails.List request = ces.guardrails().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Guardrails guardrails() { + return new Guardrails(); + } + + /** + * The "guardrails" collection of methods. + */ + public class Guardrails { + + /** + * Creates a new guardrail in the given app. + * + * Create a request for the method "guardrails.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Guardrail content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/guardrails"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new guardrail in the given app. + * + * Create a request for the method "guardrails.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create a guardrail in. + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Guardrail content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Guardrail.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create a guardrail in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a guardrail in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a guardrail in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the guardrail, which will become the final component of + * the guardrail's resource name. If not provided, a unique ID will be automatically + * assigned for the guardrail. + */ + @com.google.api.client.util.Key + private java.lang.String guardrailId; + + /** Optional. The ID to use for the guardrail, which will become the final component of the guardrail's + resource name. If not provided, a unique ID will be automatically assigned for the guardrail. + */ + public java.lang.String getGuardrailId() { + return guardrailId; + } + + /** + * Optional. The ID to use for the guardrail, which will become the final component of + * the guardrail's resource name. If not provided, a unique ID will be automatically + * assigned for the guardrail. + */ + public Create setGuardrailId(java.lang.String guardrailId) { + this.guardrailId = guardrailId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified guardrail. + * + * Create a request for the method "guardrails.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the guardrail 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + + /** + * Deletes the specified guardrail. + * + * Create a request for the method "guardrails.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the guardrail to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @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 resource name of the guardrail to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the guardrail to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the guardrail 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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the guardrail. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the guardrail, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the guardrail. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + guardrail, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the guardrail. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the guardrail, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the guardrail, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents + * still reference the guardrail. * If `force = true`, all existing references from + * apps/agents will be removed and the guardrail will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the guardrail, even if it is still referenced by + app/agents. * If `force = false`, the deletion fails if any apps/agents still reference the + guardrail. * If `force = true`, all existing references from apps/agents will be removed and the + guardrail will be deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the guardrail, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents + * still reference the guardrail. * If `force = true`, all existing references from + * apps/agents will be removed and the guardrail will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified guardrail. + * + * Create a request for the method "guardrails.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the guardrail to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + + /** + * Gets details of the specified guardrail. + * + * Create a request for the method "guardrails.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the guardrail to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Guardrail.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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @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 resource name of the guardrail to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the guardrail to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the guardrail to retrieve. */ + 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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists guardrails in the given app. + * + * Create a request for the method "guardrails.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list guardrails from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/guardrails"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists guardrails in the given app. + * + * Create a request for the method "guardrails.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list guardrails from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListGuardrailsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list guardrails from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list guardrails from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list guardrails from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the guardrails. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the guardrails. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the guardrails. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListGuardrails call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListGuardrails call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListGuardrails call. + */ + 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 the specified guardrail. + * + * Create a request for the method "guardrails.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Guardrail content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + + /** + * Updates the specified guardrail. + * + * Create a request for the method "guardrails.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param content the {@link com.google.api.services.ces.v1.model.Guardrail} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Guardrail content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Guardrail.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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @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. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the guardrail. Format: + `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + 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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Sessions collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Sessions.List request = ces.sessions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Sessions sessions() { + return new Sessions(); + } + + /** + * The "sessions" collection of methods. + */ + public class Sessions { + + /** + * Generates a session scoped token for chat widget to authenticate with Session APIs. + * + * Create a request for the method "sessions.generateChatToken". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link GenerateChatToken#execute()} method to invoke the remote operation. + * + * @param name Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + * @param content the {@link com.google.api.services.ces.v1.model.GenerateChatTokenRequest} + * @return the request + */ + public GenerateChatToken generateChatToken(java.lang.String name, com.google.api.services.ces.v1.model.GenerateChatTokenRequest content) throws java.io.IOException { + GenerateChatToken result = new GenerateChatToken(name, content); + initialize(result); + return result; + } + + public class GenerateChatToken extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}:generateChatToken"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + + /** + * Generates a session scoped token for chat widget to authenticate with Session APIs. + * + * Create a request for the method "sessions.generateChatToken". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link GenerateChatToken#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + * @param content the {@link com.google.api.services.ces.v1.model.GenerateChatTokenRequest} + * @since 1.13 + */ + protected GenerateChatToken(java.lang.String name, com.google.api.services.ces.v1.model.GenerateChatTokenRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.GenerateChatTokenResponse.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/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public GenerateChatToken set$Xgafv(java.lang.String $Xgafv) { + return (GenerateChatToken) super.set$Xgafv($Xgafv); + } + + @Override + public GenerateChatToken setAccessToken(java.lang.String accessToken) { + return (GenerateChatToken) super.setAccessToken(accessToken); + } + + @Override + public GenerateChatToken setAlt(java.lang.String alt) { + return (GenerateChatToken) super.setAlt(alt); + } + + @Override + public GenerateChatToken setCallback(java.lang.String callback) { + return (GenerateChatToken) super.setCallback(callback); + } + + @Override + public GenerateChatToken setFields(java.lang.String fields) { + return (GenerateChatToken) super.setFields(fields); + } + + @Override + public GenerateChatToken setKey(java.lang.String key) { + return (GenerateChatToken) super.setKey(key); + } + + @Override + public GenerateChatToken setOauthToken(java.lang.String oauthToken) { + return (GenerateChatToken) super.setOauthToken(oauthToken); + } + + @Override + public GenerateChatToken setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateChatToken) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerateChatToken setQuotaUser(java.lang.String quotaUser) { + return (GenerateChatToken) super.setQuotaUser(quotaUser); + } + + @Override + public GenerateChatToken setUploadType(java.lang.String uploadType) { + return (GenerateChatToken) super.setUploadType(uploadType); + } + + @Override + public GenerateChatToken setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateChatToken) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The session name to generate the chat token for. Format: + projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + public GenerateChatToken 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/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GenerateChatToken set(String parameterName, Object value) { + return (GenerateChatToken) super.set(parameterName, value); + } + } + /** + * Initiates a single turn interaction with the CES agent within a session. + * + * Create a request for the method "sessions.runSession". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RunSession#execute()} method to invoke the remote operation. + * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} + * @return the request + */ + public RunSession runSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) throws java.io.IOException { + RunSession result = new RunSession(session, content); + initialize(result); + return result; + } + + public class RunSession extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+session}:runSession"; + + private final java.util.regex.Pattern SESSION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + + /** + * Initiates a single turn interaction with the CES agent within a session. + * + * Create a request for the method "sessions.runSession". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RunSession#execute()} method to invoke the remote operation.

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

+ * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1.model.RunSessionRequest} + * @since 1.13 + */ + protected RunSession(java.lang.String session, com.google.api.services.ces.v1.model.RunSessionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RunSessionResponse.class); + this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public RunSession set$Xgafv(java.lang.String $Xgafv) { + return (RunSession) super.set$Xgafv($Xgafv); + } + + @Override + public RunSession setAccessToken(java.lang.String accessToken) { + return (RunSession) super.setAccessToken(accessToken); + } + + @Override + public RunSession setAlt(java.lang.String alt) { + return (RunSession) super.setAlt(alt); + } + + @Override + public RunSession setCallback(java.lang.String callback) { + return (RunSession) super.setCallback(callback); + } + + @Override + public RunSession setFields(java.lang.String fields) { + return (RunSession) super.setFields(fields); + } + + @Override + public RunSession setKey(java.lang.String key) { + return (RunSession) super.setKey(key); + } + + @Override + public RunSession setOauthToken(java.lang.String oauthToken) { + return (RunSession) super.setOauthToken(oauthToken); + } + + @Override + public RunSession setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RunSession) super.setPrettyPrint(prettyPrint); + } + + @Override + public RunSession setQuotaUser(java.lang.String quotaUser) { + return (RunSession) super.setQuotaUser(quotaUser); + } + + @Override + public RunSession setUploadType(java.lang.String uploadType) { + return (RunSession) super.setUploadType(uploadType); + } + + @Override + public RunSession setUploadProtocol(java.lang.String uploadProtocol) { + return (RunSession) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** Required. The unique identifier of the session. Format: + `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public java.lang.String getSession() { + return session; + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public RunSession setSession(java.lang.String session) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.session = session; + return this; + } + + @Override + public RunSession set(String parameterName, Object value) { + return (RunSession) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Tools collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Tools.List request = ces.tools().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Tools tools() { + return new Tools(); + } + + /** + * The "tools" collection of methods. + */ + public class Tools { + + /** + * Creates a new tool in the given app. + * + * Create a request for the method "tools.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create a tool in. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Tool content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/tools"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new tool in the given app. + * + * Create a request for the method "tools.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create a tool in. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Tool content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Tool.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create a tool in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a tool in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a tool in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the tool, which will become the final component of the + * tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + */ + @com.google.api.client.util.Key + private java.lang.String toolId; + + /** Optional. The ID to use for the tool, which will become the final component of the tool's resource + name. If not provided, a unique ID will be automatically assigned for the tool. + */ + public java.lang.String getToolId() { + return toolId; + } + + /** + * Optional. The ID to use for the tool, which will become the final component of the + * tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + */ + public Create setToolId(java.lang.String toolId) { + this.toolId = toolId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified tool. + * + * Create a request for the method "tools.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the tool 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + + /** + * Deletes the specified tool. + * + * Create a request for the method "tools.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the tool to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @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 resource name of the tool to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the tool to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the tool 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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the tool. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the tool, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the tool. If an etag is not provided, the deletion will overwrite any + concurrent changes. If an etag is provided and does not match the current etag of the tool, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the tool. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the tool, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the tool, even if it is still + * referenced by agents/examples. * If `force = false`, the deletion will fail if any + * agents still reference the tool. * If `force = true`, all existing references from + * agents will be removed and the tool will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the tool, even if it is still referenced by + agents/examples. * If `force = false`, the deletion will fail if any agents still reference the + tool. * If `force = true`, all existing references from agents will be removed and the tool will be + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the tool, even if it is still + * referenced by agents/examples. * If `force = false`, the deletion will fail if any + * agents still reference the tool. * If `force = true`, all existing references from + * agents will be removed and the tool will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified tool. + * + * Create a request for the method "tools.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the tool to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + + /** + * Gets details of the specified tool. + * + * Create a request for the method "tools.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the tool to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Tool.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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @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 resource name of the tool to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the tool to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the tool to retrieve. */ + 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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists tools in the given app. + * + * Create a request for the method "tools.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list tools from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/tools"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists tools in the given app. + * + * Create a request for the method "tools.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list tools from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListToolsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list tools from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list tools from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list tools from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the tools. Use + * "include_system_tools=true" to include system tools in the response. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the tools. Use "include_system_tools=true" to include + system tools in the response. See https://google.aip.dev/160 for more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the tools. Use + * "include_system_tools=true" to include system tools in the response. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListTools call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListTools call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListTools call. + */ + 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 the specified tool. + * + * Create a request for the method "tools.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for + * tools retrieved from a toolset. These tools are dynamic and output-only, they cannot be + * referenced directly where a tool is expected. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Tool content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + + /** + * Updates the specified tool. + * + * Create a request for the method "tools.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for + * tools retrieved from a toolset. These tools are dynamic and output-only, they cannot be + * referenced directly where a tool is expected. + * @param content the {@link com.google.api.services.ces.v1.model.Tool} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Tool content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Tool.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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @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. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone + * tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + * for tools retrieved from a toolset. These tools are dynamic and output-only, they + * cannot be referenced directly where a tool is expected. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the tool. Format: - + `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + directly where a tool is expected. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone + * tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + * for tools retrieved from a toolset. These tools are dynamic and output-only, they + * cannot be referenced directly where a tool is expected. + */ + 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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Toolsets collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Toolsets.List request = ces.toolsets().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Toolsets toolsets() { + return new Toolsets(); + } + + /** + * The "toolsets" collection of methods. + */ + public class Toolsets { + + /** + * Creates a new toolset in the given app. + * + * Create a request for the method "toolsets.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create a toolset in. + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.Toolset content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/toolsets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new toolset in the given app. + * + * Create a request for the method "toolsets.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create a toolset in. + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.Toolset content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Toolset.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create a toolset in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a toolset in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a toolset in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the toolset, which will become the final component of the + * toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + */ + @com.google.api.client.util.Key + private java.lang.String toolsetId; + + /** Optional. The ID to use for the toolset, which will become the final component of the toolset's + resource name. If not provided, a unique ID will be automatically assigned for the toolset. + */ + public java.lang.String getToolsetId() { + return toolsetId; + } + + /** + * Optional. The ID to use for the toolset, which will become the final component of the + * toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + */ + public Create setToolsetId(java.lang.String toolsetId) { + this.toolsetId = toolsetId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified toolset. + * + * Create a request for the method "toolsets.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the toolset 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Deletes the specified toolset. + * + * Create a request for the method "toolsets.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the toolset to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @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 resource name of the toolset to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the toolset to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the toolset 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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the toolset. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the toolset, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the toolset. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the toolset, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the toolset. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the toolset, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the toolset, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any agents + * still reference the toolset. * If `force = true`, all existing references from agents + * will be removed and the toolset will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the toolset, even if it is still referenced by + app/agents. * If `force = false`, the deletion fails if any agents still reference the toolset. * + If `force = true`, all existing references from agents will be removed and the toolset will be + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the toolset, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any agents + * still reference the toolset. * If `force = true`, all existing references from agents + * will be removed and the toolset will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified toolset. + * + * Create a request for the method "toolsets.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the toolset to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Gets details of the specified toolset. + * + * Create a request for the method "toolsets.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the toolset to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Toolset.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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @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 resource name of the toolset to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the toolset to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the toolset to retrieve. */ + 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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists toolsets in the given app. + * + * Create a request for the method "toolsets.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list toolsets from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/toolsets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists toolsets in the given app. + * + * Create a request for the method "toolsets.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list toolsets from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListToolsetsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list toolsets from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list toolsets from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list toolsets from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the toolsets. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the toolsets. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the toolsets. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListToolsets call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListToolsets call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListToolsets call. + */ + 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 the specified toolset. + * + * Create a request for the method "toolsets.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1.model.Toolset content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Updates the specified toolset. + * + * Create a request for the method "toolsets.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.Toolset} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1.model.Toolset content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1.model.Toolset.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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @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. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the toolset. Format: + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + 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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Retrieve the list of tools included in the specified toolset. + * + * Create a request for the method "toolsets.retrieveTools". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RetrieveTools#execute()} method to invoke the remote operation. + * + * @param toolset Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolsRequest} + * @return the request + */ + public RetrieveTools retrieveTools(java.lang.String toolset, com.google.api.services.ces.v1.model.RetrieveToolsRequest content) throws java.io.IOException { + RetrieveTools result = new RetrieveTools(toolset, content); + initialize(result); + return result; + } + + public class RetrieveTools extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+toolset}:retrieveTools"; + + private final java.util.regex.Pattern TOOLSET_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Retrieve the list of tools included in the specified toolset. + * + * Create a request for the method "toolsets.retrieveTools". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RetrieveTools#execute()} method to invoke the remote operation.

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

+ * + * @param toolset Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1.model.RetrieveToolsRequest} + * @since 1.13 + */ + protected RetrieveTools(java.lang.String toolset, com.google.api.services.ces.v1.model.RetrieveToolsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.RetrieveToolsResponse.class); + this.toolset = com.google.api.client.util.Preconditions.checkNotNull(toolset, "Required parameter toolset must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TOOLSET_PATTERN.matcher(toolset).matches(), + "Parameter toolset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @Override + public RetrieveTools set$Xgafv(java.lang.String $Xgafv) { + return (RetrieveTools) super.set$Xgafv($Xgafv); + } + + @Override + public RetrieveTools setAccessToken(java.lang.String accessToken) { + return (RetrieveTools) super.setAccessToken(accessToken); + } + + @Override + public RetrieveTools setAlt(java.lang.String alt) { + return (RetrieveTools) super.setAlt(alt); + } + + @Override + public RetrieveTools setCallback(java.lang.String callback) { + return (RetrieveTools) super.setCallback(callback); + } + + @Override + public RetrieveTools setFields(java.lang.String fields) { + return (RetrieveTools) super.setFields(fields); + } + + @Override + public RetrieveTools setKey(java.lang.String key) { + return (RetrieveTools) super.setKey(key); + } + + @Override + public RetrieveTools setOauthToken(java.lang.String oauthToken) { + return (RetrieveTools) super.setOauthToken(oauthToken); + } + + @Override + public RetrieveTools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RetrieveTools) super.setPrettyPrint(prettyPrint); + } + + @Override + public RetrieveTools setQuotaUser(java.lang.String quotaUser) { + return (RetrieveTools) super.setQuotaUser(quotaUser); + } + + @Override + public RetrieveTools setUploadType(java.lang.String uploadType) { + return (RetrieveTools) super.setUploadType(uploadType); + } + + @Override + public RetrieveTools setUploadProtocol(java.lang.String uploadProtocol) { + return (RetrieveTools) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** Required. The name of the toolset to retrieve the tools for. Format: + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public RetrieveTools setToolset(java.lang.String toolset) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TOOLSET_PATTERN.matcher(toolset).matches(), + "Parameter toolset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.toolset = toolset; + return this; + } + + @Override + public RetrieveTools set(String parameterName, Object value) { + return (RetrieveTools) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Versions collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Versions.List request = ces.versions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Versions versions() { + return new Versions(); + } + + /** + * The "versions" collection of methods. + */ + public class Versions { + + /** + * Creates a new app version in the given app. + * + * Create a request for the method "versions.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create an app version in. + * @param content the {@link com.google.api.services.ces.v1.model.AppVersion} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1.model.AppVersion content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/versions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new app version in the given app. + * + * Create a request for the method "versions.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create an app version in. + * @param content the {@link com.google.api.services.ces.v1.model.AppVersion} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1.model.AppVersion content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.AppVersion.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create an app version in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an app version in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an app version in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the app version, which will become the final component of + * the app version's resource name. If not provided, a unique ID will be automatically + * assigned for the app version. + */ + @com.google.api.client.util.Key + private java.lang.String appVersionId; + + /** Optional. The ID to use for the app version, which will become the final component of the app + version's resource name. If not provided, a unique ID will be automatically assigned for the app + version. + */ + public java.lang.String getAppVersionId() { + return appVersionId; + } + + /** + * Optional. The ID to use for the app version, which will become the final component of + * the app version's resource name. If not provided, a unique ID will be automatically + * assigned for the app version. + */ + public Create setAppVersionId(java.lang.String appVersionId) { + this.appVersionId = appVersionId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified app version. + * + * Create a request for the method "versions.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + + /** + * Deletes the specified app version. + * + * Create a request for the method "versions.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the app version to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @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 resource name of the app version to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version 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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the app version. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the app version, deletion will be blocked and an ABORTED + * error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the app version. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + app version, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the app version. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the app version, deletion will be blocked and an ABORTED + * error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified app version. + * + * Create a request for the method "versions.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + + /** + * Gets details of the specified app version. + * + * Create a request for the method "versions.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the app version to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.AppVersion.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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @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 resource name of the app version to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to retrieve. */ + 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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all app versions in the given app. + * + * Create a request for the method "versions.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list app versions from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+parent}/versions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all app versions in the given app. + * + * Create a request for the method "versions.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list app versions from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListAppVersionsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list app versions from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list app versions from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list app versions from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the app versions. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the app versions. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the app versions. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAppVersions call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListAppVersions + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAppVersions call. + */ + 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); + } + } + /** + * Restores the specified app version. This will create a new app version from the current draft app + * and overwrite the current draft with the specified app version. + * + * Create a request for the method "versions.restore". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Restore#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to restore. + * @param content the {@link com.google.api.services.ces.v1.model.RestoreAppVersionRequest} + * @return the request + */ + public Restore restore(java.lang.String name, com.google.api.services.ces.v1.model.RestoreAppVersionRequest content) throws java.io.IOException { + Restore result = new Restore(name, content); + initialize(result); + return result; + } + + public class Restore extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}:restore"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + * Create a request for the method "versions.restore". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link Restore#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The resource name of the app version to restore. + * @param content the {@link com.google.api.services.ces.v1.model.RestoreAppVersionRequest} + * @since 1.13 + */ + protected Restore(java.lang.String name, com.google.api.services.ces.v1.model.RestoreAppVersionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Operation.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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @Override + public Restore set$Xgafv(java.lang.String $Xgafv) { + return (Restore) super.set$Xgafv($Xgafv); + } + + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } + + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } + + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } + + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } + + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } + + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } + + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } + + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } + + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } + + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app version to restore. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to restore. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to restore. */ + public Restore 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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Restore set(String parameterName, Object value) { + return (Restore) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+       *   {@code CustomerEngagementSuite.Operations.List request = ces.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.ces.v1.model.CancelOperationRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.ces.v1.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.ces.v1.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.ces.v1.model.CancelOperationRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1.model.Empty.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/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the ces 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1.model.Empty.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/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the ces 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.Operation.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/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the ces 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1.model.ListOperationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + + /** + * Builder for {@link CustomerEngagementSuite}. + * + *

+ * Implementation is not thread-safe. + *

+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link CustomerEngagementSuite}. */ + @Override + public CustomerEngagementSuite build() { + return new CustomerEngagementSuite(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link CustomerEngagementSuiteRequestInitializer}. + * + * @since 1.12 + */ + public Builder setCustomerEngagementSuiteRequestInitializer( + CustomerEngagementSuiteRequestInitializer customerengagementsuiteRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(customerengagementsuiteRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteRequest.java new file mode 100644 index 00000000000..879fc7547df --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteRequest.java @@ -0,0 +1,267 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1; + +/** + * CustomerEngagementSuite request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class CustomerEngagementSuiteRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public CustomerEngagementSuiteRequest( + CustomerEngagementSuite client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public CustomerEngagementSuiteRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public CustomerEngagementSuiteRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public CustomerEngagementSuiteRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public CustomerEngagementSuiteRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public CustomerEngagementSuiteRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public CustomerEngagementSuiteRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public CustomerEngagementSuiteRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public CustomerEngagementSuiteRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public CustomerEngagementSuiteRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public CustomerEngagementSuiteRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public CustomerEngagementSuiteRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final CustomerEngagementSuite getAbstractGoogleClient() { + return (CustomerEngagementSuite) super.getAbstractGoogleClient(); + } + + @Override + public CustomerEngagementSuiteRequest setDisableGZipContent(boolean disableGZipContent) { + return (CustomerEngagementSuiteRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public CustomerEngagementSuiteRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (CustomerEngagementSuiteRequest) super.setRequestHeaders(headers); + } + + @Override + public CustomerEngagementSuiteRequest set(String parameterName, Object value) { + return (CustomerEngagementSuiteRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteRequestInitializer.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteRequestInitializer.java new file mode 100644 index 00000000000..b350bbbb54f --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1; + +/** + * CustomerEngagementSuite request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new CustomerEngagementSuiteRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new CustomerEngagementSuiteRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends CustomerEngagementSuiteRequestInitializer {
+
+    {@literal @}Override
+    public void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends CustomerEngagementSuiteRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class CustomerEngagementSuiteRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CustomerEngagementSuiteRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CustomerEngagementSuiteRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CustomerEngagementSuiteRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCustomerEngagementSuiteRequest((CustomerEngagementSuiteRequest) request); + } + + /** + * Initializes CustomerEngagementSuite request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteScopes.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteScopes.java new file mode 100644 index 00000000000..653ea2582ff --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/CustomerEngagementSuiteScopes.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1; + +/** + * Available OAuth 2.0 scopes for use with the Gemini Enterprise for Customer Experience API. + * + * @since 1.4 + */ +public class CustomerEngagementSuiteScopes { + + /** Create, update, delete, and manage your Next Gen Agents. */ + public static final String CES = "https://www.googleapis.com/auth/ces"; + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CES); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private CustomerEngagementSuiteScopes() { + } +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Action.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Action.java new file mode 100644 index 00000000000..9dfab3b18c5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Action.java @@ -0,0 +1,147 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration of an Action for the tool to use. Note: This can be either an Action or an + * Operation. See https://cloud.google.com/integration-connectors/docs/entities-operation-action for + * details. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Action extends com.google.api.client.json.GenericJson { + + /** + * ID of a Connection action for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connectionActionId; + + /** + * Entity operation configuration for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ActionEntityOperation entityOperation; + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputFields; + + /** + * Optional. Entity fields to return from the operation. If no fields are specified, all fields of + * the Entity will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outputFields; + + /** + * ID of a Connection action for the tool to use. + * @return value or {@code null} for none + */ + public java.lang.String getConnectionActionId() { + return connectionActionId; + } + + /** + * ID of a Connection action for the tool to use. + * @param connectionActionId connectionActionId or {@code null} for none + */ + public Action setConnectionActionId(java.lang.String connectionActionId) { + this.connectionActionId = connectionActionId; + return this; + } + + /** + * Entity operation configuration for the tool to use. + * @return value or {@code null} for none + */ + public ActionEntityOperation getEntityOperation() { + return entityOperation; + } + + /** + * Entity operation configuration for the tool to use. + * @param entityOperation entityOperation or {@code null} for none + */ + public Action setEntityOperation(ActionEntityOperation entityOperation) { + this.entityOperation = entityOperation; + return this; + } + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * @return value or {@code null} for none + */ + public java.util.List getInputFields() { + return inputFields; + } + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * @param inputFields inputFields or {@code null} for none + */ + public Action setInputFields(java.util.List inputFields) { + this.inputFields = inputFields; + return this; + } + + /** + * Optional. Entity fields to return from the operation. If no fields are specified, all fields of + * the Entity will be returned. + * @return value or {@code null} for none + */ + public java.util.List getOutputFields() { + return outputFields; + } + + /** + * Optional. Entity fields to return from the operation. If no fields are specified, all fields of + * the Entity will be returned. + * @param outputFields outputFields or {@code null} for none + */ + public Action setOutputFields(java.util.List outputFields) { + this.outputFields = outputFields; + return this; + } + + @Override + public Action set(String fieldName, Object value) { + return (Action) super.set(fieldName, value); + } + + @Override + public Action clone() { + return (Action) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ActionEntityOperation.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ActionEntityOperation.java new file mode 100644 index 00000000000..eb31bb193dc --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ActionEntityOperation.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.ces.v1.model; + +/** + * Entity CRUD operation specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ActionEntityOperation extends com.google.api.client.json.GenericJson { + + /** + * Required. ID of the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entityId; + + /** + * Required. Operation to perform on the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Required. ID of the entity. + * @return value or {@code null} for none + */ + public java.lang.String getEntityId() { + return entityId; + } + + /** + * Required. ID of the entity. + * @param entityId entityId or {@code null} for none + */ + public ActionEntityOperation setEntityId(java.lang.String entityId) { + this.entityId = entityId; + return this; + } + + /** + * Required. Operation to perform on the entity. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Required. Operation to perform on the entity. + * @param operation operation or {@code null} for none + */ + public ActionEntityOperation setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + @Override + public ActionEntityOperation set(String fieldName, Object value) { + return (ActionEntityOperation) super.set(fieldName, value); + } + + @Override + public ActionEntityOperation clone() { + return (ActionEntityOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java new file mode 100644 index 00000000000..bc3b1a19ad4 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Agent.java @@ -0,0 +1,653 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An agent acts as the fundamental building block that provides instructions to the Large Language + * Model (LLM) for executing specific tasks. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Agent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List afterAgentCallbacks; + + /** + * Optional. The callbacks to execute after the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List afterModelCallbacks; + + /** + * Optional. The callbacks to execute after the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List afterToolCallbacks; + + /** + * Optional. The callbacks to execute before the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List beforeAgentCallbacks; + + /** + * Optional. The callbacks to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List beforeModelCallbacks; + + /** + * Optional. The callbacks to execute before the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List beforeToolCallbacks; + + /** + * Optional. List of child agents in the agent tree. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childAgents; + + /** + * Output only. Timestamp when the agent was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. If the agent is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSummary; + + /** + * Optional. List of guardrails for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + /** + * Optional. Instructions for the LLM model to guide the agent's behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instruction; + + /** + * Optional. The default agent type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentLlmAgent llmAgent; + + /** + * Optional. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console- + * conversational-agents) agent to be used for the agent execution. If this field is set, all + * other agent level properties will be ignored. Note: If the Dialogflow agent is in a different + * project from the app, you should grant `roles/dialogflow.client` to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentRemoteDialogflowAgent remoteDialogflowAgent; + + /** + * Optional. List of available tools for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Optional. List of toolsets for the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolsets; + + /** + * Optional. Agent transfer rules. If multiple rules match, the first one in the list will be + * used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List transferRules; + + /** + * Output only. Timestamp when the agent was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getAfterAgentCallbacks() { + return afterAgentCallbacks; + } + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @param afterAgentCallbacks afterAgentCallbacks or {@code null} for none + */ + public Agent setAfterAgentCallbacks(java.util.List afterAgentCallbacks) { + this.afterAgentCallbacks = afterAgentCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute after the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getAfterModelCallbacks() { + return afterModelCallbacks; + } + + /** + * Optional. The callbacks to execute after the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param afterModelCallbacks afterModelCallbacks or {@code null} for none + */ + public Agent setAfterModelCallbacks(java.util.List afterModelCallbacks) { + this.afterModelCallbacks = afterModelCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute after the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getAfterToolCallbacks() { + return afterToolCallbacks; + } + + /** + * Optional. The callbacks to execute after the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param afterToolCallbacks afterToolCallbacks or {@code null} for none + */ + public Agent setAfterToolCallbacks(java.util.List afterToolCallbacks) { + this.afterToolCallbacks = afterToolCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute before the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getBeforeAgentCallbacks() { + return beforeAgentCallbacks; + } + + /** + * Optional. The callbacks to execute before the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @param beforeAgentCallbacks beforeAgentCallbacks or {@code null} for none + */ + public Agent setBeforeAgentCallbacks(java.util.List beforeAgentCallbacks) { + this.beforeAgentCallbacks = beforeAgentCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getBeforeModelCallbacks() { + return beforeModelCallbacks; + } + + /** + * Optional. The callbacks to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param beforeModelCallbacks beforeModelCallbacks or {@code null} for none + */ + public Agent setBeforeModelCallbacks(java.util.List beforeModelCallbacks) { + this.beforeModelCallbacks = beforeModelCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute before the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getBeforeToolCallbacks() { + return beforeToolCallbacks; + } + + /** + * Optional. The callbacks to execute before the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param beforeToolCallbacks beforeToolCallbacks or {@code null} for none + */ + public Agent setBeforeToolCallbacks(java.util.List beforeToolCallbacks) { + this.beforeToolCallbacks = beforeToolCallbacks; + return this; + } + + /** + * Optional. List of child agents in the agent tree. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.util.List getChildAgents() { + return childAgents; + } + + /** + * Optional. List of child agents in the agent tree. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param childAgents childAgents or {@code null} for none + */ + public Agent setChildAgents(java.util.List childAgents) { + this.childAgents = childAgents; + return this; + } + + /** + * Output only. Timestamp when the agent was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the agent was created. + * @param createTime createTime or {@code null} for none + */ + public Agent setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable description of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the agent. + * @param description description or {@code null} for none + */ + public Agent setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public Agent setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Agent setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. If the agent is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSummary() { + return generatedSummary; + } + + /** + * Output only. If the agent is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @param generatedSummary generatedSummary or {@code null} for none + */ + public Agent setGeneratedSummary(java.lang.String generatedSummary) { + this.generatedSummary = generatedSummary; + return this; + } + + /** + * Optional. List of guardrails for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * Optional. List of guardrails for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param guardrails guardrails or {@code null} for none + */ + public Agent setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * Optional. Instructions for the LLM model to guide the agent's behavior. + * @return value or {@code null} for none + */ + public java.lang.String getInstruction() { + return instruction; + } + + /** + * Optional. Instructions for the LLM model to guide the agent's behavior. + * @param instruction instruction or {@code null} for none + */ + public Agent setInstruction(java.lang.String instruction) { + this.instruction = instruction; + return this; + } + + /** + * Optional. The default agent type. + * @return value or {@code null} for none + */ + public AgentLlmAgent getLlmAgent() { + return llmAgent; + } + + /** + * Optional. The default agent type. + * @param llmAgent llmAgent or {@code null} for none + */ + public Agent setLlmAgent(AgentLlmAgent llmAgent) { + this.llmAgent = llmAgent; + return this; + } + + /** + * Optional. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public Agent setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param name name or {@code null} for none + */ + public Agent setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console- + * conversational-agents) agent to be used for the agent execution. If this field is set, all + * other agent level properties will be ignored. Note: If the Dialogflow agent is in a different + * project from the app, you should grant `roles/dialogflow.client` to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public AgentRemoteDialogflowAgent getRemoteDialogflowAgent() { + return remoteDialogflowAgent; + } + + /** + * Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console- + * conversational-agents) agent to be used for the agent execution. If this field is set, all + * other agent level properties will be ignored. Note: If the Dialogflow agent is in a different + * project from the app, you should grant `roles/dialogflow.client` to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param remoteDialogflowAgent remoteDialogflowAgent or {@code null} for none + */ + public Agent setRemoteDialogflowAgent(AgentRemoteDialogflowAgent remoteDialogflowAgent) { + this.remoteDialogflowAgent = remoteDialogflowAgent; + return this; + } + + /** + * Optional. List of available tools for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * Optional. List of available tools for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tools tools or {@code null} for none + */ + public Agent setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + /** + * Optional. List of toolsets for the agent. + * @return value or {@code null} for none + */ + public java.util.List getToolsets() { + return toolsets; + } + + /** + * Optional. List of toolsets for the agent. + * @param toolsets toolsets or {@code null} for none + */ + public Agent setToolsets(java.util.List toolsets) { + this.toolsets = toolsets; + return this; + } + + /** + * Optional. Agent transfer rules. If multiple rules match, the first one in the list will be + * used. + * @return value or {@code null} for none + */ + public java.util.List getTransferRules() { + return transferRules; + } + + /** + * Optional. Agent transfer rules. If multiple rules match, the first one in the list will be + * used. + * @param transferRules transferRules or {@code null} for none + */ + public Agent setTransferRules(java.util.List transferRules) { + this.transferRules = transferRules; + return this; + } + + /** + * Output only. Timestamp when the agent was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the agent was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Agent setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Agent set(String fieldName, Object value) { + return (Agent) super.set(fieldName, value); + } + + @Override + public Agent clone() { + return (Agent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentAgentToolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentAgentToolset.java new file mode 100644 index 00000000000..2ac92e55115 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentAgentToolset.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A toolset with a selection of its tools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentAgentToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. The tools IDs to filter the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolIds; + + /** + * Required. The resource name of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** + * Optional. The tools IDs to filter the toolset. + * @return value or {@code null} for none + */ + public java.util.List getToolIds() { + return toolIds; + } + + /** + * Optional. The tools IDs to filter the toolset. + * @param toolIds toolIds or {@code null} for none + */ + public AgentAgentToolset setToolIds(java.util.List toolIds) { + this.toolIds = toolIds; + return this; + } + + /** + * Required. The resource name of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @return value or {@code null} for none + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The resource name of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param toolset toolset or {@code null} for none + */ + public AgentAgentToolset setToolset(java.lang.String toolset) { + this.toolset = toolset; + return this; + } + + @Override + public AgentAgentToolset set(String fieldName, Object value) { + return (AgentAgentToolset) super.set(fieldName, value); + } + + @Override + public AgentAgentToolset clone() { + return (AgentAgentToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentLlmAgent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentLlmAgent.java new file mode 100644 index 00000000000..bccd8770846 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentLlmAgent.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Default agent type. The agent uses instructions and callbacks specified in the agent to perform + * the task using a large language model. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentLlmAgent extends com.google.api.client.json.GenericJson { + + @Override + public AgentLlmAgent set(String fieldName, Object value) { + return (AgentLlmAgent) super.set(fieldName, value); + } + + @Override + public AgentLlmAgent clone() { + return (AgentLlmAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentRemoteDialogflowAgent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentRemoteDialogflowAgent.java new file mode 100644 index 00000000000..ccf1c42fc86 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentRemoteDialogflowAgent.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The agent which will transfer execution to a remote [Dialogflow + * CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent + * will process subsequent user queries until the session ends or flow ends, and the control is + * transferred back to the parent CES agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentRemoteDialogflowAgent extends com.google.api.client.json.GenericJson { + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environmentId; + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String flowId; + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map inputVariableMapping; + + /** + * Optional. The mapping of the Dialogflow session parameters names to the app variables names to + * be sent back to the CES agent after the Dialogflow agent execution ends. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map outputVariableMapping; + + /** + * Optional. Indicates whether to respect the message-level interruption settings configured in + * the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the + * app-level barge-in settings. * If true: only response messages with [`allow_playback_interrupti + * on`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx. + * v3#text) set to true will be interruptable, all other messages follow the app-level barge-in + * settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean respectResponseInterruptionSettings; + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @param agent agent or {@code null} for none + */ + public AgentRemoteDialogflowAgent setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironmentId() { + return environmentId; + } + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * @param environmentId environmentId or {@code null} for none + */ + public AgentRemoteDialogflowAgent setEnvironmentId(java.lang.String environmentId) { + this.environmentId = environmentId; + return this; + } + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * @return value or {@code null} for none + */ + public java.lang.String getFlowId() { + return flowId; + } + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * @param flowId flowId or {@code null} for none + */ + public AgentRemoteDialogflowAgent setFlowId(java.lang.String flowId) { + this.flowId = flowId; + return this; + } + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * @return value or {@code null} for none + */ + public java.util.Map getInputVariableMapping() { + return inputVariableMapping; + } + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * @param inputVariableMapping inputVariableMapping or {@code null} for none + */ + public AgentRemoteDialogflowAgent setInputVariableMapping(java.util.Map inputVariableMapping) { + this.inputVariableMapping = inputVariableMapping; + return this; + } + + /** + * Optional. The mapping of the Dialogflow session parameters names to the app variables names to + * be sent back to the CES agent after the Dialogflow agent execution ends. + * @return value or {@code null} for none + */ + public java.util.Map getOutputVariableMapping() { + return outputVariableMapping; + } + + /** + * Optional. The mapping of the Dialogflow session parameters names to the app variables names to + * be sent back to the CES agent after the Dialogflow agent execution ends. + * @param outputVariableMapping outputVariableMapping or {@code null} for none + */ + public AgentRemoteDialogflowAgent setOutputVariableMapping(java.util.Map outputVariableMapping) { + this.outputVariableMapping = outputVariableMapping; + return this; + } + + /** + * Optional. Indicates whether to respect the message-level interruption settings configured in + * the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the + * app-level barge-in settings. * If true: only response messages with [`allow_playback_interrupti + * on`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx. + * v3#text) set to true will be interruptable, all other messages follow the app-level barge-in + * settings. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRespectResponseInterruptionSettings() { + return respectResponseInterruptionSettings; + } + + /** + * Optional. Indicates whether to respect the message-level interruption settings configured in + * the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the + * app-level barge-in settings. * If true: only response messages with [`allow_playback_interrupti + * on`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx. + * v3#text) set to true will be interruptable, all other messages follow the app-level barge-in + * settings. + * @param respectResponseInterruptionSettings respectResponseInterruptionSettings or {@code null} for none + */ + public AgentRemoteDialogflowAgent setRespectResponseInterruptionSettings(java.lang.Boolean respectResponseInterruptionSettings) { + this.respectResponseInterruptionSettings = respectResponseInterruptionSettings; + return this; + } + + @Override + public AgentRemoteDialogflowAgent set(String fieldName, Object value) { + return (AgentRemoteDialogflowAgent) super.set(fieldName, value); + } + + @Override + public AgentRemoteDialogflowAgent clone() { + return (AgentRemoteDialogflowAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentTransfer.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentTransfer.java new file mode 100644 index 00000000000..0a5e95c4b82 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AgentTransfer.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents an event indicating the transfer of a conversation to a different agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentTransfer extends com.google.api.client.json.GenericJson { + + /** + * Output only. Display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetAgent; + + /** + * Output only. Display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public AgentTransfer setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getTargetAgent() { + return targetAgent; + } + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param targetAgent targetAgent or {@code null} for none + */ + public AgentTransfer setTargetAgent(java.lang.String targetAgent) { + this.targetAgent = targetAgent; + return this; + } + + @Override + public AgentTransfer set(String fieldName, Object value) { + return (AgentTransfer) super.set(fieldName, value); + } + + @Override + public AgentTransfer clone() { + return (AgentTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AmbientSoundConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AmbientSoundConfig.java new file mode 100644 index 00000000000..a58d959e6c9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AmbientSoundConfig.java @@ -0,0 +1,173 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for the ambient sound to be played with the synthesized agent response, to enhance + * the naturalness of 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AmbientSoundConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prebuiltAmbientNoise; + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prebuiltAmbientSound; + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double volumeGainDb; + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * @param gcsUri gcsUri or {@code null} for none + */ + public AmbientSoundConfig setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * @return value or {@code null} for none + */ + public java.lang.String getPrebuiltAmbientNoise() { + return prebuiltAmbientNoise; + } + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * @param prebuiltAmbientNoise prebuiltAmbientNoise or {@code null} for none + */ + public AmbientSoundConfig setPrebuiltAmbientNoise(java.lang.String prebuiltAmbientNoise) { + this.prebuiltAmbientNoise = prebuiltAmbientNoise; + return this; + } + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * @return value or {@code null} for none + */ + public java.lang.String getPrebuiltAmbientSound() { + return prebuiltAmbientSound; + } + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * @param prebuiltAmbientSound prebuiltAmbientSound or {@code null} for none + */ + public AmbientSoundConfig setPrebuiltAmbientSound(java.lang.String prebuiltAmbientSound) { + this.prebuiltAmbientSound = prebuiltAmbientSound; + return this; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * @return value or {@code null} for none + */ + public java.lang.Double getVolumeGainDb() { + return volumeGainDb; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * @param volumeGainDb volumeGainDb or {@code null} for none + */ + public AmbientSoundConfig setVolumeGainDb(java.lang.Double volumeGainDb) { + this.volumeGainDb = volumeGainDb; + return this; + } + + @Override + public AmbientSoundConfig set(String fieldName, Object value) { + return (AmbientSoundConfig) super.set(fieldName, value); + } + + @Override + public AmbientSoundConfig clone() { + return (AmbientSoundConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiAuthentication.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiAuthentication.java new file mode 100644 index 00000000000..79b49a98ae8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiAuthentication.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Authentication information required for API calls. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiAuthentication extends com.google.api.client.json.GenericJson { + + /** + * Optional. Config for API key auth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiKeyConfig apiKeyConfig; + + /** + * Optional. Config for bearer token auth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BearerTokenConfig bearerTokenConfig; + + /** + * Optional. Config for OAuth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OAuthConfig oauthConfig; + + /** + * Optional. Config for service account authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAccountAuthConfig serviceAccountAuthConfig; + + /** + * Optional. Config for ID token auth generated from CES service agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig; + + /** + * Optional. Config for API key auth. + * @return value or {@code null} for none + */ + public ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig; + } + + /** + * Optional. Config for API key auth. + * @param apiKeyConfig apiKeyConfig or {@code null} for none + */ + public ApiAuthentication setApiKeyConfig(ApiKeyConfig apiKeyConfig) { + this.apiKeyConfig = apiKeyConfig; + return this; + } + + /** + * Optional. Config for bearer token auth. + * @return value or {@code null} for none + */ + public BearerTokenConfig getBearerTokenConfig() { + return bearerTokenConfig; + } + + /** + * Optional. Config for bearer token auth. + * @param bearerTokenConfig bearerTokenConfig or {@code null} for none + */ + public ApiAuthentication setBearerTokenConfig(BearerTokenConfig bearerTokenConfig) { + this.bearerTokenConfig = bearerTokenConfig; + return this; + } + + /** + * Optional. Config for OAuth. + * @return value or {@code null} for none + */ + public OAuthConfig getOauthConfig() { + return oauthConfig; + } + + /** + * Optional. Config for OAuth. + * @param oauthConfig oauthConfig or {@code null} for none + */ + public ApiAuthentication setOauthConfig(OAuthConfig oauthConfig) { + this.oauthConfig = oauthConfig; + return this; + } + + /** + * Optional. Config for service account authentication. + * @return value or {@code null} for none + */ + public ServiceAccountAuthConfig getServiceAccountAuthConfig() { + return serviceAccountAuthConfig; + } + + /** + * Optional. Config for service account authentication. + * @param serviceAccountAuthConfig serviceAccountAuthConfig or {@code null} for none + */ + public ApiAuthentication setServiceAccountAuthConfig(ServiceAccountAuthConfig serviceAccountAuthConfig) { + this.serviceAccountAuthConfig = serviceAccountAuthConfig; + return this; + } + + /** + * Optional. Config for ID token auth generated from CES service agent. + * @return value or {@code null} for none + */ + public ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig() { + return serviceAgentIdTokenAuthConfig; + } + + /** + * Optional. Config for ID token auth generated from CES service agent. + * @param serviceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig or {@code null} for none + */ + public ApiAuthentication setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig) { + this.serviceAgentIdTokenAuthConfig = serviceAgentIdTokenAuthConfig; + return this; + } + + @Override + public ApiAuthentication set(String fieldName, Object value) { + return (ApiAuthentication) super.set(fieldName, value); + } + + @Override + public ApiAuthentication clone() { + return (ApiAuthentication) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiKeyConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiKeyConfig.java new file mode 100644 index 00000000000..ffcb27b9358 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ApiKeyConfig.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configurations for authentication with API key. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiKeyConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKeySecretVersion; + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyName; + + /** + * Required. Key location in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestLocation; + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getApiKeySecretVersion() { + return apiKeySecretVersion; + } + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param apiKeySecretVersion apiKeySecretVersion or {@code null} for none + */ + public ApiKeyConfig setApiKeySecretVersion(java.lang.String apiKeySecretVersion) { + this.apiKeySecretVersion = apiKeySecretVersion; + return this; + } + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * @return value or {@code null} for none + */ + public java.lang.String getKeyName() { + return keyName; + } + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * @param keyName keyName or {@code null} for none + */ + public ApiKeyConfig setKeyName(java.lang.String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Required. Key location in the request. + * @return value or {@code null} for none + */ + public java.lang.String getRequestLocation() { + return requestLocation; + } + + /** + * Required. Key location in the request. + * @param requestLocation requestLocation or {@code null} for none + */ + public ApiKeyConfig setRequestLocation(java.lang.String requestLocation) { + this.requestLocation = requestLocation; + return this; + } + + @Override + public ApiKeyConfig set(String fieldName, Object value) { + return (ApiKeyConfig) super.set(fieldName, value); + } + + @Override + public ApiKeyConfig clone() { + return (ApiKeyConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java new file mode 100644 index 00000000000..c0f09810e1c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/App.java @@ -0,0 +1,669 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An app serves as a top-level container for a group of agents, including the root agent and its + * sub-agents, along with their associated configurations. These agents work together to achieve + * specific goals within the app's context. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class App extends com.google.api.client.json.GenericJson { + + /** + * Optional. Audio processing configuration of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioProcessingConfig audioProcessingConfig; + + /** + * Optional. The default client certificate settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClientCertificateSettings clientCertificateSettings; + + /** + * Output only. Timestamp when the app was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The data store settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreSettings dataStoreSettings; + + /** + * Optional. The default channel profile used by the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfile defaultChannelProfile; + + /** + * Output only. Number of deployments in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deploymentCount; + + /** + * Optional. Human-readable description of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The evaluation thresholds for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholds evaluationMetricsThresholds; + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String globalInstruction; + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + /** + * Optional. Language settings of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LanguageSettings languageSettings; + + /** + * Optional. Indicates whether the app is locked for changes. If the app is locked, modifications + * to the app resources will be rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean locked; + + /** + * Optional. Logging settings of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LoggingSettings loggingSettings; + + /** + * Optional. Metadata about the app. This field can be used to store additional information + * relevant to the app's details or intended usages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Optional. The default LLM model settings for the app. Individual resources (e.g. agents, + * guardrails) can override these configurations as needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Whether the app is pinned in the app list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean pinned; + + /** + * Output only. The declarations of predefined variables for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List predefinedVariableDeclarations; + + /** + * Optional. The root agent is the entry point of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rootAgent; + + /** + * Optional. TimeZone settings of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeZoneSettings timeZoneSettings; + + /** + * Optional. The tool execution mode for the app. If not provided, will default to PARALLEL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolExecutionMode; + + /** + * Output only. Timestamp when the app was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The declarations of the variables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List variableDeclarations; + + /** + * Optional. Audio processing configuration of the app. + * @return value or {@code null} for none + */ + public AudioProcessingConfig getAudioProcessingConfig() { + return audioProcessingConfig; + } + + /** + * Optional. Audio processing configuration of the app. + * @param audioProcessingConfig audioProcessingConfig or {@code null} for none + */ + public App setAudioProcessingConfig(AudioProcessingConfig audioProcessingConfig) { + this.audioProcessingConfig = audioProcessingConfig; + return this; + } + + /** + * Optional. The default client certificate settings for the app. + * @return value or {@code null} for none + */ + public ClientCertificateSettings getClientCertificateSettings() { + return clientCertificateSettings; + } + + /** + * Optional. The default client certificate settings for the app. + * @param clientCertificateSettings clientCertificateSettings or {@code null} for none + */ + public App setClientCertificateSettings(ClientCertificateSettings clientCertificateSettings) { + this.clientCertificateSettings = clientCertificateSettings; + return this; + } + + /** + * Output only. Timestamp when the app was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the app was created. + * @param createTime createTime or {@code null} for none + */ + public App setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The data store settings for the app. + * @return value or {@code null} for none + */ + public DataStoreSettings getDataStoreSettings() { + return dataStoreSettings; + } + + /** + * Optional. The data store settings for the app. + * @param dataStoreSettings dataStoreSettings or {@code null} for none + */ + public App setDataStoreSettings(DataStoreSettings dataStoreSettings) { + this.dataStoreSettings = dataStoreSettings; + return this; + } + + /** + * Optional. The default channel profile used by the app. + * @return value or {@code null} for none + */ + public ChannelProfile getDefaultChannelProfile() { + return defaultChannelProfile; + } + + /** + * Optional. The default channel profile used by the app. + * @param defaultChannelProfile defaultChannelProfile or {@code null} for none + */ + public App setDefaultChannelProfile(ChannelProfile defaultChannelProfile) { + this.defaultChannelProfile = defaultChannelProfile; + return this; + } + + /** + * Output only. Number of deployments in the app. + * @return value or {@code null} for none + */ + public java.lang.Integer getDeploymentCount() { + return deploymentCount; + } + + /** + * Output only. Number of deployments in the app. + * @param deploymentCount deploymentCount or {@code null} for none + */ + public App setDeploymentCount(java.lang.Integer deploymentCount) { + this.deploymentCount = deploymentCount; + return this; + } + + /** + * Optional. Human-readable description of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the app. + * @param description description or {@code null} for none + */ + public App setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the app. + * @param displayName displayName or {@code null} for none + */ + public App setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public App setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The evaluation thresholds for the app. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholds getEvaluationMetricsThresholds() { + return evaluationMetricsThresholds; + } + + /** + * Optional. The evaluation thresholds for the app. + * @param evaluationMetricsThresholds evaluationMetricsThresholds or {@code null} for none + */ + public App setEvaluationMetricsThresholds(EvaluationMetricsThresholds evaluationMetricsThresholds) { + this.evaluationMetricsThresholds = evaluationMetricsThresholds; + return this; + } + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * @return value or {@code null} for none + */ + public java.lang.String getGlobalInstruction() { + return globalInstruction; + } + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * @param globalInstruction globalInstruction or {@code null} for none + */ + public App setGlobalInstruction(java.lang.String globalInstruction) { + this.globalInstruction = globalInstruction; + return this; + } + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param guardrails guardrails or {@code null} for none + */ + public App setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * Optional. Language settings of the app. + * @return value or {@code null} for none + */ + public LanguageSettings getLanguageSettings() { + return languageSettings; + } + + /** + * Optional. Language settings of the app. + * @param languageSettings languageSettings or {@code null} for none + */ + public App setLanguageSettings(LanguageSettings languageSettings) { + this.languageSettings = languageSettings; + return this; + } + + /** + * Optional. Indicates whether the app is locked for changes. If the app is locked, modifications + * to the app resources will be rejected. + * @return value or {@code null} for none + */ + public java.lang.Boolean getLocked() { + return locked; + } + + /** + * Optional. Indicates whether the app is locked for changes. If the app is locked, modifications + * to the app resources will be rejected. + * @param locked locked or {@code null} for none + */ + public App setLocked(java.lang.Boolean locked) { + this.locked = locked; + return this; + } + + /** + * Optional. Logging settings of the app. + * @return value or {@code null} for none + */ + public LoggingSettings getLoggingSettings() { + return loggingSettings; + } + + /** + * Optional. Logging settings of the app. + * @param loggingSettings loggingSettings or {@code null} for none + */ + public App setLoggingSettings(LoggingSettings loggingSettings) { + this.loggingSettings = loggingSettings; + return this; + } + + /** + * Optional. Metadata about the app. This field can be used to store additional information + * relevant to the app's details or intended usages. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Metadata about the app. This field can be used to store additional information + * relevant to the app's details or intended usages. + * @param metadata metadata or {@code null} for none + */ + public App setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Optional. The default LLM model settings for the app. Individual resources (e.g. agents, + * guardrails) can override these configurations as needed. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. The default LLM model settings for the app. Individual resources (e.g. agents, + * guardrails) can override these configurations as needed. + * @param modelSettings modelSettings or {@code null} for none + */ + public App setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param name name or {@code null} for none + */ + public App setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Whether the app is pinned in the app list. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPinned() { + return pinned; + } + + /** + * Optional. Whether the app is pinned in the app list. + * @param pinned pinned or {@code null} for none + */ + public App setPinned(java.lang.Boolean pinned) { + this.pinned = pinned; + return this; + } + + /** + * Output only. The declarations of predefined variables for the app. + * @return value or {@code null} for none + */ + public java.util.List getPredefinedVariableDeclarations() { + return predefinedVariableDeclarations; + } + + /** + * Output only. The declarations of predefined variables for the app. + * @param predefinedVariableDeclarations predefinedVariableDeclarations or {@code null} for none + */ + public App setPredefinedVariableDeclarations(java.util.List predefinedVariableDeclarations) { + this.predefinedVariableDeclarations = predefinedVariableDeclarations; + return this; + } + + /** + * Optional. The root agent is the entry point of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getRootAgent() { + return rootAgent; + } + + /** + * Optional. The root agent is the entry point of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param rootAgent rootAgent or {@code null} for none + */ + public App setRootAgent(java.lang.String rootAgent) { + this.rootAgent = rootAgent; + return this; + } + + /** + * Optional. TimeZone settings of the app. + * @return value or {@code null} for none + */ + public TimeZoneSettings getTimeZoneSettings() { + return timeZoneSettings; + } + + /** + * Optional. TimeZone settings of the app. + * @param timeZoneSettings timeZoneSettings or {@code null} for none + */ + public App setTimeZoneSettings(TimeZoneSettings timeZoneSettings) { + this.timeZoneSettings = timeZoneSettings; + return this; + } + + /** + * Optional. The tool execution mode for the app. If not provided, will default to PARALLEL. + * @return value or {@code null} for none + */ + public java.lang.String getToolExecutionMode() { + return toolExecutionMode; + } + + /** + * Optional. The tool execution mode for the app. If not provided, will default to PARALLEL. + * @param toolExecutionMode toolExecutionMode or {@code null} for none + */ + public App setToolExecutionMode(java.lang.String toolExecutionMode) { + this.toolExecutionMode = toolExecutionMode; + return this; + } + + /** + * Output only. Timestamp when the app was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the app was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public App setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. The declarations of the variables. + * @return value or {@code null} for none + */ + public java.util.List getVariableDeclarations() { + return variableDeclarations; + } + + /** + * Optional. The declarations of the variables. + * @param variableDeclarations variableDeclarations or {@code null} for none + */ + public App setVariableDeclarations(java.util.List variableDeclarations) { + this.variableDeclarations = variableDeclarations; + return this; + } + + @Override + public App set(String fieldName, Object value) { + return (App) super.set(fieldName, value); + } + + @Override + public App clone() { + return (App) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppSnapshot.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppSnapshot.java new file mode 100644 index 00000000000..bedf610a416 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppSnapshot.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A snapshot of the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppSnapshot extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of agents in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agents; + + static { + // hack to force ProGuard to consider Agent 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(Agent.class); + } + + /** + * Optional. The basic settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private App app; + + /** + * Optional. List of examples in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List examples; + + /** + * Optional. List of guardrails in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + /** + * Optional. List of tools in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Optional. List of toolsets in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolsets; + + /** + * Optional. List of agents in the app. + * @return value or {@code null} for none + */ + public java.util.List getAgents() { + return agents; + } + + /** + * Optional. List of agents in the app. + * @param agents agents or {@code null} for none + */ + public AppSnapshot setAgents(java.util.List agents) { + this.agents = agents; + return this; + } + + /** + * Optional. The basic settings for the app. + * @return value or {@code null} for none + */ + public App getApp() { + return app; + } + + /** + * Optional. The basic settings for the app. + * @param app app or {@code null} for none + */ + public AppSnapshot setApp(App app) { + this.app = app; + return this; + } + + /** + * Optional. List of examples in the app. + * @return value or {@code null} for none + */ + public java.util.List getExamples() { + return examples; + } + + /** + * Optional. List of examples in the app. + * @param examples examples or {@code null} for none + */ + public AppSnapshot setExamples(java.util.List examples) { + this.examples = examples; + return this; + } + + /** + * Optional. List of guardrails in the app. + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * Optional. List of guardrails in the app. + * @param guardrails guardrails or {@code null} for none + */ + public AppSnapshot setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * Optional. List of tools in the app. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * Optional. List of tools in the app. + * @param tools tools or {@code null} for none + */ + public AppSnapshot setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + /** + * Optional. List of toolsets in the app. + * @return value or {@code null} for none + */ + public java.util.List getToolsets() { + return toolsets; + } + + /** + * Optional. List of toolsets in the app. + * @param toolsets toolsets or {@code null} for none + */ + public AppSnapshot setToolsets(java.util.List toolsets) { + this.toolsets = toolsets; + return this; + } + + @Override + public AppSnapshot set(String fieldName, Object value) { + return (AppSnapshot) super.set(fieldName, value); + } + + @Override + public AppSnapshot clone() { + return (AppSnapshot) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVariableDeclaration.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVariableDeclaration.java new file mode 100644 index 00000000000..a67d6a0325a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVariableDeclaration.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Defines the structure and metadata for a variable. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppVariableDeclaration extends com.google.api.client.json.GenericJson { + + /** + * Required. The description of the variable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The schema of the variable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema schema; + + /** + * Required. The description of the variable. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Required. The description of the variable. + * @param description description or {@code null} for none + */ + public AppVariableDeclaration setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * @param name name or {@code null} for none + */ + public AppVariableDeclaration setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The schema of the variable. + * @return value or {@code null} for none + */ + public Schema getSchema() { + return schema; + } + + /** + * Required. The schema of the variable. + * @param schema schema or {@code null} for none + */ + public AppVariableDeclaration setSchema(Schema schema) { + this.schema = schema; + return this; + } + + @Override + public AppVariableDeclaration set(String fieldName, Object value) { + return (AppVariableDeclaration) super.set(fieldName, value); + } + + @Override + public AppVariableDeclaration clone() { + return (AppVariableDeclaration) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java new file mode 100644 index 00000000000..8f5932e46af --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AppVersion.java @@ -0,0 +1,218 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * In Customer Engagement Suite (CES), an app version is a snapshot of the app at a specific point + * in time. It is immutable and cannot be modified once created. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppVersion extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the app version was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Email of the user who created the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creator; + + /** + * Optional. The description of the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The display name of the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The snapshot of the app when the version is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppSnapshot snapshot; + + /** + * Output only. Timestamp when the app version was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the app version was created. + * @param createTime createTime or {@code null} for none + */ + public AppVersion setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Email of the user who created the app version. + * @return value or {@code null} for none + */ + public java.lang.String getCreator() { + return creator; + } + + /** + * Output only. Email of the user who created the app version. + * @param creator creator or {@code null} for none + */ + public AppVersion setCreator(java.lang.String creator) { + this.creator = creator; + return this; + } + + /** + * Optional. The description of the app version. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the app version. + * @param description description or {@code null} for none + */ + public AppVersion setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The display name of the app version. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the app version. + * @param displayName displayName or {@code null} for none + */ + public AppVersion setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public AppVersion setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param name name or {@code null} for none + */ + public AppVersion setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The snapshot of the app when the version is created. + * @return value or {@code null} for none + */ + public AppSnapshot getSnapshot() { + return snapshot; + } + + /** + * Output only. The snapshot of the app when the version is created. + * @param snapshot snapshot or {@code null} for none + */ + public AppVersion setSnapshot(AppSnapshot snapshot) { + this.snapshot = snapshot; + return this; + } + + @Override + public AppVersion set(String fieldName, Object value) { + return (AppVersion) super.set(fieldName, value); + } + + @Override + public AppVersion clone() { + return (AppVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java new file mode 100644 index 00000000000..1a3efbd23b2 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioProcessingConfig.java @@ -0,0 +1,157 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for how the input and output audio should be processed and delivered. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AudioProcessingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AmbientSoundConfig ambientSoundConfig; + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BargeInConfig bargeInConfig; + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String inactivityTimeout; + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map synthesizeSpeechConfigs; + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * @return value or {@code null} for none + */ + public AmbientSoundConfig getAmbientSoundConfig() { + return ambientSoundConfig; + } + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * @param ambientSoundConfig ambientSoundConfig or {@code null} for none + */ + public AudioProcessingConfig setAmbientSoundConfig(AmbientSoundConfig ambientSoundConfig) { + this.ambientSoundConfig = ambientSoundConfig; + return this; + } + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * @return value or {@code null} for none + */ + public BargeInConfig getBargeInConfig() { + return bargeInConfig; + } + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * @param bargeInConfig bargeInConfig or {@code null} for none + */ + public AudioProcessingConfig setBargeInConfig(BargeInConfig bargeInConfig) { + this.bargeInConfig = bargeInConfig; + return this; + } + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * @return value or {@code null} for none + */ + public String getInactivityTimeout() { + return inactivityTimeout; + } + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * @param inactivityTimeout inactivityTimeout or {@code null} for none + */ + public AudioProcessingConfig setInactivityTimeout(String inactivityTimeout) { + this.inactivityTimeout = inactivityTimeout; + return this; + } + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * @return value or {@code null} for none + */ + public java.util.Map getSynthesizeSpeechConfigs() { + return synthesizeSpeechConfigs; + } + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * @param synthesizeSpeechConfigs synthesizeSpeechConfigs or {@code null} for none + */ + public AudioProcessingConfig setSynthesizeSpeechConfigs(java.util.Map synthesizeSpeechConfigs) { + this.synthesizeSpeechConfigs = synthesizeSpeechConfigs; + return this; + } + + @Override + public AudioProcessingConfig set(String fieldName, Object value) { + return (AudioProcessingConfig) super.set(fieldName, value); + } + + @Override + public AudioProcessingConfig clone() { + return (AudioProcessingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioRecordingConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioRecordingConfig.java new file mode 100644 index 00000000000..9baf75c1b4d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/AudioRecordingConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for how the audio interactions should be recorded. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AudioRecordingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsBucket; + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsPathPrefix; + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsBucket() { + return gcsBucket; + } + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param gcsBucket gcsBucket or {@code null} for none + */ + public AudioRecordingConfig setGcsBucket(java.lang.String gcsBucket) { + this.gcsBucket = gcsBucket; + return this; + } + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * @return value or {@code null} for none + */ + public java.lang.String getGcsPathPrefix() { + return gcsPathPrefix; + } + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * @param gcsPathPrefix gcsPathPrefix or {@code null} for none + */ + public AudioRecordingConfig setGcsPathPrefix(java.lang.String gcsPathPrefix) { + this.gcsPathPrefix = gcsPathPrefix; + return this; + } + + @Override + public AudioRecordingConfig set(String fieldName, Object value) { + return (AudioRecordingConfig) super.set(fieldName, value); + } + + @Override + public AudioRecordingConfig clone() { + return (AudioRecordingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BargeInConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BargeInConfig.java new file mode 100644 index 00000000000..a0c96550cd0 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BargeInConfig.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.ces.v1.model; + +/** + * Configuration for how the user barge-in activities should be handled. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BargeInConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean bargeInAwareness; + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableBargeIn; + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBargeInAwareness() { + return bargeInAwareness; + } + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * @param bargeInAwareness bargeInAwareness or {@code null} for none + */ + public BargeInConfig setBargeInAwareness(java.lang.Boolean bargeInAwareness) { + this.bargeInAwareness = bargeInAwareness; + return this; + } + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableBargeIn() { + return disableBargeIn; + } + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * @param disableBargeIn disableBargeIn or {@code null} for none + */ + public BargeInConfig setDisableBargeIn(java.lang.Boolean disableBargeIn) { + this.disableBargeIn = disableBargeIn; + return this; + } + + @Override + public BargeInConfig set(String fieldName, Object value) { + return (BargeInConfig) super.set(fieldName, value); + } + + @Override + public BargeInConfig clone() { + return (BargeInConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BatchDeleteConversationsRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BatchDeleteConversationsRequest.java new file mode 100644 index 00000000000..5ee46a3847f --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BatchDeleteConversationsRequest.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for AgentService.BatchDeleteConversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchDeleteConversationsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource names of the conversations to delete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conversations; + + /** + * Required. The resource names of the conversations to delete. + * @return value or {@code null} for none + */ + public java.util.List getConversations() { + return conversations; + } + + /** + * Required. The resource names of the conversations to delete. + * @param conversations conversations or {@code null} for none + */ + public BatchDeleteConversationsRequest setConversations(java.util.List conversations) { + this.conversations = conversations; + return this; + } + + @Override + public BatchDeleteConversationsRequest set(String fieldName, Object value) { + return (BatchDeleteConversationsRequest) super.set(fieldName, value); + } + + @Override + public BatchDeleteConversationsRequest clone() { + return (BatchDeleteConversationsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BearerTokenConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BearerTokenConfig.java new file mode 100644 index 00000000000..858afa458a6 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BearerTokenConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configurations for authentication with a bearer token. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BearerTokenConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getToken() { + return token; + } + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * @param token token or {@code null} for none + */ + public BearerTokenConfig setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public BearerTokenConfig set(String fieldName, Object value) { + return (BearerTokenConfig) super.set(fieldName, value); + } + + @Override + public BearerTokenConfig clone() { + return (BearerTokenConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java new file mode 100644 index 00000000000..b654219b939 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/BigQueryExportSettings.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the BigQuery export behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The BigQuery dataset to export the data to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataset; + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Optional. The BigQuery dataset to export the data to. + * @return value or {@code null} for none + */ + public java.lang.String getDataset() { + return dataset; + } + + /** + * Optional. The BigQuery dataset to export the data to. + * @param dataset dataset or {@code null} for none + */ + public BigQueryExportSettings setDataset(java.lang.String dataset) { + this.dataset = dataset; + return this; + } + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * @param enabled enabled or {@code null} for none + */ + public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param project project or {@code null} for none + */ + public BigQueryExportSettings setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public BigQueryExportSettings set(String fieldName, Object value) { + return (BigQueryExportSettings) super.set(fieldName, value); + } + + @Override + public BigQueryExportSettings clone() { + return (BigQueryExportSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Blob.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Blob.java new file mode 100644 index 00000000000..92b37b154e3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Blob.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a blob input or output 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Blob extends com.google.api.client.json.GenericJson { + + /** + * Required. Raw bytes of the blob. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Required. The IANA standard MIME type of the source data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Required. Raw bytes of the blob. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * Required. Raw bytes of the blob. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * Required. Raw bytes of the blob. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public Blob setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * Required. Raw bytes of the blob. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Blob encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Required. The IANA standard MIME type of the source data. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Required. The IANA standard MIME type of the source data. + * @param mimeType mimeType or {@code null} for none + */ + public Blob setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public Blob set(String fieldName, Object value) { + return (Blob) super.set(fieldName, value); + } + + @Override + public Blob clone() { + return (Blob) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Callback.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Callback.java new file mode 100644 index 00000000000..9e67ca42abe --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Callback.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A callback defines the custom logic to be executed at various stages of agent interaction. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Callback extends com.google.api.client.json.GenericJson { + + /** + * Optional. Human-readable description of the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. The python code to execute for the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Optional. Human-readable description of the callback. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the callback. + * @param description description or {@code null} for none + */ + public Callback setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * @param disabled disabled or {@code null} for none + */ + public Callback setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. The python code to execute for the callback. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. The python code to execute for the callback. + * @param pythonCode pythonCode or {@code null} for none + */ + public Callback setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public Callback set(String fieldName, Object value) { + return (Callback) super.set(fieldName, value); + } + + @Override + public Callback clone() { + return (Callback) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CancelOperationRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CancelOperationRequest.java new file mode 100644 index 00000000000..db1e857a964 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CancelOperationRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The request message for Operations.CancelOperation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java new file mode 100644 index 00000000000..366d2aab7d2 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Changelog.java @@ -0,0 +1,340 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Changelogs represent a change made to the app or to an resource within the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Changelog extends com.google.api.client.json.GenericJson { + + /** + * Output only. The action that was performed on the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * Output only. Email address of the change author. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String author; + + /** + * Output only. The time when the change was made. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The dependent resources that were changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> dependentResources; + + /** + * Output only. Description of the change. which typically captures the changed fields in the + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. Display name of the change. It typically should be the display name of the + * resource that was changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The unique identifier of the changelog. Format: + * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The new resource after the change. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map newResource; + + /** + * Output only. The original resource before the change. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map originalResource; + + /** + * Output only. The resource that was changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** + * Output only. The type of the resource that was changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * Output only. The monotonically increasing sequence number of the changelog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sequenceNumber; + + /** + * Output only. The action that was performed on the resource. + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * Output only. The action that was performed on the resource. + * @param action action or {@code null} for none + */ + public Changelog setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * Output only. Email address of the change author. + * @return value or {@code null} for none + */ + public java.lang.String getAuthor() { + return author; + } + + /** + * Output only. Email address of the change author. + * @param author author or {@code null} for none + */ + public Changelog setAuthor(java.lang.String author) { + this.author = author; + return this; + } + + /** + * Output only. The time when the change was made. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time when the change was made. + * @param createTime createTime or {@code null} for none + */ + public Changelog setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The dependent resources that were changed. + * @return value or {@code null} for none + */ + public java.util.List> getDependentResources() { + return dependentResources; + } + + /** + * Output only. The dependent resources that were changed. + * @param dependentResources dependentResources or {@code null} for none + */ + public Changelog setDependentResources(java.util.List> dependentResources) { + this.dependentResources = dependentResources; + return this; + } + + /** + * Output only. Description of the change. which typically captures the changed fields in the + * resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. Description of the change. which typically captures the changed fields in the + * resource. + * @param description description or {@code null} for none + */ + public Changelog setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. Display name of the change. It typically should be the display name of the + * resource that was changed. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the change. It typically should be the display name of the + * resource that was changed. + * @param displayName displayName or {@code null} for none + */ + public Changelog setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The unique identifier of the changelog. Format: + * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the changelog. Format: + * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + * @param name name or {@code null} for none + */ + public Changelog setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The new resource after the change. + * @return value or {@code null} for none + */ + public java.util.Map getNewResource() { + return newResource; + } + + /** + * Output only. The new resource after the change. + * @param newResource newResource or {@code null} for none + */ + public Changelog setNewResource(java.util.Map newResource) { + this.newResource = newResource; + return this; + } + + /** + * Output only. The original resource before the change. + * @return value or {@code null} for none + */ + public java.util.Map getOriginalResource() { + return originalResource; + } + + /** + * Output only. The original resource before the change. + * @param originalResource originalResource or {@code null} for none + */ + public Changelog setOriginalResource(java.util.Map originalResource) { + this.originalResource = originalResource; + return this; + } + + /** + * Output only. The resource that was changed. + * @return value or {@code null} for none + */ + public java.lang.String getResource() { + return resource; + } + + /** + * Output only. The resource that was changed. + * @param resource resource or {@code null} for none + */ + public Changelog setResource(java.lang.String resource) { + this.resource = resource; + return this; + } + + /** + * Output only. The type of the resource that was changed. + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * Output only. The type of the resource that was changed. + * @param resourceType resourceType or {@code null} for none + */ + public Changelog setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Output only. The monotonically increasing sequence number of the changelog. + * @return value or {@code null} for none + */ + public java.lang.Long getSequenceNumber() { + return sequenceNumber; + } + + /** + * Output only. The monotonically increasing sequence number of the changelog. + * @param sequenceNumber sequenceNumber or {@code null} for none + */ + public Changelog setSequenceNumber(java.lang.Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + @Override + public Changelog set(String fieldName, Object value) { + return (Changelog) super.set(fieldName, value); + } + + @Override + public Changelog clone() { + return (Changelog) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfile.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfile.java new file mode 100644 index 00000000000..f2f0cddf0ff --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfile.java @@ -0,0 +1,221 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A ChannelProfile configures the agent's behavior for a specific communication channel, such as + * web UI or telephony. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfile extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelType; + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableBargeInControl; + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableDtmf; + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String noiseSuppressionLevel; + + /** + * Optional. The persona property of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfilePersonaProperty personaProperty; + + /** + * Optional. The unique identifier of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileId; + + /** + * Optional. The configuration for the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfileWebWidgetConfig webWidgetConfig; + + /** + * Optional. The type of the channel profile. + * @return value or {@code null} for none + */ + public java.lang.String getChannelType() { + return channelType; + } + + /** + * Optional. The type of the channel profile. + * @param channelType channelType or {@code null} for none + */ + public ChannelProfile setChannelType(java.lang.String channelType) { + this.channelType = channelType; + return this; + } + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableBargeInControl() { + return disableBargeInControl; + } + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * @param disableBargeInControl disableBargeInControl or {@code null} for none + */ + public ChannelProfile setDisableBargeInControl(java.lang.Boolean disableBargeInControl) { + this.disableBargeInControl = disableBargeInControl; + return this; + } + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableDtmf() { + return disableDtmf; + } + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * @param disableDtmf disableDtmf or {@code null} for none + */ + public ChannelProfile setDisableDtmf(java.lang.Boolean disableDtmf) { + this.disableDtmf = disableDtmf; + return this; + } + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * @return value or {@code null} for none + */ + public java.lang.String getNoiseSuppressionLevel() { + return noiseSuppressionLevel; + } + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * @param noiseSuppressionLevel noiseSuppressionLevel or {@code null} for none + */ + public ChannelProfile setNoiseSuppressionLevel(java.lang.String noiseSuppressionLevel) { + this.noiseSuppressionLevel = noiseSuppressionLevel; + return this; + } + + /** + * Optional. The persona property of the channel profile. + * @return value or {@code null} for none + */ + public ChannelProfilePersonaProperty getPersonaProperty() { + return personaProperty; + } + + /** + * Optional. The persona property of the channel profile. + * @param personaProperty personaProperty or {@code null} for none + */ + public ChannelProfile setPersonaProperty(ChannelProfilePersonaProperty personaProperty) { + this.personaProperty = personaProperty; + return this; + } + + /** + * Optional. The unique identifier of the channel profile. + * @return value or {@code null} for none + */ + public java.lang.String getProfileId() { + return profileId; + } + + /** + * Optional. The unique identifier of the channel profile. + * @param profileId profileId or {@code null} for none + */ + public ChannelProfile setProfileId(java.lang.String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Optional. The configuration for the web widget. + * @return value or {@code null} for none + */ + public ChannelProfileWebWidgetConfig getWebWidgetConfig() { + return webWidgetConfig; + } + + /** + * Optional. The configuration for the web widget. + * @param webWidgetConfig webWidgetConfig or {@code null} for none + */ + public ChannelProfile setWebWidgetConfig(ChannelProfileWebWidgetConfig webWidgetConfig) { + this.webWidgetConfig = webWidgetConfig; + return this; + } + + @Override + public ChannelProfile set(String fieldName, Object value) { + return (ChannelProfile) super.set(fieldName, value); + } + + @Override + public ChannelProfile clone() { + return (ChannelProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfilePersonaProperty.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfilePersonaProperty.java new file mode 100644 index 00000000000..1eb548e9360 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfilePersonaProperty.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents the persona property of a channel. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfilePersonaProperty extends com.google.api.client.json.GenericJson { + + /** + * Optional. The persona of the channel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String persona; + + /** + * Optional. The persona of the channel. + * @return value or {@code null} for none + */ + public java.lang.String getPersona() { + return persona; + } + + /** + * Optional. The persona of the channel. + * @param persona persona or {@code null} for none + */ + public ChannelProfilePersonaProperty setPersona(java.lang.String persona) { + this.persona = persona; + return this; + } + + @Override + public ChannelProfilePersonaProperty set(String fieldName, Object value) { + return (ChannelProfilePersonaProperty) super.set(fieldName, value); + } + + @Override + public ChannelProfilePersonaProperty clone() { + return (ChannelProfilePersonaProperty) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfig.java new file mode 100644 index 00000000000..51fa2c40691 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfig.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Message for configuration for the web widget. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfileWebWidgetConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The modality of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modality; + + /** + * Optional. The security settings of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfileWebWidgetConfigSecuritySettings securitySettings; + + /** + * Optional. The theme of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String theme; + + /** + * Optional. The title of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String webWidgetTitle; + + /** + * Optional. The modality of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getModality() { + return modality; + } + + /** + * Optional. The modality of the web widget. + * @param modality modality or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setModality(java.lang.String modality) { + this.modality = modality; + return this; + } + + /** + * Optional. The security settings of the web widget. + * @return value or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings getSecuritySettings() { + return securitySettings; + } + + /** + * Optional. The security settings of the web widget. + * @param securitySettings securitySettings or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setSecuritySettings(ChannelProfileWebWidgetConfigSecuritySettings securitySettings) { + this.securitySettings = securitySettings; + return this; + } + + /** + * Optional. The theme of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getTheme() { + return theme; + } + + /** + * Optional. The theme of the web widget. + * @param theme theme or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setTheme(java.lang.String theme) { + this.theme = theme; + return this; + } + + /** + * Optional. The title of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getWebWidgetTitle() { + return webWidgetTitle; + } + + /** + * Optional. The title of the web widget. + * @param webWidgetTitle webWidgetTitle or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setWebWidgetTitle(java.lang.String webWidgetTitle) { + this.webWidgetTitle = webWidgetTitle; + return this; + } + + @Override + public ChannelProfileWebWidgetConfig set(String fieldName, Object value) { + return (ChannelProfileWebWidgetConfig) super.set(fieldName, value); + } + + @Override + public ChannelProfileWebWidgetConfig clone() { + return (ChannelProfileWebWidgetConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfigSecuritySettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfigSecuritySettings.java new file mode 100644 index 00000000000..d4d4c06ac36 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ChannelProfileWebWidgetConfigSecuritySettings.java @@ -0,0 +1,160 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Security settings for the web widget. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfileWebWidgetConfigSecuritySettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedOrigins; + + /** + * Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web + * widget will check the origin of the website that loads the web widget and only allow it to be + * loaded in the same origin or any of the allowed origins. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOriginCheck; + + /** + * Optional. Indicates whether public access to the web widget is enabled. If `true`, the web + * widget will be publicly accessible. If `false`, the web widget must be integrated with your own + * authentication and authorization system to return valid credentials for accessing the CES + * agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePublicAccess; + + /** + * Optional. Indicates whether reCAPTCHA verification for the web widget is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableRecaptcha; + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * @return value or {@code null} for none + */ + public java.util.List getAllowedOrigins() { + return allowedOrigins; + } + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * @param allowedOrigins allowedOrigins or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setAllowedOrigins(java.util.List allowedOrigins) { + this.allowedOrigins = allowedOrigins; + return this; + } + + /** + * Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web + * widget will check the origin of the website that loads the web widget and only allow it to be + * loaded in the same origin or any of the allowed origins. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOriginCheck() { + return enableOriginCheck; + } + + /** + * Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web + * widget will check the origin of the website that loads the web widget and only allow it to be + * loaded in the same origin or any of the allowed origins. + * @param enableOriginCheck enableOriginCheck or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setEnableOriginCheck(java.lang.Boolean enableOriginCheck) { + this.enableOriginCheck = enableOriginCheck; + return this; + } + + /** + * Optional. Indicates whether public access to the web widget is enabled. If `true`, the web + * widget will be publicly accessible. If `false`, the web widget must be integrated with your own + * authentication and authorization system to return valid credentials for accessing the CES + * agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePublicAccess() { + return enablePublicAccess; + } + + /** + * Optional. Indicates whether public access to the web widget is enabled. If `true`, the web + * widget will be publicly accessible. If `false`, the web widget must be integrated with your own + * authentication and authorization system to return valid credentials for accessing the CES + * agent. + * @param enablePublicAccess enablePublicAccess or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setEnablePublicAccess(java.lang.Boolean enablePublicAccess) { + this.enablePublicAccess = enablePublicAccess; + return this; + } + + /** + * Optional. Indicates whether reCAPTCHA verification for the web widget is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableRecaptcha() { + return enableRecaptcha; + } + + /** + * Optional. Indicates whether reCAPTCHA verification for the web widget is enabled. + * @param enableRecaptcha enableRecaptcha or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setEnableRecaptcha(java.lang.Boolean enableRecaptcha) { + this.enableRecaptcha = enableRecaptcha; + return this; + } + + @Override + public ChannelProfileWebWidgetConfigSecuritySettings set(String fieldName, Object value) { + return (ChannelProfileWebWidgetConfigSecuritySettings) super.set(fieldName, value); + } + + @Override + public ChannelProfileWebWidgetConfigSecuritySettings clone() { + return (ChannelProfileWebWidgetConfigSecuritySettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Chunk.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Chunk.java new file mode 100644 index 00000000000..755c2820297 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Chunk.java @@ -0,0 +1,262 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A chunk of content within a 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Chunk extends com.google.api.client.json.GenericJson { + + /** + * Optional. Agent transfer event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentTransfer agentTransfer; + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map defaultVariables; + + /** + * Optional. Image data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * Optional. Custom payload data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map payload; + + /** + * Optional. Text data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Tool execution request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCall toolCall; + + /** + * Optional. Tool execution response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse toolResponse; + + /** + * Optional. Transcript associated with the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String transcript; + + /** + * A struct represents variables that were updated in the conversation, keyed by variable names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map updatedVariables; + + /** + * Optional. Agent transfer event. + * @return value or {@code null} for none + */ + public AgentTransfer getAgentTransfer() { + return agentTransfer; + } + + /** + * Optional. Agent transfer event. + * @param agentTransfer agentTransfer or {@code null} for none + */ + public Chunk setAgentTransfer(AgentTransfer agentTransfer) { + this.agentTransfer = agentTransfer; + return this; + } + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * @return value or {@code null} for none + */ + public java.util.Map getDefaultVariables() { + return defaultVariables; + } + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * @param defaultVariables defaultVariables or {@code null} for none + */ + public Chunk setDefaultVariables(java.util.Map defaultVariables) { + this.defaultVariables = defaultVariables; + return this; + } + + /** + * Optional. Image data. + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * Optional. Image data. + * @param image image or {@code null} for none + */ + public Chunk setImage(Image image) { + this.image = image; + return this; + } + + /** + * Optional. Custom payload data. + * @return value or {@code null} for none + */ + public java.util.Map getPayload() { + return payload; + } + + /** + * Optional. Custom payload data. + * @param payload payload or {@code null} for none + */ + public Chunk setPayload(java.util.Map payload) { + this.payload = payload; + return this; + } + + /** + * Optional. Text data. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Optional. Text data. + * @param text text or {@code null} for none + */ + public Chunk setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Optional. Tool execution request. + * @return value or {@code null} for none + */ + public ToolCall getToolCall() { + return toolCall; + } + + /** + * Optional. Tool execution request. + * @param toolCall toolCall or {@code null} for none + */ + public Chunk setToolCall(ToolCall toolCall) { + this.toolCall = toolCall; + return this; + } + + /** + * Optional. Tool execution response. + * @return value or {@code null} for none + */ + public ToolResponse getToolResponse() { + return toolResponse; + } + + /** + * Optional. Tool execution response. + * @param toolResponse toolResponse or {@code null} for none + */ + public Chunk setToolResponse(ToolResponse toolResponse) { + this.toolResponse = toolResponse; + return this; + } + + /** + * Optional. Transcript associated with the audio. + * @return value or {@code null} for none + */ + public java.lang.String getTranscript() { + return transcript; + } + + /** + * Optional. Transcript associated with the audio. + * @param transcript transcript or {@code null} for none + */ + public Chunk setTranscript(java.lang.String transcript) { + this.transcript = transcript; + return this; + } + + /** + * A struct represents variables that were updated in the conversation, keyed by variable names. + * @return value or {@code null} for none + */ + public java.util.Map getUpdatedVariables() { + return updatedVariables; + } + + /** + * A struct represents variables that were updated in the conversation, keyed by variable names. + * @param updatedVariables updatedVariables or {@code null} for none + */ + public Chunk setUpdatedVariables(java.util.Map updatedVariables) { + this.updatedVariables = updatedVariables; + return this; + } + + @Override + public Chunk set(String fieldName, Object value) { + return (Chunk) super.set(fieldName, value); + } + + @Override + public Chunk clone() { + return (Chunk) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Citations.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Citations.java new file mode 100644 index 00000000000..8422bccbf91 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Citations.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Citations associated with the agent response. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Citations extends com.google.api.client.json.GenericJson { + + /** + * List of cited pieces of information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List citedChunks; + + /** + * List of cited pieces of information. + * @return value or {@code null} for none + */ + public java.util.List getCitedChunks() { + return citedChunks; + } + + /** + * List of cited pieces of information. + * @param citedChunks citedChunks or {@code null} for none + */ + public Citations setCitedChunks(java.util.List citedChunks) { + this.citedChunks = citedChunks; + return this; + } + + @Override + public Citations set(String fieldName, Object value) { + return (Citations) super.set(fieldName, value); + } + + @Override + public Citations clone() { + return (Citations) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CitationsCitedChunk.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CitationsCitedChunk.java new file mode 100644 index 00000000000..9c271569c0f --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CitationsCitedChunk.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Piece of cited information. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CitationsCitedChunk extends com.google.api.client.json.GenericJson { + + /** + * Text used for citaiton. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Title of the cited document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * URI used for citation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Text used for citaiton. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Text used for citaiton. + * @param text text or {@code null} for none + */ + public CitationsCitedChunk setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Title of the cited document. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Title of the cited document. + * @param title title or {@code null} for none + */ + public CitationsCitedChunk setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * URI used for citation. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * URI used for citation. + * @param uri uri or {@code null} for none + */ + public CitationsCitedChunk setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public CitationsCitedChunk set(String fieldName, Object value) { + return (CitationsCitedChunk) super.set(fieldName, value); + } + + @Override + public CitationsCitedChunk clone() { + return (CitationsCitedChunk) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientCertificateSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientCertificateSettings.java new file mode 100644 index 00000000000..a7557fa0341 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientCertificateSettings.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings for custom client certificates. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ClientCertificateSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String passphrase; + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateKey; + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tlsCertificate; + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getPassphrase() { + return passphrase; + } + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * @param passphrase passphrase or {@code null} for none + */ + public ClientCertificateSettings setPassphrase(java.lang.String passphrase) { + this.passphrase = passphrase; + return this; + } + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getPrivateKey() { + return privateKey; + } + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * @param privateKey privateKey or {@code null} for none + */ + public ClientCertificateSettings setPrivateKey(java.lang.String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * @return value or {@code null} for none + */ + public java.lang.String getTlsCertificate() { + return tlsCertificate; + } + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * @param tlsCertificate tlsCertificate or {@code null} for none + */ + public ClientCertificateSettings setTlsCertificate(java.lang.String tlsCertificate) { + this.tlsCertificate = tlsCertificate; + return this; + } + + @Override + public ClientCertificateSettings set(String fieldName, Object value) { + return (ClientCertificateSettings) super.set(fieldName, value); + } + + @Override + public ClientCertificateSettings clone() { + return (ClientCertificateSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientFunction.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientFunction.java new file mode 100644 index 00000000000..8823f9ffb4e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ClientFunction.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a client-side function that the agent can invoke. When the tool is chosen by the + * agent, control is handed off to the client. The client is responsible for executing the function + * and returning the result as a ToolResponse to continue the interaction with the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ClientFunction extends com.google.api.client.json.GenericJson { + + /** + * Optional. The function description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The function name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The schema of the function parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema parameters; + + /** + * Optional. The schema of the function response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema response; + + /** + * Optional. The function description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The function description. + * @param description description or {@code null} for none + */ + public ClientFunction setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The function name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The function name. + * @param name name or {@code null} for none + */ + public ClientFunction setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The schema of the function parameters. + * @return value or {@code null} for none + */ + public Schema getParameters() { + return parameters; + } + + /** + * Optional. The schema of the function parameters. + * @param parameters parameters or {@code null} for none + */ + public ClientFunction setParameters(Schema parameters) { + this.parameters = parameters; + return this; + } + + /** + * Optional. The schema of the function response. + * @return value or {@code null} for none + */ + public Schema getResponse() { + return response; + } + + /** + * Optional. The schema of the function response. + * @param response response or {@code null} for none + */ + public ClientFunction setResponse(Schema response) { + this.response = response; + return this; + } + + @Override + public ClientFunction set(String fieldName, Object value) { + return (ClientFunction) super.set(fieldName, value); + } + + @Override + public ClientFunction clone() { + return (ClientFunction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CloudLoggingSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CloudLoggingSettings.java new file mode 100644 index 00000000000..29169c3ffae --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CloudLoggingSettings.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the Cloud Logging behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CloudLoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableCloudLogging; + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableCloudLogging() { + return enableCloudLogging; + } + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * @param enableCloudLogging enableCloudLogging or {@code null} for none + */ + public CloudLoggingSettings setEnableCloudLogging(java.lang.Boolean enableCloudLogging) { + this.enableCloudLogging = enableCloudLogging; + return this; + } + + @Override + public CloudLoggingSettings set(String fieldName, Object value) { + return (CloudLoggingSettings) super.set(fieldName, value); + } + + @Override + public CloudLoggingSettings clone() { + return (CloudLoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CodeBlock.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CodeBlock.java new file mode 100644 index 00000000000..011abdbbe7a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/CodeBlock.java @@ -0,0 +1,79 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A code block to be executed instead of a real tool call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CodeBlock extends com.google.api.client.json.GenericJson { + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * @param pythonCode pythonCode or {@code null} for none + */ + public CodeBlock setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public CodeBlock set(String fieldName, Object value) { + return (CodeBlock) super.set(fieldName, value); + } + + @Override + public CodeBlock clone() { + return (CodeBlock) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorTool.java new file mode 100644 index 00000000000..fc627c7cb6d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorTool.java @@ -0,0 +1,188 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A ConnectorTool allows connections to different integrations. See: + * https://cloud.google.com/integration-connectors/docs/overview. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectorTool extends com.google.api.client.json.GenericJson { + + /** + * Required. Action for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Action action; + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfig authConfig; + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connection; + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. Action for the tool to use. + * @return value or {@code null} for none + */ + public Action getAction() { + return action; + } + + /** + * Required. Action for the tool to use. + * @param action action or {@code null} for none + */ + public ConnectorTool setAction(Action action) { + this.action = action; + return this; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * @return value or {@code null} for none + */ + public EndUserAuthConfig getAuthConfig() { + return authConfig; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * @param authConfig authConfig or {@code null} for none + */ + public ConnectorTool setAuthConfig(EndUserAuthConfig authConfig) { + this.authConfig = authConfig; + return this; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @return value or {@code null} for none + */ + public java.lang.String getConnection() { + return connection; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @param connection connection or {@code null} for none + */ + public ConnectorTool setConnection(java.lang.String connection) { + this.connection = connection; + return this; + } + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * @param description description or {@code null} for none + */ + public ConnectorTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * @param name name or {@code null} for none + */ + public ConnectorTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public ConnectorTool set(String fieldName, Object value) { + return (ConnectorTool) super.set(fieldName, value); + } + + @Override + public ConnectorTool clone() { + return (ConnectorTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorToolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorToolset.java new file mode 100644 index 00000000000..5d8b0f497df --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConnectorToolset.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A toolset that generates tools from an Integration Connectors Connection. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectorToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfig authConfig; + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connection; + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List connectorActions; + + static { + // hack to force ProGuard to consider Action 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(Action.class); + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * @return value or {@code null} for none + */ + public EndUserAuthConfig getAuthConfig() { + return authConfig; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * @param authConfig authConfig or {@code null} for none + */ + public ConnectorToolset setAuthConfig(EndUserAuthConfig authConfig) { + this.authConfig = authConfig; + return this; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @return value or {@code null} for none + */ + public java.lang.String getConnection() { + return connection; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @param connection connection or {@code null} for none + */ + public ConnectorToolset setConnection(java.lang.String connection) { + this.connection = connection; + return this; + } + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * @return value or {@code null} for none + */ + public java.util.List getConnectorActions() { + return connectorActions; + } + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * @param connectorActions connectorActions or {@code null} for none + */ + public ConnectorToolset setConnectorActions(java.util.List connectorActions) { + this.connectorActions = connectorActions; + return this; + } + + @Override + public ConnectorToolset set(String fieldName, Object value) { + return (ConnectorToolset) super.set(fieldName, value); + } + + @Override + public ConnectorToolset clone() { + return (ConnectorToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java new file mode 100644 index 00000000000..e056505f866 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Conversation.java @@ -0,0 +1,370 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A conversation represents an interaction between an end user and the CES app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Conversation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * DEPRECATED. Please use input_types instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelType; + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Output only. Timestamp when the conversation was completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Output only. The input types of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputTypes; + + /** + * Output only. The language code of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Deprecated. Use turns instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Identifier. The unique identifier of the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Indicate the source of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. Timestamp when the conversation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The number of turns in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer turnCount; + + /** + * Required. The turns in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List turns; + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param appVersion appVersion or {@code null} for none + */ + public Conversation setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * DEPRECATED. Please use input_types instead. + * @return value or {@code null} for none + */ + public java.lang.String getChannelType() { + return channelType; + } + + /** + * DEPRECATED. Please use input_types instead. + * @param channelType channelType or {@code null} for none + */ + public Conversation setChannelType(java.lang.String channelType) { + this.channelType = channelType; + return this; + } + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @param deployment deployment or {@code null} for none + */ + public Conversation setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Output only. Timestamp when the conversation was completed. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. Timestamp when the conversation was completed. + * @param endTime endTime or {@code null} for none + */ + public Conversation setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getEntryAgent() { + return entryAgent; + } + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param entryAgent entryAgent or {@code null} for none + */ + public Conversation setEntryAgent(java.lang.String entryAgent) { + this.entryAgent = entryAgent; + return this; + } + + /** + * Output only. The input types of the conversation. + * @return value or {@code null} for none + */ + public java.util.List getInputTypes() { + return inputTypes; + } + + /** + * Output only. The input types of the conversation. + * @param inputTypes inputTypes or {@code null} for none + */ + public Conversation setInputTypes(java.util.List inputTypes) { + this.inputTypes = inputTypes; + return this; + } + + /** + * Output only. The language code of the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Output only. The language code of the conversation. + * @param languageCode languageCode or {@code null} for none + */ + public Conversation setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Deprecated. Use turns instead. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Deprecated. Use turns instead. + * @param messages messages or {@code null} for none + */ + public Conversation setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Identifier. The unique identifier of the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * @param name name or {@code null} for none + */ + public Conversation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Indicate the source of the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. Indicate the source of the conversation. + * @param source source or {@code null} for none + */ + public Conversation setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. Timestamp when the conversation was created. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Timestamp when the conversation was created. + * @param startTime startTime or {@code null} for none + */ + public Conversation setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The number of turns in the conversation. + * @return value or {@code null} for none + */ + public java.lang.Integer getTurnCount() { + return turnCount; + } + + /** + * Output only. The number of turns in the conversation. + * @param turnCount turnCount or {@code null} for none + */ + public Conversation setTurnCount(java.lang.Integer turnCount) { + this.turnCount = turnCount; + return this; + } + + /** + * Required. The turns in the conversation. + * @return value or {@code null} for none + */ + public java.util.List getTurns() { + return turns; + } + + /** + * Required. The turns in the conversation. + * @param turns turns or {@code null} for none + */ + public Conversation setTurns(java.util.List turns) { + this.turns = turns; + return this; + } + + @Override + public Conversation set(String fieldName, Object value) { + return (Conversation) super.set(fieldName, value); + } + + @Override + public Conversation clone() { + return (Conversation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationLoggingSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationLoggingSettings.java new file mode 100644 index 00000000000..70e0ebd3bc1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationLoggingSettings.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the conversation logging behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConversationLoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to disable conversation logging for the sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableConversationLogging; + + /** + * Optional. Whether to disable conversation logging for the sessions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableConversationLogging() { + return disableConversationLogging; + } + + /** + * Optional. Whether to disable conversation logging for the sessions. + * @param disableConversationLogging disableConversationLogging or {@code null} for none + */ + public ConversationLoggingSettings setDisableConversationLogging(java.lang.Boolean disableConversationLogging) { + this.disableConversationLogging = disableConversationLogging; + return this; + } + + @Override + public ConversationLoggingSettings set(String fieldName, Object value) { + return (ConversationLoggingSettings) super.set(fieldName, value); + } + + @Override + public ConversationLoggingSettings clone() { + return (ConversationLoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java new file mode 100644 index 00000000000..dd31029417b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ConversationTurn.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * All information about a single turn 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConversationTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Optional. The root span of the action processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Span rootSpan; + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * @param messages messages or {@code null} for none + */ + public ConversationTurn setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Optional. The root span of the action processing. + * @return value or {@code null} for none + */ + public Span getRootSpan() { + return rootSpan; + } + + /** + * Optional. The root span of the action processing. + * @param rootSpan rootSpan or {@code null} for none + */ + public ConversationTurn setRootSpan(Span rootSpan) { + this.rootSpan = rootSpan; + return this; + } + + @Override + public ConversationTurn set(String fieldName, Object value) { + return (ConversationTurn) super.set(fieldName, value); + } + + @Override + public ConversationTurn clone() { + return (ConversationTurn) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java new file mode 100644 index 00000000000..ab85f5c3f26 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStore.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A DataStore resource in Vertex AI Search. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStore extends com.google.api.client.json.GenericJson { + + /** + * Output only. The connector config for the data store connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreConnectorConfig connectorConfig; + + /** + * Output only. Timestamp when the data store was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The display name of the data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentProcessingMode; + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The connector config for the data store connection. + * @return value or {@code null} for none + */ + public DataStoreConnectorConfig getConnectorConfig() { + return connectorConfig; + } + + /** + * Output only. The connector config for the data store connection. + * @param connectorConfig connectorConfig or {@code null} for none + */ + public DataStore setConnectorConfig(DataStoreConnectorConfig connectorConfig) { + this.connectorConfig = connectorConfig; + return this; + } + + /** + * Output only. Timestamp when the data store was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the data store was created. + * @param createTime createTime or {@code null} for none + */ + public DataStore setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The display name of the data store. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the data store. + * @param displayName displayName or {@code null} for none + */ + public DataStore setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentProcessingMode() { + return documentProcessingMode; + } + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * @param documentProcessingMode documentProcessingMode or {@code null} for none + */ + public DataStore setDocumentProcessingMode(java.lang.String documentProcessingMode) { + this.documentProcessingMode = documentProcessingMode; + return this; + } + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * @param name name or {@code null} for none + */ + public DataStore setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * @param type type or {@code null} for none + */ + public DataStore setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public DataStore set(String fieldName, Object value) { + return (DataStore) super.set(fieldName, value); + } + + @Override + public DataStore clone() { + return (DataStore) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreConnectorConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreConnectorConfig.java new file mode 100644 index 00000000000..0965271e4b3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreConnectorConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The connector config for the data store connection. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreConnectorConfig extends com.google.api.client.json.GenericJson { + + /** + * Resource name of the collection the data store belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collection; + + /** + * Display name of the collection the data store belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collectionDisplayName; + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataSource; + + /** + * Resource name of the collection the data store belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getCollection() { + return collection; + } + + /** + * Resource name of the collection the data store belongs to. + * @param collection collection or {@code null} for none + */ + public DataStoreConnectorConfig setCollection(java.lang.String collection) { + this.collection = collection; + return this; + } + + /** + * Display name of the collection the data store belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getCollectionDisplayName() { + return collectionDisplayName; + } + + /** + * Display name of the collection the data store belongs to. + * @param collectionDisplayName collectionDisplayName or {@code null} for none + */ + public DataStoreConnectorConfig setCollectionDisplayName(java.lang.String collectionDisplayName) { + this.collectionDisplayName = collectionDisplayName; + return this; + } + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * @return value or {@code null} for none + */ + public java.lang.String getDataSource() { + return dataSource; + } + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * @param dataSource dataSource or {@code null} for none + */ + public DataStoreConnectorConfig setDataSource(java.lang.String dataSource) { + this.dataSource = dataSource; + return this; + } + + @Override + public DataStoreConnectorConfig set(String fieldName, Object value) { + return (DataStoreConnectorConfig) super.set(fieldName, value); + } + + @Override + public DataStoreConnectorConfig clone() { + return (DataStoreConnectorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettings.java new file mode 100644 index 00000000000..fe00095d6ad --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettings.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Data store related settings for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreSettings extends com.google.api.client.json.GenericJson { + + /** + * Output only. The engines for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List engines; + + /** + * Output only. The engines for the app. + * @return value or {@code null} for none + */ + public java.util.List getEngines() { + return engines; + } + + /** + * Output only. The engines for the app. + * @param engines engines or {@code null} for none + */ + public DataStoreSettings setEngines(java.util.List engines) { + this.engines = engines; + return this; + } + + @Override + public DataStoreSettings set(String fieldName, Object value) { + return (DataStoreSettings) super.set(fieldName, value); + } + + @Override + public DataStoreSettings clone() { + return (DataStoreSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettingsEngine.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettingsEngine.java new file mode 100644 index 00000000000..a4dfbd46927 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreSettingsEngine.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An engine to which the data stores are connected. See Vertex AI Search: + * https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreSettingsEngine extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The type of the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param name name or {@code null} for none + */ + public DataStoreSettingsEngine setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The type of the engine. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the engine. + * @param type type or {@code null} for none + */ + public DataStoreSettingsEngine setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public DataStoreSettingsEngine set(String fieldName, Object value) { + return (DataStoreSettingsEngine) super.set(fieldName, value); + } + + @Override + public DataStoreSettingsEngine clone() { + return (DataStoreSettingsEngine) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreTool.java new file mode 100644 index 00000000000..531dd23f0f6 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreTool.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Tool to retrieve from Vertex AI Search datastore or engine for grounding. Accepts either a + * datastore or an engine, but not both. See Vertex AI Search: https://cloud.google.com/generative- + * ai-app-builder/docs/enterprise-search-introduction. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Boost specification to boost certain documents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List boostSpecs; + + /** + * Optional. Search within a single specific DataStore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolDataStoreSource dataStoreSource; + + /** + * Optional. The tool description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Search within an Engine (potentially across multiple DataStores). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolEngineSource engineSource; + + /** + * Optional. The filter parameter behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filterParameterBehavior; + + /** + * Optional. The modality configs for the data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List modalityConfigs; + + /** + * Required. The data store tool name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Boost specification to boost certain documents. + * @return value or {@code null} for none + */ + public java.util.List getBoostSpecs() { + return boostSpecs; + } + + /** + * Optional. Boost specification to boost certain documents. + * @param boostSpecs boostSpecs or {@code null} for none + */ + public DataStoreTool setBoostSpecs(java.util.List boostSpecs) { + this.boostSpecs = boostSpecs; + return this; + } + + /** + * Optional. Search within a single specific DataStore. + * @return value or {@code null} for none + */ + public DataStoreToolDataStoreSource getDataStoreSource() { + return dataStoreSource; + } + + /** + * Optional. Search within a single specific DataStore. + * @param dataStoreSource dataStoreSource or {@code null} for none + */ + public DataStoreTool setDataStoreSource(DataStoreToolDataStoreSource dataStoreSource) { + this.dataStoreSource = dataStoreSource; + return this; + } + + /** + * Optional. The tool description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The tool description. + * @param description description or {@code null} for none + */ + public DataStoreTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Search within an Engine (potentially across multiple DataStores). + * @return value or {@code null} for none + */ + public DataStoreToolEngineSource getEngineSource() { + return engineSource; + } + + /** + * Optional. Search within an Engine (potentially across multiple DataStores). + * @param engineSource engineSource or {@code null} for none + */ + public DataStoreTool setEngineSource(DataStoreToolEngineSource engineSource) { + this.engineSource = engineSource; + return this; + } + + /** + * Optional. The filter parameter behavior. + * @return value or {@code null} for none + */ + public java.lang.String getFilterParameterBehavior() { + return filterParameterBehavior; + } + + /** + * Optional. The filter parameter behavior. + * @param filterParameterBehavior filterParameterBehavior or {@code null} for none + */ + public DataStoreTool setFilterParameterBehavior(java.lang.String filterParameterBehavior) { + this.filterParameterBehavior = filterParameterBehavior; + return this; + } + + /** + * Optional. The modality configs for the data store. + * @return value or {@code null} for none + */ + public java.util.List getModalityConfigs() { + return modalityConfigs; + } + + /** + * Optional. The modality configs for the data store. + * @param modalityConfigs modalityConfigs or {@code null} for none + */ + public DataStoreTool setModalityConfigs(java.util.List modalityConfigs) { + this.modalityConfigs = modalityConfigs; + return this; + } + + /** + * Required. The data store tool name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The data store tool name. + * @param name name or {@code null} for none + */ + public DataStoreTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public DataStoreTool set(String fieldName, Object value) { + return (DataStoreTool) super.set(fieldName, value); + } + + @Override + public DataStoreTool clone() { + return (DataStoreTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpec.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpec.java new file mode 100644 index 00000000000..9819978a64f --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpec.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Boost specification to boost certain documents. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of boosting specifications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conditionBoostSpecs; + + /** + * Required. A list of boosting specifications. + * @return value or {@code null} for none + */ + public java.util.List getConditionBoostSpecs() { + return conditionBoostSpecs; + } + + /** + * Required. A list of boosting specifications. + * @param conditionBoostSpecs conditionBoostSpecs or {@code null} for none + */ + public DataStoreToolBoostSpec setConditionBoostSpecs(java.util.List conditionBoostSpecs) { + this.conditionBoostSpecs = conditionBoostSpecs; + return this; + } + + @Override + public DataStoreToolBoostSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpec clone() { + return (DataStoreToolBoostSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpec.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpec.java new file mode 100644 index 00000000000..cc6eba5823d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpec.java @@ -0,0 +1,133 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Boost specification for a condition. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float boost; + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec boostControlSpec; + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String condition; + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * @return value or {@code null} for none + */ + public java.lang.Float getBoost() { + return boost; + } + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * @param boost boost or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setBoost(java.lang.Float boost) { + this.boost = boost; + return this; + } + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * @return value or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec getBoostControlSpec() { + return boostControlSpec; + } + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * @param boostControlSpec boostControlSpec or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setBoostControlSpec(DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec boostControlSpec) { + this.boostControlSpec = boostControlSpec; + return this; + } + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * @return value or {@code null} for none + */ + public java.lang.String getCondition() { + return condition; + } + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * @param condition condition or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setCondition(java.lang.String condition) { + this.condition = condition; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpec clone() { + return (DataStoreToolBoostSpecConditionBoostSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java new file mode 100644 index 00000000000..88e84eedbf8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java @@ -0,0 +1,152 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Specification for custom ranking based on customer specified attribute value. It provides more + * controls for customized ranking than the simple (condition, boost) combination above. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributeType; + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List controlPoints; + + /** + * Optional. The name of the field whose value will be used to determine the boost amount. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fieldName; + + /** + * Optional. The interpolation type to be applied to connect the control points listed below. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interpolationType; + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * @return value or {@code null} for none + */ + public java.lang.String getAttributeType() { + return attributeType; + } + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * @param attributeType attributeType or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setAttributeType(java.lang.String attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * @return value or {@code null} for none + */ + public java.util.List getControlPoints() { + return controlPoints; + } + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * @param controlPoints controlPoints or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setControlPoints(java.util.List controlPoints) { + this.controlPoints = controlPoints; + return this; + } + + /** + * Optional. The name of the field whose value will be used to determine the boost amount. + * @return value or {@code null} for none + */ + public java.lang.String getFieldName() { + return fieldName; + } + + /** + * Optional. The name of the field whose value will be used to determine the boost amount. + * @param fieldName fieldName or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setFieldName(java.lang.String fieldName) { + this.fieldName = fieldName; + return this; + } + + /** + * Optional. The interpolation type to be applied to connect the control points listed below. + * @return value or {@code null} for none + */ + public java.lang.String getInterpolationType() { + return interpolationType; + } + + /** + * Optional. The interpolation type to be applied to connect the control points listed below. + * @param interpolationType interpolationType or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setInterpolationType(java.lang.String interpolationType) { + this.interpolationType = interpolationType; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec clone() { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.java new file mode 100644 index 00000000000..73ea060f66d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.java @@ -0,0 +1,101 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The control points used to define the curve. The curve defined through these control points can + * only be monotonically increasing or decreasing(constant values are acceptable). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint extends com.google.api.client.json.GenericJson { + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributeValue; + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float boostAmount; + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * @return value or {@code null} for none + */ + public java.lang.String getAttributeValue() { + return attributeValue; + } + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * @param attributeValue attributeValue or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint setAttributeValue(java.lang.String attributeValue) { + this.attributeValue = attributeValue; + return this; + } + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * @return value or {@code null} for none + */ + public java.lang.Float getBoostAmount() { + return boostAmount; + } + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * @param boostAmount boostAmount or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint setBoostAmount(java.lang.Float boostAmount) { + this.boostAmount = boostAmount; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint clone() { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecs.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecs.java new file mode 100644 index 00000000000..e48b8ab83f5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolBoostSpecs.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Boost specifications to boost certain documents. For more information, please refer to + * https://cloud.google.com/generative-ai-app-builder/docs/boosting. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecs extends com.google.api.client.json.GenericJson { + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataStores; + + /** + * Required. A list of boosting specifications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List spec; + + static { + // hack to force ProGuard to consider DataStoreToolBoostSpec 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(DataStoreToolBoostSpec.class); + } + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * @return value or {@code null} for none + */ + public java.util.List getDataStores() { + return dataStores; + } + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * @param dataStores dataStores or {@code null} for none + */ + public DataStoreToolBoostSpecs setDataStores(java.util.List dataStores) { + this.dataStores = dataStores; + return this; + } + + /** + * Required. A list of boosting specifications. + * @return value or {@code null} for none + */ + public java.util.List getSpec() { + return spec; + } + + /** + * Required. A list of boosting specifications. + * @param spec spec or {@code null} for none + */ + public DataStoreToolBoostSpecs setSpec(java.util.List spec) { + this.spec = spec; + return this; + } + + @Override + public DataStoreToolBoostSpecs set(String fieldName, Object value) { + return (DataStoreToolBoostSpecs) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecs clone() { + return (DataStoreToolBoostSpecs) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolDataStoreSource.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolDataStoreSource.java new file mode 100644 index 00000000000..8bef27db70a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolDataStoreSource.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for searching within a specific DataStore. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolDataStoreSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. The data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStore dataStore; + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. The data store. + * @return value or {@code null} for none + */ + public DataStore getDataStore() { + return dataStore; + } + + /** + * Optional. The data store. + * @param dataStore dataStore or {@code null} for none + */ + public DataStoreToolDataStoreSource setDataStore(DataStore dataStore) { + this.dataStore = dataStore; + return this; + } + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * @param filter filter or {@code null} for none + */ + public DataStoreToolDataStoreSource setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public DataStoreToolDataStoreSource set(String fieldName, Object value) { + return (DataStoreToolDataStoreSource) super.set(fieldName, value); + } + + @Override + public DataStoreToolDataStoreSource clone() { + return (DataStoreToolDataStoreSource) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolEngineSource.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolEngineSource.java new file mode 100644 index 00000000000..f15fc762ff8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolEngineSource.java @@ -0,0 +1,133 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for searching within an Engine, potentially targeting specific DataStores. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolEngineSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataStoreSources; + + static { + // hack to force ProGuard to consider DataStoreToolDataStoreSource 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(DataStoreToolDataStoreSource.class); + } + + /** + * Required. Full resource name of the Engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String engine; + + /** + * Optional. A filter applied to the search across the Engine. Not relevant and not used if + * 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app- + * builder/docs/filter-search-metadata + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * @return value or {@code null} for none + */ + public java.util.List getDataStoreSources() { + return dataStoreSources; + } + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * @param dataStoreSources dataStoreSources or {@code null} for none + */ + public DataStoreToolEngineSource setDataStoreSources(java.util.List dataStoreSources) { + this.dataStoreSources = dataStoreSources; + return this; + } + + /** + * Required. Full resource name of the Engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @return value or {@code null} for none + */ + public java.lang.String getEngine() { + return engine; + } + + /** + * Required. Full resource name of the Engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param engine engine or {@code null} for none + */ + public DataStoreToolEngineSource setEngine(java.lang.String engine) { + this.engine = engine; + return this; + } + + /** + * Optional. A filter applied to the search across the Engine. Not relevant and not used if + * 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app- + * builder/docs/filter-search-metadata + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter applied to the search across the Engine. Not relevant and not used if + * 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app- + * builder/docs/filter-search-metadata + * @param filter filter or {@code null} for none + */ + public DataStoreToolEngineSource setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public DataStoreToolEngineSource set(String fieldName, Object value) { + return (DataStoreToolEngineSource) super.set(fieldName, value); + } + + @Override + public DataStoreToolEngineSource clone() { + return (DataStoreToolEngineSource) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolGroundingConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolGroundingConfig.java new file mode 100644 index 00000000000..3b63a397867 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolGroundingConfig.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.ces.v1.model; + +/** + * Grounding 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolGroundingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether grounding is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float groundingLevel; + + /** + * Optional. Whether grounding is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether grounding is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolGroundingConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * @return value or {@code null} for none + */ + public java.lang.Float getGroundingLevel() { + return groundingLevel; + } + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * @param groundingLevel groundingLevel or {@code null} for none + */ + public DataStoreToolGroundingConfig setGroundingLevel(java.lang.Float groundingLevel) { + this.groundingLevel = groundingLevel; + return this; + } + + @Override + public DataStoreToolGroundingConfig set(String fieldName, Object value) { + return (DataStoreToolGroundingConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolGroundingConfig clone() { + return (DataStoreToolGroundingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolModalityConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolModalityConfig.java new file mode 100644 index 00000000000..e3d4a442552 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolModalityConfig.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * If specified, will apply the given configuration for the specified modality. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolModalityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The grounding configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolGroundingConfig groundingConfig; + + /** + * Required. The modality type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modalityType; + + /** + * Optional. The rewriter config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolRewriterConfig rewriterConfig; + + /** + * Optional. The summarization config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolSummarizationConfig summarizationConfig; + + /** + * Optional. The grounding configuration. + * @return value or {@code null} for none + */ + public DataStoreToolGroundingConfig getGroundingConfig() { + return groundingConfig; + } + + /** + * Optional. The grounding configuration. + * @param groundingConfig groundingConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setGroundingConfig(DataStoreToolGroundingConfig groundingConfig) { + this.groundingConfig = groundingConfig; + return this; + } + + /** + * Required. The modality type. + * @return value or {@code null} for none + */ + public java.lang.String getModalityType() { + return modalityType; + } + + /** + * Required. The modality type. + * @param modalityType modalityType or {@code null} for none + */ + public DataStoreToolModalityConfig setModalityType(java.lang.String modalityType) { + this.modalityType = modalityType; + return this; + } + + /** + * Optional. The rewriter config. + * @return value or {@code null} for none + */ + public DataStoreToolRewriterConfig getRewriterConfig() { + return rewriterConfig; + } + + /** + * Optional. The rewriter config. + * @param rewriterConfig rewriterConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setRewriterConfig(DataStoreToolRewriterConfig rewriterConfig) { + this.rewriterConfig = rewriterConfig; + return this; + } + + /** + * Optional. The summarization config. + * @return value or {@code null} for none + */ + public DataStoreToolSummarizationConfig getSummarizationConfig() { + return summarizationConfig; + } + + /** + * Optional. The summarization config. + * @param summarizationConfig summarizationConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setSummarizationConfig(DataStoreToolSummarizationConfig summarizationConfig) { + this.summarizationConfig = summarizationConfig; + return this; + } + + @Override + public DataStoreToolModalityConfig set(String fieldName, Object value) { + return (DataStoreToolModalityConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolModalityConfig clone() { + return (DataStoreToolModalityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolRewriterConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolRewriterConfig.java new file mode 100644 index 00000000000..a8662d82f93 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolRewriterConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Rewriter 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolRewriterConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the rewriter is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. Whether the rewriter is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the rewriter is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolRewriterConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Required. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public DataStoreToolRewriterConfig setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @param prompt prompt or {@code null} for none + */ + public DataStoreToolRewriterConfig setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public DataStoreToolRewriterConfig set(String fieldName, Object value) { + return (DataStoreToolRewriterConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolRewriterConfig clone() { + return (DataStoreToolRewriterConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSummarizationConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSummarizationConfig.java new file mode 100644 index 00000000000..6d3a67d73e9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/DataStoreToolSummarizationConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Summarization 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolSummarizationConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether summarization is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Optional. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. Whether summarization is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether summarization is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolSummarizationConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Optional. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public DataStoreToolSummarizationConfig setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @param prompt prompt or {@code null} for none + */ + public DataStoreToolSummarizationConfig setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public DataStoreToolSummarizationConfig set(String fieldName, Object value) { + return (DataStoreToolSummarizationConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolSummarizationConfig clone() { + return (DataStoreToolSummarizationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java new file mode 100644 index 00000000000..430cdba38ec --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Deployment.java @@ -0,0 +1,221 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A deployment represents an immutable, queryable version of the app. It is used to deploy an app + * version with a specific channel profile. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Deployment extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * Required. The channel profile used in the deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfile channelProfile; + + /** + * Output only. Timestamp when this deployment was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. Display name of the deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when this deployment was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * @param appVersion appVersion or {@code null} for none + */ + public Deployment setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * Required. The channel profile used in the deployment. + * @return value or {@code null} for none + */ + public ChannelProfile getChannelProfile() { + return channelProfile; + } + + /** + * Required. The channel profile used in the deployment. + * @param channelProfile channelProfile or {@code null} for none + */ + public Deployment setChannelProfile(ChannelProfile channelProfile) { + this.channelProfile = channelProfile; + return this; + } + + /** + * Output only. Timestamp when this deployment was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when this deployment was created. + * @param createTime createTime or {@code null} for none + */ + public Deployment setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. Display name of the deployment. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the deployment. + * @param displayName displayName or {@code null} for none + */ + public Deployment setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Deployment setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param name name or {@code null} for none + */ + public Deployment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when this deployment was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when this deployment was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Deployment setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Deployment set(String fieldName, Object value) { + return (Deployment) super.set(fieldName, value); + } + + @Override + public Deployment clone() { + return (Deployment) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Empty.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Empty.java new file mode 100644 index 00000000000..75e35a91de1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Empty.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndSession.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndSession.java new file mode 100644 index 00000000000..59789e99aa5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndSession.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.ces.v1.model; + +/** + * Indicates the session has terminated, due to either successful completion (e.g. user says "Good + * bye!" ) or an agent escalation. The agent will not process any further inputs after session is + * terminated and the client should half-close and disconnect after receiving all remaining + * responses from the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndSession extends com.google.api.client.json.GenericJson { + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * @param metadata metadata or {@code null} for none + */ + public EndSession setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + @Override + public EndSession set(String fieldName, Object value) { + return (EndSession) super.set(fieldName, value); + } + + @Override + public EndSession clone() { + return (EndSession) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfig.java new file mode 100644 index 00000000000..5a8b6fa2851 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfig.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * End-user authentication configuration used for Connection calls. The field values must be the + * names of context variables in the format `$context.variables.`. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Oauth 2.0 Authorization Code authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfigOauth2AuthCodeConfig oauth2AuthCodeConfig; + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfigOauth2JwtBearerConfig oauth2JwtBearerConfig; + + /** + * Oauth 2.0 Authorization Code authentication. + * @return value or {@code null} for none + */ + public EndUserAuthConfigOauth2AuthCodeConfig getOauth2AuthCodeConfig() { + return oauth2AuthCodeConfig; + } + + /** + * Oauth 2.0 Authorization Code authentication. + * @param oauth2AuthCodeConfig oauth2AuthCodeConfig or {@code null} for none + */ + public EndUserAuthConfig setOauth2AuthCodeConfig(EndUserAuthConfigOauth2AuthCodeConfig oauth2AuthCodeConfig) { + this.oauth2AuthCodeConfig = oauth2AuthCodeConfig; + return this; + } + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * @return value or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig getOauth2JwtBearerConfig() { + return oauth2JwtBearerConfig; + } + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * @param oauth2JwtBearerConfig oauth2JwtBearerConfig or {@code null} for none + */ + public EndUserAuthConfig setOauth2JwtBearerConfig(EndUserAuthConfigOauth2JwtBearerConfig oauth2JwtBearerConfig) { + this.oauth2JwtBearerConfig = oauth2JwtBearerConfig; + return this; + } + + @Override + public EndUserAuthConfig set(String fieldName, Object value) { + return (EndUserAuthConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfig clone() { + return (EndUserAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2AuthCodeConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2AuthCodeConfig.java new file mode 100644 index 00000000000..ca549104651 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2AuthCodeConfig.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Oauth 2.0 Authorization Code authentication 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfigOauth2AuthCodeConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauthToken; + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * @param oauthToken oauthToken or {@code null} for none + */ + public EndUserAuthConfigOauth2AuthCodeConfig setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + @Override + public EndUserAuthConfigOauth2AuthCodeConfig set(String fieldName, Object value) { + return (EndUserAuthConfigOauth2AuthCodeConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfigOauth2AuthCodeConfig clone() { + return (EndUserAuthConfigOauth2AuthCodeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2JwtBearerConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2JwtBearerConfig.java new file mode 100644 index 00000000000..8716057f1c3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EndUserAuthConfigOauth2JwtBearerConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * JWT Profile Oauth 2.0 Authorization Grant authentication 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfigOauth2JwtBearerConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientKey; + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issuer; + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subject; + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getClientKey() { + return clientKey; + } + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * @param clientKey clientKey or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setClientKey(java.lang.String clientKey) { + this.clientKey = clientKey; + return this; + } + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getIssuer() { + return issuer; + } + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * @param issuer issuer or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setIssuer(java.lang.String issuer) { + this.issuer = issuer; + return this; + } + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getSubject() { + return subject; + } + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * @param subject subject or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setSubject(java.lang.String subject) { + this.subject = subject; + return this; + } + + @Override + public EndUserAuthConfigOauth2JwtBearerConfig set(String fieldName, Object value) { + return (EndUserAuthConfigOauth2JwtBearerConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfigOauth2JwtBearerConfig clone() { + return (EndUserAuthConfigOauth2JwtBearerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholds.java new file mode 100644 index 00000000000..f770e69cd3b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholds.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.ces.v1.model; + +/** + * Threshold settings for metrics in an Evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The golden evaluation metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds; + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenHallucinationMetricBehavior; + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hallucinationMetricBehavior; + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scenarioHallucinationMetricBehavior; + + /** + * Optional. The golden evaluation metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds getGoldenEvaluationMetricsThresholds() { + return goldenEvaluationMetricsThresholds; + } + + /** + * Optional. The golden evaluation metrics thresholds. + * @param goldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholds setGoldenEvaluationMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds) { + this.goldenEvaluationMetricsThresholds = goldenEvaluationMetricsThresholds; + return this; + } + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenHallucinationMetricBehavior() { + return goldenHallucinationMetricBehavior; + } + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * @param goldenHallucinationMetricBehavior goldenHallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setGoldenHallucinationMetricBehavior(java.lang.String goldenHallucinationMetricBehavior) { + this.goldenHallucinationMetricBehavior = goldenHallucinationMetricBehavior; + return this; + } + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getHallucinationMetricBehavior() { + return hallucinationMetricBehavior; + } + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * @param hallucinationMetricBehavior hallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setHallucinationMetricBehavior(java.lang.String hallucinationMetricBehavior) { + this.hallucinationMetricBehavior = hallucinationMetricBehavior; + return this; + } + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getScenarioHallucinationMetricBehavior() { + return scenarioHallucinationMetricBehavior; + } + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * @param scenarioHallucinationMetricBehavior scenarioHallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setScenarioHallucinationMetricBehavior(java.lang.String scenarioHallucinationMetricBehavior) { + this.scenarioHallucinationMetricBehavior = scenarioHallucinationMetricBehavior; + return this; + } + + @Override + public EvaluationMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholds clone() { + return (EvaluationMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java new file mode 100644 index 00000000000..7154cded011 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.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.ces.v1.model; + +/** + * Settings for golden evaluations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The expectation level metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds expectationLevelMetricsThresholds; + + /** + * Optional. The turn level metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds turnLevelMetricsThresholds; + + /** + * Optional. The expectation level metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds getExpectationLevelMetricsThresholds() { + return expectationLevelMetricsThresholds; + } + + /** + * Optional. The expectation level metrics thresholds. + * @param expectationLevelMetricsThresholds expectationLevelMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds setExpectationLevelMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds expectationLevelMetricsThresholds) { + this.expectationLevelMetricsThresholds = expectationLevelMetricsThresholds; + return this; + } + + /** + * Optional. The turn level metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds getTurnLevelMetricsThresholds() { + return turnLevelMetricsThresholds; + } + + /** + * Optional. The turn level metrics thresholds. + * @param turnLevelMetricsThresholds turnLevelMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds setTurnLevelMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds turnLevelMetricsThresholds) { + this.turnLevelMetricsThresholds = turnLevelMetricsThresholds; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java new file mode 100644 index 00000000000..d2d5d868090 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Expectation level metrics thresholds. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float toolInvocationParameterCorrectnessThreshold; + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getToolInvocationParameterCorrectnessThreshold() { + return toolInvocationParameterCorrectnessThreshold; + } + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * @param toolInvocationParameterCorrectnessThreshold toolInvocationParameterCorrectnessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds setToolInvocationParameterCorrectnessThreshold(java.lang.Float toolInvocationParameterCorrectnessThreshold) { + this.toolInvocationParameterCorrectnessThreshold = toolInvocationParameterCorrectnessThreshold; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java new file mode 100644 index 00000000000..2e2c9f1fd6d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Turn level metrics thresholds. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float overallToolInvocationCorrectnessThreshold; + + /** + * Optional. The semantic similarity channel to use for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String semanticSimilarityChannel; + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer semanticSimilaritySuccessThreshold; + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getOverallToolInvocationCorrectnessThreshold() { + return overallToolInvocationCorrectnessThreshold; + } + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * @param overallToolInvocationCorrectnessThreshold overallToolInvocationCorrectnessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setOverallToolInvocationCorrectnessThreshold(java.lang.Float overallToolInvocationCorrectnessThreshold) { + this.overallToolInvocationCorrectnessThreshold = overallToolInvocationCorrectnessThreshold; + return this; + } + + /** + * Optional. The semantic similarity channel to use for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getSemanticSimilarityChannel() { + return semanticSimilarityChannel; + } + + /** + * Optional. The semantic similarity channel to use for evaluation. + * @param semanticSimilarityChannel semanticSimilarityChannel or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setSemanticSimilarityChannel(java.lang.String semanticSimilarityChannel) { + this.semanticSimilarityChannel = semanticSimilarityChannel; + return this; + } + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * @return value or {@code null} for none + */ + public java.lang.Integer getSemanticSimilaritySuccessThreshold() { + return semanticSimilaritySuccessThreshold; + } + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * @param semanticSimilaritySuccessThreshold semanticSimilaritySuccessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setSemanticSimilaritySuccessThreshold(java.lang.Integer semanticSimilaritySuccessThreshold) { + this.semanticSimilaritySuccessThreshold = semanticSimilaritySuccessThreshold; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Event.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Event.java new file mode 100644 index 00000000000..abe234968ea --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Event.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Event input. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Event extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String event; + + /** + * Required. The name of the event. + * @return value or {@code null} for none + */ + public java.lang.String getEvent() { + return event; + } + + /** + * Required. The name of the event. + * @param event event or {@code null} for none + */ + public Event setEvent(java.lang.String event) { + this.event = event; + return this; + } + + @Override + public Event set(String fieldName, Object value) { + return (Event) super.set(fieldName, value); + } + + @Override + public Event clone() { + return (Event) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java new file mode 100644 index 00000000000..ab4696325fe --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Example.java @@ -0,0 +1,274 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An example represents a sample conversation between the user and the agent(s). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Example extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the example was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean invalid; + + /** + * Optional. The collection of messages that make up the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the example was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Timestamp when the example was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the example was created. + * @param createTime createTime or {@code null} for none + */ + public Example setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable description of the example. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the example. + * @param description description or {@code null} for none + */ + public Example setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the example. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the example. + * @param displayName displayName or {@code null} for none + */ + public Example setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getEntryAgent() { + return entryAgent; + } + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param entryAgent entryAgent or {@code null} for none + */ + public Example setEntryAgent(java.lang.String entryAgent) { + this.entryAgent = entryAgent; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Example setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInvalid() { + return invalid; + } + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * @param invalid invalid or {@code null} for none + */ + public Example setInvalid(java.lang.Boolean invalid) { + this.invalid = invalid; + return this; + } + + /** + * Optional. The collection of messages that make up the conversation. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Optional. The collection of messages that make up the conversation. + * @param messages messages or {@code null} for none + */ + public Example setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param name name or {@code null} for none + */ + public Example setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the example was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the example was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Example setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Example set(String fieldName, Object value) { + return (Example) super.set(fieldName, value); + } + + @Override + public Example clone() { + return (Example) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExecuteToolRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExecuteToolRequest.java new file mode 100644 index 00000000000..637558ef383 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExecuteToolRequest.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for ToolService.ExecuteTool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExecuteToolRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map args; + + /** + * Optional. The name of the tool to execute. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool to execute. Only one tool should match the predicate from the + * toolset. Otherwise, an error will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @return value or {@code null} for none + */ + public java.util.Map getArgs() { + return args; + } + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @param args args or {@code null} for none + */ + public ExecuteToolRequest setArgs(java.util.Map args) { + this.args = args; + return this; + } + + /** + * Optional. The name of the tool to execute. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to execute. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @param tool tool or {@code null} for none + */ + public ExecuteToolRequest setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool to execute. Only one tool should match the predicate from the + * toolset. Otherwise, an error will be returned. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool to execute. Only one tool should match the predicate from the + * toolset. Otherwise, an error will be returned. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ExecuteToolRequest setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ExecuteToolRequest set(String fieldName, Object value) { + return (ExecuteToolRequest) super.set(fieldName, value); + } + + @Override + public ExecuteToolRequest clone() { + return (ExecuteToolRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExecuteToolResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExecuteToolResponse.java new file mode 100644 index 00000000000..6b8a1c0f9dd --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExecuteToolResponse.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for ToolService.ExecuteTool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExecuteToolResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * The toolset tool that got executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @param response response or {@code null} for none + */ + public ExecuteToolResponse setResponse(java.util.Map response) { + this.response = response; + return this; + } + + /** + * The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public ExecuteToolResponse setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * The toolset tool that got executed. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * The toolset tool that got executed. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ExecuteToolResponse setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ExecuteToolResponse set(String fieldName, Object value) { + return (ExecuteToolResponse) super.set(fieldName, value); + } + + @Override + public ExecuteToolResponse clone() { + return (ExecuteToolResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppRequest.java new file mode 100644 index 00000000000..0c5d60f691e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppRequest.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for AgentService.ExportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The format to export the app in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exportFormat; + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Required. The format to export the app in. + * @return value or {@code null} for none + */ + public java.lang.String getExportFormat() { + return exportFormat; + } + + /** + * Required. The format to export the app in. + * @param exportFormat exportFormat or {@code null} for none + */ + public ExportAppRequest setExportFormat(java.lang.String exportFormat) { + this.exportFormat = exportFormat; + return this; + } + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * @param gcsUri gcsUri or {@code null} for none + */ + public ExportAppRequest setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + @Override + public ExportAppRequest set(String fieldName, Object value) { + return (ExportAppRequest) super.set(fieldName, value); + } + + @Override + public ExportAppRequest clone() { + return (ExportAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppResponse.java new file mode 100644 index 00000000000..62700844208 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExportAppResponse.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ExportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportAppResponse extends com.google.api.client.json.GenericJson { + + /** + * App folder compressed as a zip file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appContent; + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appUri; + + /** + * App folder compressed as a zip file. + * @see #decodeAppContent() + * @return value or {@code null} for none + */ + public java.lang.String getAppContent() { + return appContent; + } + + /** + * App folder compressed as a zip file. + * @see #getAppContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAppContent() { + return com.google.api.client.util.Base64.decodeBase64(appContent); + } + + /** + * App folder compressed as a zip file. + * @see #encodeAppContent() + * @param appContent appContent or {@code null} for none + */ + public ExportAppResponse setAppContent(java.lang.String appContent) { + this.appContent = appContent; + return this; + } + + /** + * App folder compressed as a zip file. + * @see #setAppContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ExportAppResponse encodeAppContent(byte[] appContent) { + this.appContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(appContent); + return this; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * @return value or {@code null} for none + */ + public java.lang.String getAppUri() { + return appUri; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * @param appUri appUri or {@code null} for none + */ + public ExportAppResponse setAppUri(java.lang.String appUri) { + this.appUri = appUri; + return this; + } + + @Override + public ExportAppResponse set(String fieldName, Object value) { + return (ExportAppResponse) super.set(fieldName, value); + } + + @Override + public ExportAppResponse clone() { + return (ExportAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExpressionCondition.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExpressionCondition.java new file mode 100644 index 00000000000..b98f378aef9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ExpressionCondition.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Expression condition based on session 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExpressionCondition extends com.google.api.client.json.GenericJson { + + /** + * Required. The string representation of cloud.api.Expression condition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Required. The string representation of cloud.api.Expression condition. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Required. The string representation of cloud.api.Expression condition. + * @param expression expression or {@code null} for none + */ + public ExpressionCondition setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + @Override + public ExpressionCondition set(String fieldName, Object value) { + return (ExpressionCondition) super.set(fieldName, value); + } + + @Override + public ExpressionCondition clone() { + return (ExpressionCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/FileSearchTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/FileSearchTool.java new file mode 100644 index 00000000000..36a3fe2f286 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/FileSearchTool.java @@ -0,0 +1,144 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The file search tool allows the agent to search across the files uploaded by the app/agent + * developer. It has presets to give relatively good quality search over the uploaded files and + * summarization of the retrieved results. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FileSearchTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String corpusType; + + /** + * Optional. The tool description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileCorpus; + + /** + * Required. The tool name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getCorpusType() { + return corpusType; + } + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * @param corpusType corpusType or {@code null} for none + */ + public FileSearchTool setCorpusType(java.lang.String corpusType) { + this.corpusType = corpusType; + return this; + } + + /** + * Optional. The tool description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The tool description. + * @param description description or {@code null} for none + */ + public FileSearchTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * @return value or {@code null} for none + */ + public java.lang.String getFileCorpus() { + return fileCorpus; + } + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * @param fileCorpus fileCorpus or {@code null} for none + */ + public FileSearchTool setFileCorpus(java.lang.String fileCorpus) { + this.fileCorpus = fileCorpus; + return this; + } + + /** + * Required. The tool name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The tool name. + * @param name name or {@code null} for none + */ + public FileSearchTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public FileSearchTool set(String fieldName, Object value) { + return (FileSearchTool) super.set(fieldName, value); + } + + @Override + public FileSearchTool clone() { + return (FileSearchTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenRequest.java new file mode 100644 index 00000000000..e0b8c94723b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenRequest.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for WidgetService.GenerateChatToken. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateChatTokenRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recaptchaToken; + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param deployment deployment or {@code null} for none + */ + public GenerateChatTokenRequest setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * @return value or {@code null} for none + */ + public java.lang.String getRecaptchaToken() { + return recaptchaToken; + } + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * @param recaptchaToken recaptchaToken or {@code null} for none + */ + public GenerateChatTokenRequest setRecaptchaToken(java.lang.String recaptchaToken) { + this.recaptchaToken = recaptchaToken; + return this; + } + + @Override + public GenerateChatTokenRequest set(String fieldName, Object value) { + return (GenerateChatTokenRequest) super.set(fieldName, value); + } + + @Override + public GenerateChatTokenRequest clone() { + return (GenerateChatTokenRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.java new file mode 100644 index 00000000000..042986e75ae --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GenerateChatTokenResponse.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.ces.v1.model; + +/** + * Response message for WidgetService.GenerateChatToken. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateChatTokenResponse extends com.google.api.client.json.GenericJson { + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chatToken; + + /** + * The time at which the chat token expires. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * @return value or {@code null} for none + */ + public java.lang.String getChatToken() { + return chatToken; + } + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * @param chatToken chatToken or {@code null} for none + */ + public GenerateChatTokenResponse setChatToken(java.lang.String chatToken) { + this.chatToken = chatToken; + return this; + } + + /** + * The time at which the chat token expires. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * The time at which the chat token expires. + * @param expireTime expireTime or {@code null} for none + */ + public GenerateChatTokenResponse setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + @Override + public GenerateChatTokenResponse set(String fieldName, Object value) { + return (GenerateChatTokenResponse) super.set(fieldName, value); + } + + @Override + public GenerateChatTokenResponse clone() { + return (GenerateChatTokenResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchSuggestions.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchSuggestions.java new file mode 100644 index 00000000000..e151732b73e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchSuggestions.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Search suggestions from Google Search Tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleSearchSuggestions extends com.google.api.client.json.GenericJson { + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List htmls; + + /** + * List of queries used to perform the google search along with the search result URIs forming the + * search suggestions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List webSearchQueries; + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * @return value or {@code null} for none + */ + public java.util.List getHtmls() { + return htmls; + } + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * @param htmls htmls or {@code null} for none + */ + public GoogleSearchSuggestions setHtmls(java.util.List htmls) { + this.htmls = htmls; + return this; + } + + /** + * List of queries used to perform the google search along with the search result URIs forming the + * search suggestions. + * @return value or {@code null} for none + */ + public java.util.List getWebSearchQueries() { + return webSearchQueries; + } + + /** + * List of queries used to perform the google search along with the search result URIs forming the + * search suggestions. + * @param webSearchQueries webSearchQueries or {@code null} for none + */ + public GoogleSearchSuggestions setWebSearchQueries(java.util.List webSearchQueries) { + this.webSearchQueries = webSearchQueries; + return this; + } + + @Override + public GoogleSearchSuggestions set(String fieldName, Object value) { + return (GoogleSearchSuggestions) super.set(fieldName, value); + } + + @Override + public GoogleSearchSuggestions clone() { + return (GoogleSearchSuggestions) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchTool.java new file mode 100644 index 00000000000..0525e766d56 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GoogleSearchTool.java @@ -0,0 +1,173 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a tool to perform Google web searches for grounding. See + * https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleSearchTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contextUrls; + + /** + * Optional. Description of the tool's purpose. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. List of domains to be excluded from the search results. Example: "example.com". A + * maximum of 2000 domains can be excluded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludeDomains; + + /** + * Required. The name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Specifies domains to restrict search results to. Example: "example.com", + * "another.site". A maximum of 20 domains can be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List preferredDomains; + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * @return value or {@code null} for none + */ + public java.util.List getContextUrls() { + return contextUrls; + } + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * @param contextUrls contextUrls or {@code null} for none + */ + public GoogleSearchTool setContextUrls(java.util.List contextUrls) { + this.contextUrls = contextUrls; + return this; + } + + /** + * Optional. Description of the tool's purpose. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the tool's purpose. + * @param description description or {@code null} for none + */ + public GoogleSearchTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. List of domains to be excluded from the search results. Example: "example.com". A + * maximum of 2000 domains can be excluded. + * @return value or {@code null} for none + */ + public java.util.List getExcludeDomains() { + return excludeDomains; + } + + /** + * Optional. List of domains to be excluded from the search results. Example: "example.com". A + * maximum of 2000 domains can be excluded. + * @param excludeDomains excludeDomains or {@code null} for none + */ + public GoogleSearchTool setExcludeDomains(java.util.List excludeDomains) { + this.excludeDomains = excludeDomains; + return this; + } + + /** + * Required. The name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the tool. + * @param name name or {@code null} for none + */ + public GoogleSearchTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Specifies domains to restrict search results to. Example: "example.com", + * "another.site". A maximum of 20 domains can be specified. + * @return value or {@code null} for none + */ + public java.util.List getPreferredDomains() { + return preferredDomains; + } + + /** + * Optional. Specifies domains to restrict search results to. Example: "example.com", + * "another.site". A maximum of 20 domains can be specified. + * @param preferredDomains preferredDomains or {@code null} for none + */ + public GoogleSearchTool setPreferredDomains(java.util.List preferredDomains) { + this.preferredDomains = preferredDomains; + return this; + } + + @Override + public GoogleSearchTool set(String fieldName, Object value) { + return (GoogleSearchTool) super.set(fieldName, value); + } + + @Override + public GoogleSearchTool clone() { + return (GoogleSearchTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java new file mode 100644 index 00000000000..4a15989a2fb --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Guardrail.java @@ -0,0 +1,373 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Guardrail contains a list of checks and balances to keep the agents safe and secure. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Guardrail extends com.google.api.client.json.GenericJson { + + /** + * Optional. Action to take when the guardrail is triggered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerAction action; + + /** + * Optional. Guardrail that potentially blocks the conversation based on the result of the + * callback execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailCodeCallback codeCallback; + + /** + * Optional. Guardrail that bans certain content from being used in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailContentFilter contentFilter; + + /** + * Output only. Timestamp when the guardrail was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Description of the guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. Whether the guardrail is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered violating + * the policy based on the LLM classification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPolicy llmPolicy; + + /** + * Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on + * the LLM classification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPromptSecurity llmPromptSecurity; + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based + * on the model safety settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailModelSafety modelSafety; + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the guardrail was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Action to take when the guardrail is triggered. + * @return value or {@code null} for none + */ + public TriggerAction getAction() { + return action; + } + + /** + * Optional. Action to take when the guardrail is triggered. + * @param action action or {@code null} for none + */ + public Guardrail setAction(TriggerAction action) { + this.action = action; + return this; + } + + /** + * Optional. Guardrail that potentially blocks the conversation based on the result of the + * callback execution. + * @return value or {@code null} for none + */ + public GuardrailCodeCallback getCodeCallback() { + return codeCallback; + } + + /** + * Optional. Guardrail that potentially blocks the conversation based on the result of the + * callback execution. + * @param codeCallback codeCallback or {@code null} for none + */ + public Guardrail setCodeCallback(GuardrailCodeCallback codeCallback) { + this.codeCallback = codeCallback; + return this; + } + + /** + * Optional. Guardrail that bans certain content from being used in the conversation. + * @return value or {@code null} for none + */ + public GuardrailContentFilter getContentFilter() { + return contentFilter; + } + + /** + * Optional. Guardrail that bans certain content from being used in the conversation. + * @param contentFilter contentFilter or {@code null} for none + */ + public Guardrail setContentFilter(GuardrailContentFilter contentFilter) { + this.contentFilter = contentFilter; + return this; + } + + /** + * Output only. Timestamp when the guardrail was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the guardrail was created. + * @param createTime createTime or {@code null} for none + */ + public Guardrail setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Description of the guardrail. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the guardrail. + * @param description description or {@code null} for none + */ + public Guardrail setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the guardrail. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the guardrail. + * @param displayName displayName or {@code null} for none + */ + public Guardrail setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. Whether the guardrail is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Whether the guardrail is enabled. + * @param enabled enabled or {@code null} for none + */ + public Guardrail setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Guardrail setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered violating + * the policy based on the LLM classification. + * @return value or {@code null} for none + */ + public GuardrailLlmPolicy getLlmPolicy() { + return llmPolicy; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered violating + * the policy based on the LLM classification. + * @param llmPolicy llmPolicy or {@code null} for none + */ + public Guardrail setLlmPolicy(GuardrailLlmPolicy llmPolicy) { + this.llmPolicy = llmPolicy; + return this; + } + + /** + * Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on + * the LLM classification. + * @return value or {@code null} for none + */ + public GuardrailLlmPromptSecurity getLlmPromptSecurity() { + return llmPromptSecurity; + } + + /** + * Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on + * the LLM classification. + * @param llmPromptSecurity llmPromptSecurity or {@code null} for none + */ + public Guardrail setLlmPromptSecurity(GuardrailLlmPromptSecurity llmPromptSecurity) { + this.llmPromptSecurity = llmPromptSecurity; + return this; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based + * on the model safety settings. + * @return value or {@code null} for none + */ + public GuardrailModelSafety getModelSafety() { + return modelSafety; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based + * on the model safety settings. + * @param modelSafety modelSafety or {@code null} for none + */ + public Guardrail setModelSafety(GuardrailModelSafety modelSafety) { + this.modelSafety = modelSafety; + return this; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param name name or {@code null} for none + */ + public Guardrail setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the guardrail was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the guardrail was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Guardrail setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Guardrail set(String fieldName, Object value) { + return (Guardrail) super.set(fieldName, value); + } + + @Override + public Guardrail clone() { + return (Guardrail) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailCodeCallback.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailCodeCallback.java new file mode 100644 index 00000000000..2fe05615c2e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailCodeCallback.java @@ -0,0 +1,181 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Guardrail that blocks the conversation based on the code callbacks provided. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailCodeCallback extends com.google.api.client.json.GenericJson { + + /** + * Optional. The callback to execute after the agent is called. Each callback function is expected + * to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' + * or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt + * further processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback afterAgentCallback; + + /** + * Optional. The callback to execute after the model is called. If there are multiple calls to the + * model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback afterModelCallback; + + /** + * Optional. The callback to execute before the agent is called. Each callback function is + * expected to return a structure (e.g., a dict or object) containing at least: - 'decision': + * Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision + * may halt further processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback beforeAgentCallback; + + /** + * Optional. The callback to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback beforeModelCallback; + + /** + * Optional. The callback to execute after the agent is called. Each callback function is expected + * to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' + * or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt + * further processing. + * @return value or {@code null} for none + */ + public Callback getAfterAgentCallback() { + return afterAgentCallback; + } + + /** + * Optional. The callback to execute after the agent is called. Each callback function is expected + * to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' + * or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt + * further processing. + * @param afterAgentCallback afterAgentCallback or {@code null} for none + */ + public GuardrailCodeCallback setAfterAgentCallback(Callback afterAgentCallback) { + this.afterAgentCallback = afterAgentCallback; + return this; + } + + /** + * Optional. The callback to execute after the model is called. If there are multiple calls to the + * model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @return value or {@code null} for none + */ + public Callback getAfterModelCallback() { + return afterModelCallback; + } + + /** + * Optional. The callback to execute after the model is called. If there are multiple calls to the + * model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @param afterModelCallback afterModelCallback or {@code null} for none + */ + public GuardrailCodeCallback setAfterModelCallback(Callback afterModelCallback) { + this.afterModelCallback = afterModelCallback; + return this; + } + + /** + * Optional. The callback to execute before the agent is called. Each callback function is + * expected to return a structure (e.g., a dict or object) containing at least: - 'decision': + * Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision + * may halt further processing. + * @return value or {@code null} for none + */ + public Callback getBeforeAgentCallback() { + return beforeAgentCallback; + } + + /** + * Optional. The callback to execute before the agent is called. Each callback function is + * expected to return a structure (e.g., a dict or object) containing at least: - 'decision': + * Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision + * may halt further processing. + * @param beforeAgentCallback beforeAgentCallback or {@code null} for none + */ + public GuardrailCodeCallback setBeforeAgentCallback(Callback beforeAgentCallback) { + this.beforeAgentCallback = beforeAgentCallback; + return this; + } + + /** + * Optional. The callback to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @return value or {@code null} for none + */ + public Callback getBeforeModelCallback() { + return beforeModelCallback; + } + + /** + * Optional. The callback to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @param beforeModelCallback beforeModelCallback or {@code null} for none + */ + public GuardrailCodeCallback setBeforeModelCallback(Callback beforeModelCallback) { + this.beforeModelCallback = beforeModelCallback; + return this; + } + + @Override + public GuardrailCodeCallback set(String fieldName, Object value) { + return (GuardrailCodeCallback) super.set(fieldName, value); + } + + @Override + public GuardrailCodeCallback clone() { + return (GuardrailCodeCallback) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailContentFilter.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailContentFilter.java new file mode 100644 index 00000000000..207b99d085b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailContentFilter.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Guardrail that bans certain content from being used 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailContentFilter extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of banned phrases. Applies to both user inputs and agent responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bannedContents; + + /** + * Optional. List of banned phrases. Applies only to agent responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bannedContentsInAgentResponse; + + /** + * Optional. List of banned phrases. Applies only to user inputs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bannedContentsInUserInput; + + /** + * Optional. If true, diacritics are ignored during matching. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disregardDiacritics; + + /** + * Required. Match type for the content filter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String matchType; + + /** + * Optional. List of banned phrases. Applies to both user inputs and agent responses. + * @return value or {@code null} for none + */ + public java.util.List getBannedContents() { + return bannedContents; + } + + /** + * Optional. List of banned phrases. Applies to both user inputs and agent responses. + * @param bannedContents bannedContents or {@code null} for none + */ + public GuardrailContentFilter setBannedContents(java.util.List bannedContents) { + this.bannedContents = bannedContents; + return this; + } + + /** + * Optional. List of banned phrases. Applies only to agent responses. + * @return value or {@code null} for none + */ + public java.util.List getBannedContentsInAgentResponse() { + return bannedContentsInAgentResponse; + } + + /** + * Optional. List of banned phrases. Applies only to agent responses. + * @param bannedContentsInAgentResponse bannedContentsInAgentResponse or {@code null} for none + */ + public GuardrailContentFilter setBannedContentsInAgentResponse(java.util.List bannedContentsInAgentResponse) { + this.bannedContentsInAgentResponse = bannedContentsInAgentResponse; + return this; + } + + /** + * Optional. List of banned phrases. Applies only to user inputs. + * @return value or {@code null} for none + */ + public java.util.List getBannedContentsInUserInput() { + return bannedContentsInUserInput; + } + + /** + * Optional. List of banned phrases. Applies only to user inputs. + * @param bannedContentsInUserInput bannedContentsInUserInput or {@code null} for none + */ + public GuardrailContentFilter setBannedContentsInUserInput(java.util.List bannedContentsInUserInput) { + this.bannedContentsInUserInput = bannedContentsInUserInput; + return this; + } + + /** + * Optional. If true, diacritics are ignored during matching. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisregardDiacritics() { + return disregardDiacritics; + } + + /** + * Optional. If true, diacritics are ignored during matching. + * @param disregardDiacritics disregardDiacritics or {@code null} for none + */ + public GuardrailContentFilter setDisregardDiacritics(java.lang.Boolean disregardDiacritics) { + this.disregardDiacritics = disregardDiacritics; + return this; + } + + /** + * Required. Match type for the content filter. + * @return value or {@code null} for none + */ + public java.lang.String getMatchType() { + return matchType; + } + + /** + * Required. Match type for the content filter. + * @param matchType matchType or {@code null} for none + */ + public GuardrailContentFilter setMatchType(java.lang.String matchType) { + this.matchType = matchType; + return this; + } + + @Override + public GuardrailContentFilter set(String fieldName, Object value) { + return (GuardrailContentFilter) super.set(fieldName, value); + } + + @Override + public GuardrailContentFilter clone() { + return (GuardrailContentFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPolicy.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPolicy.java new file mode 100644 index 00000000000..3ace4e0dec0 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPolicy.java @@ -0,0 +1,209 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Guardrail that blocks the conversation if the LLM response is considered violating the policy + * based on the LLM classification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailLlmPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this + * setting applies the policy check to all utterances, including those that would normally be + * skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowShortUtterance; + + /** + * Optional. If an error occurs during the policy check, fail open and do not trigger the + * guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failOpen; + + /** + * Optional. When checking this policy, consider the last 'n' messages in the conversation. When + * not set a default value of 10 will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxConversationMessages; + + /** + * Optional. Model settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Required. Defines when to apply the policy check during the conversation. If set to + * `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the + * policy to the agent response, additional latency will be introduced before the agent can + * respond. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyScope; + + /** + * Required. Policy prompt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this + * setting applies the policy check to all utterances, including those that would normally be + * skipped. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowShortUtterance() { + return allowShortUtterance; + } + + /** + * Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this + * setting applies the policy check to all utterances, including those that would normally be + * skipped. + * @param allowShortUtterance allowShortUtterance or {@code null} for none + */ + public GuardrailLlmPolicy setAllowShortUtterance(java.lang.Boolean allowShortUtterance) { + this.allowShortUtterance = allowShortUtterance; + return this; + } + + /** + * Optional. If an error occurs during the policy check, fail open and do not trigger the + * guardrail. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailOpen() { + return failOpen; + } + + /** + * Optional. If an error occurs during the policy check, fail open and do not trigger the + * guardrail. + * @param failOpen failOpen or {@code null} for none + */ + public GuardrailLlmPolicy setFailOpen(java.lang.Boolean failOpen) { + this.failOpen = failOpen; + return this; + } + + /** + * Optional. When checking this policy, consider the last 'n' messages in the conversation. When + * not set a default value of 10 will be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxConversationMessages() { + return maxConversationMessages; + } + + /** + * Optional. When checking this policy, consider the last 'n' messages in the conversation. When + * not set a default value of 10 will be used. + * @param maxConversationMessages maxConversationMessages or {@code null} for none + */ + public GuardrailLlmPolicy setMaxConversationMessages(java.lang.Integer maxConversationMessages) { + this.maxConversationMessages = maxConversationMessages; + return this; + } + + /** + * Optional. Model settings. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Model settings. + * @param modelSettings modelSettings or {@code null} for none + */ + public GuardrailLlmPolicy setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Required. Defines when to apply the policy check during the conversation. If set to + * `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the + * policy to the agent response, additional latency will be introduced before the agent can + * respond. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyScope() { + return policyScope; + } + + /** + * Required. Defines when to apply the policy check during the conversation. If set to + * `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the + * policy to the agent response, additional latency will be introduced before the agent can + * respond. + * @param policyScope policyScope or {@code null} for none + */ + public GuardrailLlmPolicy setPolicyScope(java.lang.String policyScope) { + this.policyScope = policyScope; + return this; + } + + /** + * Required. Policy prompt. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Required. Policy prompt. + * @param prompt prompt or {@code null} for none + */ + public GuardrailLlmPolicy setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public GuardrailLlmPolicy set(String fieldName, Object value) { + return (GuardrailLlmPolicy) super.set(fieldName, value); + } + + @Override + public GuardrailLlmPolicy clone() { + return (GuardrailLlmPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPromptSecurity.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPromptSecurity.java new file mode 100644 index 00000000000..6ee402e1a4c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPromptSecurity.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Guardrail that blocks the conversation if the input is considered unsafe based on the LLM + * classification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailLlmPromptSecurity extends com.google.api.client.json.GenericJson { + + /** + * Optional. Use a user-defined LlmPolicy to configure the security guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPolicy customPolicy; + + /** + * Optional. Use the system's predefined default security settings. To select this mode, include + * an empty 'default_settings' message in the request. The 'default_prompt_template' field within + * will be populated by the server in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPromptSecurityDefaultSecuritySettings defaultSettings; + + /** + * Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the + * guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom + * policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failOpen; + + /** + * Optional. Use a user-defined LlmPolicy to configure the security guardrail. + * @return value or {@code null} for none + */ + public GuardrailLlmPolicy getCustomPolicy() { + return customPolicy; + } + + /** + * Optional. Use a user-defined LlmPolicy to configure the security guardrail. + * @param customPolicy customPolicy or {@code null} for none + */ + public GuardrailLlmPromptSecurity setCustomPolicy(GuardrailLlmPolicy customPolicy) { + this.customPolicy = customPolicy; + return this; + } + + /** + * Optional. Use the system's predefined default security settings. To select this mode, include + * an empty 'default_settings' message in the request. The 'default_prompt_template' field within + * will be populated by the server in the response. + * @return value or {@code null} for none + */ + public GuardrailLlmPromptSecurityDefaultSecuritySettings getDefaultSettings() { + return defaultSettings; + } + + /** + * Optional. Use the system's predefined default security settings. To select this mode, include + * an empty 'default_settings' message in the request. The 'default_prompt_template' field within + * will be populated by the server in the response. + * @param defaultSettings defaultSettings or {@code null} for none + */ + public GuardrailLlmPromptSecurity setDefaultSettings(GuardrailLlmPromptSecurityDefaultSecuritySettings defaultSettings) { + this.defaultSettings = defaultSettings; + return this; + } + + /** + * Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the + * guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom + * policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailOpen() { + return failOpen; + } + + /** + * Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the + * guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom + * policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration. + * @param failOpen failOpen or {@code null} for none + */ + public GuardrailLlmPromptSecurity setFailOpen(java.lang.Boolean failOpen) { + this.failOpen = failOpen; + return this; + } + + @Override + public GuardrailLlmPromptSecurity set(String fieldName, Object value) { + return (GuardrailLlmPromptSecurity) super.set(fieldName, value); + } + + @Override + public GuardrailLlmPromptSecurity clone() { + return (GuardrailLlmPromptSecurity) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPromptSecurityDefaultSecuritySettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPromptSecurityDefaultSecuritySettings.java new file mode 100644 index 00000000000..09cc421c2f1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailLlmPromptSecurityDefaultSecuritySettings.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for default system security settings. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailLlmPromptSecurityDefaultSecuritySettings extends com.google.api.client.json.GenericJson { + + /** + * Output only. The default prompt template used by the system. This field is for display purposes + * to show the user what prompt the system uses by default. It is OUTPUT_ONLY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultPromptTemplate; + + /** + * Output only. The default prompt template used by the system. This field is for display purposes + * to show the user what prompt the system uses by default. It is OUTPUT_ONLY. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultPromptTemplate() { + return defaultPromptTemplate; + } + + /** + * Output only. The default prompt template used by the system. This field is for display purposes + * to show the user what prompt the system uses by default. It is OUTPUT_ONLY. + * @param defaultPromptTemplate defaultPromptTemplate or {@code null} for none + */ + public GuardrailLlmPromptSecurityDefaultSecuritySettings setDefaultPromptTemplate(java.lang.String defaultPromptTemplate) { + this.defaultPromptTemplate = defaultPromptTemplate; + return this; + } + + @Override + public GuardrailLlmPromptSecurityDefaultSecuritySettings set(String fieldName, Object value) { + return (GuardrailLlmPromptSecurityDefaultSecuritySettings) super.set(fieldName, value); + } + + @Override + public GuardrailLlmPromptSecurityDefaultSecuritySettings clone() { + return (GuardrailLlmPromptSecurityDefaultSecuritySettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailModelSafety.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailModelSafety.java new file mode 100644 index 00000000000..badb1fdb306 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailModelSafety.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Model safety settings overrides. When this is set, it will override the default settings and + * trigger the guardrail if the response is considered unsafe. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailModelSafety extends com.google.api.client.json.GenericJson { + + /** + * Required. List of safety settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List safetySettings; + + /** + * Required. List of safety settings. + * @return value or {@code null} for none + */ + public java.util.List getSafetySettings() { + return safetySettings; + } + + /** + * Required. List of safety settings. + * @param safetySettings safetySettings or {@code null} for none + */ + public GuardrailModelSafety setSafetySettings(java.util.List safetySettings) { + this.safetySettings = safetySettings; + return this; + } + + @Override + public GuardrailModelSafety set(String fieldName, Object value) { + return (GuardrailModelSafety) super.set(fieldName, value); + } + + @Override + public GuardrailModelSafety clone() { + return (GuardrailModelSafety) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailModelSafetySafetySetting.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailModelSafetySafetySetting.java new file mode 100644 index 00000000000..cf77d254c27 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/GuardrailModelSafetySafetySetting.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.ces.v1.model; + +/** + * Safety setting. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailModelSafetySafetySetting extends com.google.api.client.json.GenericJson { + + /** + * Required. The harm category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String category; + + /** + * Required. The harm block threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String threshold; + + /** + * Required. The harm category. + * @return value or {@code null} for none + */ + public java.lang.String getCategory() { + return category; + } + + /** + * Required. The harm category. + * @param category category or {@code null} for none + */ + public GuardrailModelSafetySafetySetting setCategory(java.lang.String category) { + this.category = category; + return this; + } + + /** + * Required. The harm block threshold. + * @return value or {@code null} for none + */ + public java.lang.String getThreshold() { + return threshold; + } + + /** + * Required. The harm block threshold. + * @param threshold threshold or {@code null} for none + */ + public GuardrailModelSafetySafetySetting setThreshold(java.lang.String threshold) { + this.threshold = threshold; + return this; + } + + @Override + public GuardrailModelSafetySafetySetting set(String fieldName, Object value) { + return (GuardrailModelSafetySafetySetting) super.set(fieldName, value); + } + + @Override + public GuardrailModelSafetySafetySetting clone() { + return (GuardrailModelSafetySafetySetting) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Image.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Image.java new file mode 100644 index 00000000000..930a6cceb00 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Image.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents an image input or output 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Image extends com.google.api.client.json.GenericJson { + + /** + * Required. Raw bytes of the image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Required. The IANA standard MIME type of the source data. Supported image types includes: * + * image/png * image/jpeg * image/webp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Required. Raw bytes of the image. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * Required. Raw bytes of the image. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * Required. Raw bytes of the image. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public Image setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * Required. Raw bytes of the image. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Image encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Required. The IANA standard MIME type of the source data. Supported image types includes: * + * image/png * image/jpeg * image/webp + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Required. The IANA standard MIME type of the source data. Supported image types includes: * + * image/png * image/jpeg * image/webp + * @param mimeType mimeType or {@code null} for none + */ + public Image setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public Image set(String fieldName, Object value) { + return (Image) super.set(fieldName, value); + } + + @Override + public Image clone() { + return (Image) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java new file mode 100644 index 00000000000..20f79f04574 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequest.java @@ -0,0 +1,215 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for AgentService.ImportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appContent; + + /** + * Optional. The ID to use for the imported app. * If not specified, a unique ID will be + * automatically assigned for the app. * Otherwise, the imported app will use this ID as the final + * component of its resource name. If an app with the same ID already exists at the specified + * location in the project, the content of the existing app will be replaced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appId; + + /** + * Optional. The display name of the app to import. * If the app is created on import, and the + * display name is specified, the imported app will use this display name. If a conflict is + * detected with an existing app, a timestamp will be appended to the display name to make it + * unique. * If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * app. The format of this URI must be `gs:`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. Options governing the import process for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImportAppRequestImportOptions importOptions; + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #decodeAppContent() + * @return value or {@code null} for none + */ + public java.lang.String getAppContent() { + return appContent; + } + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #getAppContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAppContent() { + return com.google.api.client.util.Base64.decodeBase64(appContent); + } + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #encodeAppContent() + * @param appContent appContent or {@code null} for none + */ + public ImportAppRequest setAppContent(java.lang.String appContent) { + this.appContent = appContent; + return this; + } + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #setAppContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ImportAppRequest encodeAppContent(byte[] appContent) { + this.appContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(appContent); + return this; + } + + /** + * Optional. The ID to use for the imported app. * If not specified, a unique ID will be + * automatically assigned for the app. * Otherwise, the imported app will use this ID as the final + * component of its resource name. If an app with the same ID already exists at the specified + * location in the project, the content of the existing app will be replaced. + * @return value or {@code null} for none + */ + public java.lang.String getAppId() { + return appId; + } + + /** + * Optional. The ID to use for the imported app. * If not specified, a unique ID will be + * automatically assigned for the app. * Otherwise, the imported app will use this ID as the final + * component of its resource name. If an app with the same ID already exists at the specified + * location in the project, the content of the existing app will be replaced. + * @param appId appId or {@code null} for none + */ + public ImportAppRequest setAppId(java.lang.String appId) { + this.appId = appId; + return this; + } + + /** + * Optional. The display name of the app to import. * If the app is created on import, and the + * display name is specified, the imported app will use this display name. If a conflict is + * detected with an existing app, a timestamp will be appended to the display name to make it + * unique. * If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the app to import. * If the app is created on import, and the + * display name is specified, the imported app will use this display name. If a conflict is + * detected with an existing app, a timestamp will be appended to the display name to make it + * unique. * If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + * @param displayName displayName or {@code null} for none + */ + public ImportAppRequest setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * app. The format of this URI must be `gs:`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * app. The format of this URI must be `gs:`. + * @param gcsUri gcsUri or {@code null} for none + */ + public ImportAppRequest setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Optional. Options governing the import process for the app. + * @return value or {@code null} for none + */ + public ImportAppRequestImportOptions getImportOptions() { + return importOptions; + } + + /** + * Optional. Options governing the import process for the app. + * @param importOptions importOptions or {@code null} for none + */ + public ImportAppRequest setImportOptions(ImportAppRequestImportOptions importOptions) { + this.importOptions = importOptions; + return this; + } + + @Override + public ImportAppRequest set(String fieldName, Object value) { + return (ImportAppRequest) super.set(fieldName, value); + } + + @Override + public ImportAppRequest clone() { + return (ImportAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequestImportOptions.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequestImportOptions.java new file mode 100644 index 00000000000..d23d668c199 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppRequestImportOptions.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration options for the app import process. These options control how the import behaves, + * particularly when conflicts arise with existing app data. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportAppRequestImportOptions extends com.google.api.client.json.GenericJson { + + /** + * Optional. The strategy to use when resolving conflicts during import. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conflictResolutionStrategy; + + /** + * Optional. The strategy to use when resolving conflicts during import. + * @return value or {@code null} for none + */ + public java.lang.String getConflictResolutionStrategy() { + return conflictResolutionStrategy; + } + + /** + * Optional. The strategy to use when resolving conflicts during import. + * @param conflictResolutionStrategy conflictResolutionStrategy or {@code null} for none + */ + public ImportAppRequestImportOptions setConflictResolutionStrategy(java.lang.String conflictResolutionStrategy) { + this.conflictResolutionStrategy = conflictResolutionStrategy; + return this; + } + + @Override + public ImportAppRequestImportOptions set(String fieldName, Object value) { + return (ImportAppRequestImportOptions) super.set(fieldName, value); + } + + @Override + public ImportAppRequestImportOptions clone() { + return (ImportAppRequestImportOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppResponse.java new file mode 100644 index 00000000000..b8ffc6a01e1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ImportAppResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ImportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportAppResponse extends com.google.api.client.json.GenericJson { + + /** + * The resource name of the app that was imported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Warning messages generated during the import process. If errors occur for specific resources, + * they will not be included in the imported app and the error will be mentioned here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + /** + * The resource name of the app that was imported. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The resource name of the app that was imported. + * @param name name or {@code null} for none + */ + public ImportAppResponse setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Warning messages generated during the import process. If errors occur for specific resources, + * they will not be included in the imported app and the error will be mentioned here. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * Warning messages generated during the import process. If errors occur for specific resources, + * they will not be included in the imported app and the error will be mentioned here. + * @param warnings warnings or {@code null} for none + */ + public ImportAppResponse setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + @Override + public ImportAppResponse set(String fieldName, Object value) { + return (ImportAppResponse) super.set(fieldName, value); + } + + @Override + public ImportAppResponse clone() { + return (ImportAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/InputAudioConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/InputAudioConfig.java new file mode 100644 index 00000000000..f0c7666a5ca --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/InputAudioConfig.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * InputAudioConfig configures how the CES agent should interpret the incoming audio data. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InputAudioConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The encoding of the input audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audioEncoding; + + /** + * Optional. Whether to enable noise suppression on the input audio. Available values are "low", + * "moderate", "high", "very_high". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String noiseSuppressionLevel; + + /** + * Required. The sample rate (in Hertz) of the input audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRateHertz; + + /** + * Required. The encoding of the input audio data. + * @return value or {@code null} for none + */ + public java.lang.String getAudioEncoding() { + return audioEncoding; + } + + /** + * Required. The encoding of the input audio data. + * @param audioEncoding audioEncoding or {@code null} for none + */ + public InputAudioConfig setAudioEncoding(java.lang.String audioEncoding) { + this.audioEncoding = audioEncoding; + return this; + } + + /** + * Optional. Whether to enable noise suppression on the input audio. Available values are "low", + * "moderate", "high", "very_high". + * @return value or {@code null} for none + */ + public java.lang.String getNoiseSuppressionLevel() { + return noiseSuppressionLevel; + } + + /** + * Optional. Whether to enable noise suppression on the input audio. Available values are "low", + * "moderate", "high", "very_high". + * @param noiseSuppressionLevel noiseSuppressionLevel or {@code null} for none + */ + public InputAudioConfig setNoiseSuppressionLevel(java.lang.String noiseSuppressionLevel) { + this.noiseSuppressionLevel = noiseSuppressionLevel; + return this; + } + + /** + * Required. The sample rate (in Hertz) of the input audio data. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRateHertz() { + return sampleRateHertz; + } + + /** + * Required. The sample rate (in Hertz) of the input audio data. + * @param sampleRateHertz sampleRateHertz or {@code null} for none + */ + public InputAudioConfig setSampleRateHertz(java.lang.Integer sampleRateHertz) { + this.sampleRateHertz = sampleRateHertz; + return this; + } + + @Override + public InputAudioConfig set(String fieldName, Object value) { + return (InputAudioConfig) super.set(fieldName, value); + } + + @Override + public InputAudioConfig clone() { + return (InputAudioConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java new file mode 100644 index 00000000000..18adc879589 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LanguageSettings.java @@ -0,0 +1,157 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Language settings of the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LanguageSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The default language code of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultLanguageCode; + + /** + * Optional. Enables multilingual support. If true, agents in the app will use pre-built + * instructions to improve handling of multilingual input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableMultilingualSupport; + + /** + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fallbackAction; + + /** + * Optional. List of languages codes supported by the app, in addition to the + * `default_language_code`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedLanguageCodes; + + /** + * Optional. The default language code of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultLanguageCode() { + return defaultLanguageCode; + } + + /** + * Optional. The default language code of the app. + * @param defaultLanguageCode defaultLanguageCode or {@code null} for none + */ + public LanguageSettings setDefaultLanguageCode(java.lang.String defaultLanguageCode) { + this.defaultLanguageCode = defaultLanguageCode; + return this; + } + + /** + * Optional. Enables multilingual support. If true, agents in the app will use pre-built + * instructions to improve handling of multilingual input. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableMultilingualSupport() { + return enableMultilingualSupport; + } + + /** + * Optional. Enables multilingual support. If true, agents in the app will use pre-built + * instructions to improve handling of multilingual input. + * @param enableMultilingualSupport enableMultilingualSupport or {@code null} for none + */ + public LanguageSettings setEnableMultilingualSupport(java.lang.Boolean enableMultilingualSupport) { + this.enableMultilingualSupport = enableMultilingualSupport; + return this; + } + + /** + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getFallbackAction() { + return fallbackAction; + } + + /** + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. + * @param fallbackAction fallbackAction or {@code null} for none + */ + public LanguageSettings setFallbackAction(java.lang.String fallbackAction) { + this.fallbackAction = fallbackAction; + return this; + } + + /** + * Optional. List of languages codes supported by the app, in addition to the + * `default_language_code`. + * @return value or {@code null} for none + */ + public java.util.List getSupportedLanguageCodes() { + return supportedLanguageCodes; + } + + /** + * Optional. List of languages codes supported by the app, in addition to the + * `default_language_code`. + * @param supportedLanguageCodes supportedLanguageCodes or {@code null} for none + */ + public LanguageSettings setSupportedLanguageCodes(java.util.List supportedLanguageCodes) { + this.supportedLanguageCodes = supportedLanguageCodes; + return this; + } + + @Override + public LanguageSettings set(String fieldName, Object value) { + return (LanguageSettings) super.set(fieldName, value); + } + + @Override + public LanguageSettings clone() { + return (LanguageSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAgentsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAgentsResponse.java new file mode 100644 index 00000000000..12c67cda4e5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAgentsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListAgents. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAgentsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of agents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agents; + + static { + // hack to force ProGuard to consider Agent 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(Agent.class); + } + + /** + * A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of agents. + * @return value or {@code null} for none + */ + public java.util.List getAgents() { + return agents; + } + + /** + * The list of agents. + * @param agents agents or {@code null} for none + */ + public ListAgentsResponse setAgents(java.util.List agents) { + this.agents = agents; + return this; + } + + /** + * A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAgentsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListAgentsResponse set(String fieldName, Object value) { + return (ListAgentsResponse) super.set(fieldName, value); + } + + @Override + public ListAgentsResponse clone() { + return (ListAgentsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAppVersionsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAppVersionsResponse.java new file mode 100644 index 00000000000..fce8f25b369 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAppVersionsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListAppVersions. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAppVersionsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of app versions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List appVersions; + + static { + // hack to force ProGuard to consider AppVersion 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(AppVersion.class); + } + + /** + * A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of app versions. + * @return value or {@code null} for none + */ + public java.util.List getAppVersions() { + return appVersions; + } + + /** + * The list of app versions. + * @param appVersions appVersions or {@code null} for none + */ + public ListAppVersionsResponse setAppVersions(java.util.List appVersions) { + this.appVersions = appVersions; + return this; + } + + /** + * A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAppVersionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListAppVersionsResponse set(String fieldName, Object value) { + return (ListAppVersionsResponse) super.set(fieldName, value); + } + + @Override + public ListAppVersionsResponse clone() { + return (ListAppVersionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAppsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAppsResponse.java new file mode 100644 index 00000000000..7c01eac26ca --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListAppsResponse.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListApps. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAppsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of apps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List apps; + + static { + // hack to force ProGuard to consider App 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(App.class); + } + + /** + * A token that can be sent as ListAppsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of apps. + * @return value or {@code null} for none + */ + public java.util.List getApps() { + return apps; + } + + /** + * The list of apps. + * @param apps apps or {@code null} for none + */ + public ListAppsResponse setApps(java.util.List apps) { + this.apps = apps; + return this; + } + + /** + * A token that can be sent as ListAppsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListAppsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAppsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAppsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAppsResponse set(String fieldName, Object value) { + return (ListAppsResponse) super.set(fieldName, value); + } + + @Override + public ListAppsResponse clone() { + return (ListAppsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListChangelogsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListChangelogsResponse.java new file mode 100644 index 00000000000..e95fcee0bf3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListChangelogsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListChangelogs. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListChangelogsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of changelogs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List changelogs; + + static { + // hack to force ProGuard to consider Changelog 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(Changelog.class); + } + + /** + * A token that can be sent as ListChangelogsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of changelogs. + * @return value or {@code null} for none + */ + public java.util.List getChangelogs() { + return changelogs; + } + + /** + * The list of changelogs. + * @param changelogs changelogs or {@code null} for none + */ + public ListChangelogsResponse setChangelogs(java.util.List changelogs) { + this.changelogs = changelogs; + return this; + } + + /** + * A token that can be sent as ListChangelogsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListChangelogsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListChangelogsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListChangelogsResponse set(String fieldName, Object value) { + return (ListChangelogsResponse) super.set(fieldName, value); + } + + @Override + public ListChangelogsResponse clone() { + return (ListChangelogsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListConversationsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListConversationsResponse.java new file mode 100644 index 00000000000..73c294c5fd3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListConversationsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListConversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListConversationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conversations; + + static { + // hack to force ProGuard to consider Conversation 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(Conversation.class); + } + + /** + * A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of conversations. + * @return value or {@code null} for none + */ + public java.util.List getConversations() { + return conversations; + } + + /** + * The list of conversations. + * @param conversations conversations or {@code null} for none + */ + public ListConversationsResponse setConversations(java.util.List conversations) { + this.conversations = conversations; + return this; + } + + /** + * A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListConversationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListConversationsResponse set(String fieldName, Object value) { + return (ListConversationsResponse) super.set(fieldName, value); + } + + @Override + public ListConversationsResponse clone() { + return (ListConversationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListDeploymentsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListDeploymentsResponse.java new file mode 100644 index 00000000000..245534e0e66 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListDeploymentsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListDeployments. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListDeploymentsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of deployments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deployments; + + static { + // hack to force ProGuard to consider Deployment 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(Deployment.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of deployments. + * @return value or {@code null} for none + */ + public java.util.List getDeployments() { + return deployments; + } + + /** + * The list of deployments. + * @param deployments deployments or {@code null} for none + */ + public ListDeploymentsResponse setDeployments(java.util.List deployments) { + this.deployments = deployments; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListDeploymentsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListDeploymentsResponse set(String fieldName, Object value) { + return (ListDeploymentsResponse) super.set(fieldName, value); + } + + @Override + public ListDeploymentsResponse clone() { + return (ListDeploymentsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListExamplesResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListExamplesResponse.java new file mode 100644 index 00000000000..2d4456eea20 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListExamplesResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListExamples. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListExamplesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List examples; + + static { + // hack to force ProGuard to consider Example 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(Example.class); + } + + /** + * A token that can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of examples. + * @return value or {@code null} for none + */ + public java.util.List getExamples() { + return examples; + } + + /** + * The list of examples. + * @param examples examples or {@code null} for none + */ + public ListExamplesResponse setExamples(java.util.List examples) { + this.examples = examples; + return this; + } + + /** + * A token that can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListExamplesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListExamplesResponse set(String fieldName, Object value) { + return (ListExamplesResponse) super.set(fieldName, value); + } + + @Override + public ListExamplesResponse clone() { + return (ListExamplesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListGuardrailsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListGuardrailsResponse.java new file mode 100644 index 00000000000..300e9d3974e --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListGuardrailsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListGuardrails. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListGuardrailsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of guardrails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + static { + // hack to force ProGuard to consider Guardrail 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(Guardrail.class); + } + + /** + * A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of guardrails. + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * The list of guardrails. + * @param guardrails guardrails or {@code null} for none + */ + public ListGuardrailsResponse setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListGuardrailsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListGuardrailsResponse set(String fieldName, Object value) { + return (ListGuardrailsResponse) super.set(fieldName, value); + } + + @Override + public ListGuardrailsResponse clone() { + return (ListGuardrailsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListLocationsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListLocationsResponse.java new file mode 100644 index 00000000000..8db9df30efd --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListLocationsResponse.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.ces.v1.model; + +/** + * The response message for Locations.ListLocations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListOperationsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListOperationsResponse.java new file mode 100644 index 00000000000..55f88e81819 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListOperationsResponse.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The response message for Operations.ListOperations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public ListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public ListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOperationsResponse set(String fieldName, Object value) { + return (ListOperationsResponse) super.set(fieldName, value); + } + + @Override + public ListOperationsResponse clone() { + return (ListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListToolsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListToolsResponse.java new file mode 100644 index 00000000000..019c775b25a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListToolsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListTools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListToolsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as ListToolsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * A token that can be sent as ListToolsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListToolsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListToolsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of tools. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * The list of tools. + * @param tools tools or {@code null} for none + */ + public ListToolsResponse setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + @Override + public ListToolsResponse set(String fieldName, Object value) { + return (ListToolsResponse) super.set(fieldName, value); + } + + @Override + public ListToolsResponse clone() { + return (ListToolsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListToolsetsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListToolsetsResponse.java new file mode 100644 index 00000000000..d010c50ae64 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ListToolsetsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for AgentService.ListToolsets. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListToolsetsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as ListToolsetsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of toolsets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolsets; + + /** + * A token that can be sent as ListToolsetsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListToolsetsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListToolsetsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of toolsets. + * @return value or {@code null} for none + */ + public java.util.List getToolsets() { + return toolsets; + } + + /** + * The list of toolsets. + * @param toolsets toolsets or {@code null} for none + */ + public ListToolsetsResponse setToolsets(java.util.List toolsets) { + this.toolsets = toolsets; + return this; + } + + @Override + public ListToolsetsResponse set(String fieldName, Object value) { + return (ListToolsetsResponse) super.set(fieldName, value); + } + + @Override + public ListToolsetsResponse clone() { + return (ListToolsetsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Location.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Location.java new file mode 100644 index 00000000000..0101ef0fed8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Location.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A resource that represents a Google Cloud location. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LoggingSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LoggingSettings.java new file mode 100644 index 00000000000..61939e828fe --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/LoggingSettings.java @@ -0,0 +1,220 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the logging behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for how audio interactions should be recorded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioRecordingConfig audioRecordingConfig; + + /** + * Optional. Settings to describe the BigQuery export behaviors for the app. The conversation data + * will be exported to BigQuery tables if it is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BigQueryExportSettings bigqueryExportSettings; + + /** + * Optional. Settings to describe the Cloud Logging behaviors for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CloudLoggingSettings cloudLoggingSettings; + + /** + * Optional. Settings to describe the conversation logging behaviors for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConversationLoggingSettings conversationLoggingSettings; + + /** + * Optional. Configuration for how audio interactions should be recorded for the evaluation. By + * default, audio recording is not enabled for evaluation sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioRecordingConfig evaluationAudioRecordingConfig; + + /** + * Optional. Settings to describe the conversation data collection behaviors for the LLM analysis + * pipeline for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private MetricAnalysisSettings metricAnalysisSettings; + + /** + * Optional. Configuration for how sensitive data should be redacted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RedactionConfig redactionConfig; + + /** + * Optional. Configuration for how audio interactions should be recorded. + * @return value or {@code null} for none + */ + public AudioRecordingConfig getAudioRecordingConfig() { + return audioRecordingConfig; + } + + /** + * Optional. Configuration for how audio interactions should be recorded. + * @param audioRecordingConfig audioRecordingConfig or {@code null} for none + */ + public LoggingSettings setAudioRecordingConfig(AudioRecordingConfig audioRecordingConfig) { + this.audioRecordingConfig = audioRecordingConfig; + return this; + } + + /** + * Optional. Settings to describe the BigQuery export behaviors for the app. The conversation data + * will be exported to BigQuery tables if it is enabled. + * @return value or {@code null} for none + */ + public BigQueryExportSettings getBigqueryExportSettings() { + return bigqueryExportSettings; + } + + /** + * Optional. Settings to describe the BigQuery export behaviors for the app. The conversation data + * will be exported to BigQuery tables if it is enabled. + * @param bigqueryExportSettings bigqueryExportSettings or {@code null} for none + */ + public LoggingSettings setBigqueryExportSettings(BigQueryExportSettings bigqueryExportSettings) { + this.bigqueryExportSettings = bigqueryExportSettings; + return this; + } + + /** + * Optional. Settings to describe the Cloud Logging behaviors for the app. + * @return value or {@code null} for none + */ + public CloudLoggingSettings getCloudLoggingSettings() { + return cloudLoggingSettings; + } + + /** + * Optional. Settings to describe the Cloud Logging behaviors for the app. + * @param cloudLoggingSettings cloudLoggingSettings or {@code null} for none + */ + public LoggingSettings setCloudLoggingSettings(CloudLoggingSettings cloudLoggingSettings) { + this.cloudLoggingSettings = cloudLoggingSettings; + return this; + } + + /** + * Optional. Settings to describe the conversation logging behaviors for the app. + * @return value or {@code null} for none + */ + public ConversationLoggingSettings getConversationLoggingSettings() { + return conversationLoggingSettings; + } + + /** + * Optional. Settings to describe the conversation logging behaviors for the app. + * @param conversationLoggingSettings conversationLoggingSettings or {@code null} for none + */ + public LoggingSettings setConversationLoggingSettings(ConversationLoggingSettings conversationLoggingSettings) { + this.conversationLoggingSettings = conversationLoggingSettings; + return this; + } + + /** + * Optional. Configuration for how audio interactions should be recorded for the evaluation. By + * default, audio recording is not enabled for evaluation sessions. + * @return value or {@code null} for none + */ + public AudioRecordingConfig getEvaluationAudioRecordingConfig() { + return evaluationAudioRecordingConfig; + } + + /** + * Optional. Configuration for how audio interactions should be recorded for the evaluation. By + * default, audio recording is not enabled for evaluation sessions. + * @param evaluationAudioRecordingConfig evaluationAudioRecordingConfig or {@code null} for none + */ + public LoggingSettings setEvaluationAudioRecordingConfig(AudioRecordingConfig evaluationAudioRecordingConfig) { + this.evaluationAudioRecordingConfig = evaluationAudioRecordingConfig; + return this; + } + + /** + * Optional. Settings to describe the conversation data collection behaviors for the LLM analysis + * pipeline for the app. + * @return value or {@code null} for none + */ + public MetricAnalysisSettings getMetricAnalysisSettings() { + return metricAnalysisSettings; + } + + /** + * Optional. Settings to describe the conversation data collection behaviors for the LLM analysis + * pipeline for the app. + * @param metricAnalysisSettings metricAnalysisSettings or {@code null} for none + */ + public LoggingSettings setMetricAnalysisSettings(MetricAnalysisSettings metricAnalysisSettings) { + this.metricAnalysisSettings = metricAnalysisSettings; + return this; + } + + /** + * Optional. Configuration for how sensitive data should be redacted. + * @return value or {@code null} for none + */ + public RedactionConfig getRedactionConfig() { + return redactionConfig; + } + + /** + * Optional. Configuration for how sensitive data should be redacted. + * @param redactionConfig redactionConfig or {@code null} for none + */ + public LoggingSettings setRedactionConfig(RedactionConfig redactionConfig) { + this.redactionConfig = redactionConfig; + return this; + } + + @Override + public LoggingSettings set(String fieldName, Object value) { + return (LoggingSettings) super.set(fieldName, value); + } + + @Override + public LoggingSettings clone() { + return (LoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/McpTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/McpTool.java new file mode 100644 index 00000000000..c79ecda1e81 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/McpTool.java @@ -0,0 +1,263 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more + * details. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class McpTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required to execute the tool against the MCP server. For + * bearer token authentication, the token applies only to tool execution, not to listing tools. + * This requires that tools can be listed without authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Optional. The description of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The schema of the input arguments of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema inputSchema; + + /** + * Required. The name of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The schema of the output arguments of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema outputSchema; + + /** + * Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. This is the same as the server_address in the + * McpToolset. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverAddress; + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. Authentication information required to execute the tool against the MCP server. For + * bearer token authentication, the token applies only to tool execution, not to listing tools. + * This requires that tools can be listed without authentication. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required to execute the tool against the MCP server. For + * bearer token authentication, the token applies only to tool execution, not to listing tools. + * This requires that tools can be listed without authentication. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public McpTool setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Optional. The description of the MCP tool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the MCP tool. + * @param description description or {@code null} for none + */ + public McpTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The schema of the input arguments of the MCP tool. + * @return value or {@code null} for none + */ + public Schema getInputSchema() { + return inputSchema; + } + + /** + * Optional. The schema of the input arguments of the MCP tool. + * @param inputSchema inputSchema or {@code null} for none + */ + public McpTool setInputSchema(Schema inputSchema) { + this.inputSchema = inputSchema; + return this; + } + + /** + * Required. The name of the MCP tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the MCP tool. + * @param name name or {@code null} for none + */ + public McpTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The schema of the output arguments of the MCP tool. + * @return value or {@code null} for none + */ + public Schema getOutputSchema() { + return outputSchema; + } + + /** + * Optional. The schema of the output arguments of the MCP tool. + * @param outputSchema outputSchema or {@code null} for none + */ + public McpTool setOutputSchema(Schema outputSchema) { + this.outputSchema = outputSchema; + return this; + } + + /** + * Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. This is the same as the server_address in the + * McpToolset. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @return value or {@code null} for none + */ + public java.lang.String getServerAddress() { + return serverAddress; + } + + /** + * Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. This is the same as the server_address in the + * McpToolset. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @param serverAddress serverAddress or {@code null} for none + */ + public McpTool setServerAddress(java.lang.String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public McpTool setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public McpTool setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + @Override + public McpTool set(String fieldName, Object value) { + return (McpTool) super.set(fieldName, value); + } + + @Override + public McpTool clone() { + return (McpTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/McpToolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/McpToolset.java new file mode 100644 index 00000000000..bbd685c89f8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/McpToolset.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A toolset that contains a list of tools that are offered by the MCP server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class McpToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required to access tools and execute a tool against the + * MCP server. For bearer token authentication, the token applies only to tool execution, not to + * listing tools. This requires that tools can be listed without authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverAddress; + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. Authentication information required to access tools and execute a tool against the + * MCP server. For bearer token authentication, the token applies only to tool execution, not to + * listing tools. This requires that tools can be listed without authentication. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required to access tools and execute a tool against the + * MCP server. For bearer token authentication, the token applies only to tool execution, not to + * listing tools. This requires that tools can be listed without authentication. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public McpToolset setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @return value or {@code null} for none + */ + public java.lang.String getServerAddress() { + return serverAddress; + } + + /** + * Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @param serverAddress serverAddress or {@code null} for none + */ + public McpToolset setServerAddress(java.lang.String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public McpToolset setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public McpToolset setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + @Override + public McpToolset set(String fieldName, Object value) { + return (McpToolset) super.set(fieldName, value); + } + + @Override + public McpToolset clone() { + return (McpToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java new file mode 100644 index 00000000000..e2f48dba183 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Message.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A message within a 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Message extends com.google.api.client.json.GenericJson { + + /** + * Optional. Content of the message as a series of chunks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List chunks; + + static { + // hack to force ProGuard to consider Chunk 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(Chunk.class); + } + + /** + * Optional. Timestamp when the message was sent or received. Should not be used if the message is + * part of an example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String eventTime; + + /** + * Optional. The role within the conversation, e.g., user, agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Optional. Content of the message as a series of chunks. + * @return value or {@code null} for none + */ + public java.util.List getChunks() { + return chunks; + } + + /** + * Optional. Content of the message as a series of chunks. + * @param chunks chunks or {@code null} for none + */ + public Message setChunks(java.util.List chunks) { + this.chunks = chunks; + return this; + } + + /** + * Optional. Timestamp when the message was sent or received. Should not be used if the message is + * part of an example. + * @return value or {@code null} for none + */ + public String getEventTime() { + return eventTime; + } + + /** + * Optional. Timestamp when the message was sent or received. Should not be used if the message is + * part of an example. + * @param eventTime eventTime or {@code null} for none + */ + public Message setEventTime(String eventTime) { + this.eventTime = eventTime; + return this; + } + + /** + * Optional. The role within the conversation, e.g., user, agent. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Optional. The role within the conversation, e.g., user, agent. + * @param role role or {@code null} for none + */ + public Message setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public Message set(String fieldName, Object value) { + return (Message) super.set(fieldName, value); + } + + @Override + public Message clone() { + return (Message) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/MetricAnalysisSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/MetricAnalysisSettings.java new file mode 100644 index 00000000000..7b8b150ca20 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/MetricAnalysisSettings.java @@ -0,0 +1,74 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Settings to describe the conversation data collection behaviors for LLM analysis metrics + * pipeline. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MetricAnalysisSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation + * data will not be collected for llm analysis metrics; otherwise, conversation data will be + * collected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean llmMetricsOptedOut; + + /** + * Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation + * data will not be collected for llm analysis metrics; otherwise, conversation data will be + * collected. + * @return value or {@code null} for none + */ + public java.lang.Boolean getLlmMetricsOptedOut() { + return llmMetricsOptedOut; + } + + /** + * Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation + * data will not be collected for llm analysis metrics; otherwise, conversation data will be + * collected. + * @param llmMetricsOptedOut llmMetricsOptedOut or {@code null} for none + */ + public MetricAnalysisSettings setLlmMetricsOptedOut(java.lang.Boolean llmMetricsOptedOut) { + this.llmMetricsOptedOut = llmMetricsOptedOut; + return this; + } + + @Override + public MetricAnalysisSettings set(String fieldName, Object value) { + return (MetricAnalysisSettings) super.set(fieldName, value); + } + + @Override + public MetricAnalysisSettings clone() { + return (MetricAnalysisSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ModelSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ModelSettings.java new file mode 100644 index 00000000000..5bb9a26dc8a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ModelSettings.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Model settings contains various configurations for the LLM model. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ModelSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The LLM model that the agent should use. If not set, the agent will inherit the model + * from its parent agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Optional. If set, this temperature will be used for the LLM model. Temperature controls the + * randomness of the model's responses. Lower temperatures produce responses that are more + * predictable. Higher temperatures produce responses that are more creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double temperature; + + /** + * Optional. The LLM model that the agent should use. If not set, the agent will inherit the model + * from its parent agent. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * Optional. The LLM model that the agent should use. If not set, the agent will inherit the model + * from its parent agent. + * @param model model or {@code null} for none + */ + public ModelSettings setModel(java.lang.String model) { + this.model = model; + return this; + } + + /** + * Optional. If set, this temperature will be used for the LLM model. Temperature controls the + * randomness of the model's responses. Lower temperatures produce responses that are more + * predictable. Higher temperatures produce responses that are more creative. + * @return value or {@code null} for none + */ + public java.lang.Double getTemperature() { + return temperature; + } + + /** + * Optional. If set, this temperature will be used for the LLM model. Temperature controls the + * randomness of the model's responses. Lower temperatures produce responses that are more + * predictable. Higher temperatures produce responses that are more creative. + * @param temperature temperature or {@code null} for none + */ + public ModelSettings setTemperature(java.lang.Double temperature) { + this.temperature = temperature; + return this; + } + + @Override + public ModelSettings set(String fieldName, Object value) { + return (ModelSettings) super.set(fieldName, value); + } + + @Override + public ModelSettings clone() { + return (ModelSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OAuthConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OAuthConfig.java new file mode 100644 index 00000000000..f8be370d695 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OAuthConfig.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configurations for authentication with OAuth. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The client ID from the OAuth provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Required. The name of the SecretManager secret version resource storing the client secret. + * Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecretVersion; + + /** + * Required. OAuth grant types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauthGrantType; + + /** + * Optional. The OAuth scopes to grant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Required. The token endpoint in the OAuth provider to exchange for an access token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenEndpoint; + + /** + * Required. The client ID from the OAuth provider. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Required. The client ID from the OAuth provider. + * @param clientId clientId or {@code null} for none + */ + public OAuthConfig setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Required. The name of the SecretManager secret version resource storing the client secret. + * Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecretVersion() { + return clientSecretVersion; + } + + /** + * Required. The name of the SecretManager secret version resource storing the client secret. + * Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param clientSecretVersion clientSecretVersion or {@code null} for none + */ + public OAuthConfig setClientSecretVersion(java.lang.String clientSecretVersion) { + this.clientSecretVersion = clientSecretVersion; + return this; + } + + /** + * Required. OAuth grant types. + * @return value or {@code null} for none + */ + public java.lang.String getOauthGrantType() { + return oauthGrantType; + } + + /** + * Required. OAuth grant types. + * @param oauthGrantType oauthGrantType or {@code null} for none + */ + public OAuthConfig setOauthGrantType(java.lang.String oauthGrantType) { + this.oauthGrantType = oauthGrantType; + return this; + } + + /** + * Optional. The OAuth scopes to grant. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Optional. The OAuth scopes to grant. + * @param scopes scopes or {@code null} for none + */ + public OAuthConfig setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Required. The token endpoint in the OAuth provider to exchange for an access token. + * @return value or {@code null} for none + */ + public java.lang.String getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * Required. The token endpoint in the OAuth provider to exchange for an access token. + * @param tokenEndpoint tokenEndpoint or {@code null} for none + */ + public OAuthConfig setTokenEndpoint(java.lang.String tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + @Override + public OAuthConfig set(String fieldName, Object value) { + return (OAuthConfig) super.set(fieldName, value); + } + + @Override + public OAuthConfig clone() { + return (OAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java new file mode 100644 index 00000000000..b3bd2c93343 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Omnichannel.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents an Omnichannel resource. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Omnichannel extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the omnichannel resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the omnichannel resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the omnichannel resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The integration config for the omnichannel resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OmnichannelIntegrationConfig integrationConfig; + + /** + * Identifier. The unique identifier of the omnichannel resource. Format: + * `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the omnichannel resource was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Timestamp when the omnichannel resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the omnichannel resource was created. + * @param createTime createTime or {@code null} for none + */ + public Omnichannel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable description of the omnichannel resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the omnichannel resource. + * @param description description or {@code null} for none + */ + public Omnichannel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the omnichannel resource. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the omnichannel resource. + * @param displayName displayName or {@code null} for none + */ + public Omnichannel setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. + * @param etag etag or {@code null} for none + */ + public Omnichannel setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The integration config for the omnichannel resource. + * @return value or {@code null} for none + */ + public OmnichannelIntegrationConfig getIntegrationConfig() { + return integrationConfig; + } + + /** + * Optional. The integration config for the omnichannel resource. + * @param integrationConfig integrationConfig or {@code null} for none + */ + public Omnichannel setIntegrationConfig(OmnichannelIntegrationConfig integrationConfig) { + this.integrationConfig = integrationConfig; + return this; + } + + /** + * Identifier. The unique identifier of the omnichannel resource. Format: + * `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the omnichannel resource. Format: + * `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + * @param name name or {@code null} for none + */ + public Omnichannel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the omnichannel resource was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the omnichannel resource was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Omnichannel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Omnichannel set(String fieldName, Object value) { + return (Omnichannel) super.set(fieldName, value); + } + + @Override + public Omnichannel clone() { + return (Omnichannel) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfig.java new file mode 100644 index 00000000000..8675f62da0d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfig.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * OmnichannelIntegrationConfig contains all App integration configs. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Various of configuration for handling App events. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map channelConfigs; + + /** + * Optional. The key of routing_configs is a key of `app_configs`, value is a `RoutingConfig`, + * which contains subscriber's key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map routingConfigs; + + /** + * Optional. Various of subscribers configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map subscriberConfigs; + + /** + * Optional. Various of configuration for handling App events. + * @return value or {@code null} for none + */ + public java.util.Map getChannelConfigs() { + return channelConfigs; + } + + /** + * Optional. Various of configuration for handling App events. + * @param channelConfigs channelConfigs or {@code null} for none + */ + public OmnichannelIntegrationConfig setChannelConfigs(java.util.Map channelConfigs) { + this.channelConfigs = channelConfigs; + return this; + } + + /** + * Optional. The key of routing_configs is a key of `app_configs`, value is a `RoutingConfig`, + * which contains subscriber's key. + * @return value or {@code null} for none + */ + public java.util.Map getRoutingConfigs() { + return routingConfigs; + } + + /** + * Optional. The key of routing_configs is a key of `app_configs`, value is a `RoutingConfig`, + * which contains subscriber's key. + * @param routingConfigs routingConfigs or {@code null} for none + */ + public OmnichannelIntegrationConfig setRoutingConfigs(java.util.Map routingConfigs) { + this.routingConfigs = routingConfigs; + return this; + } + + /** + * Optional. Various of subscribers configs. + * @return value or {@code null} for none + */ + public java.util.Map getSubscriberConfigs() { + return subscriberConfigs; + } + + /** + * Optional. Various of subscribers configs. + * @param subscriberConfigs subscriberConfigs or {@code null} for none + */ + public OmnichannelIntegrationConfig setSubscriberConfigs(java.util.Map subscriberConfigs) { + this.subscriberConfigs = subscriberConfigs; + return this; + } + + @Override + public OmnichannelIntegrationConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfig clone() { + return (OmnichannelIntegrationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigCesAppConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigCesAppConfig.java new file mode 100644 index 00000000000..66def88cfd8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigCesAppConfig.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configs for CES app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigCesAppConfig extends com.google.api.client.json.GenericJson { + + /** + * The unique identifier of the CES app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** + * The unique identifier of the CES app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @return value or {@code null} for none + */ + public java.lang.String getApp() { + return app; + } + + /** + * The unique identifier of the CES app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param app app or {@code null} for none + */ + public OmnichannelIntegrationConfigCesAppConfig setApp(java.lang.String app) { + this.app = app; + return this; + } + + @Override + public OmnichannelIntegrationConfigCesAppConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigCesAppConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigCesAppConfig clone() { + return (OmnichannelIntegrationConfigCesAppConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigChannelConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigChannelConfig.java new file mode 100644 index 00000000000..fe5eedd0b31 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigChannelConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * ChannelConfig contains config for various of app integration. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigChannelConfig extends com.google.api.client.json.GenericJson { + + /** + * WhatsApp config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OmnichannelIntegrationConfigWhatsappConfig whatsappConfig; + + /** + * WhatsApp config. + * @return value or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig getWhatsappConfig() { + return whatsappConfig; + } + + /** + * WhatsApp config. + * @param whatsappConfig whatsappConfig or {@code null} for none + */ + public OmnichannelIntegrationConfigChannelConfig setWhatsappConfig(OmnichannelIntegrationConfigWhatsappConfig whatsappConfig) { + this.whatsappConfig = whatsappConfig; + return this; + } + + @Override + public OmnichannelIntegrationConfigChannelConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigChannelConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigChannelConfig clone() { + return (OmnichannelIntegrationConfigChannelConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigRoutingConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigRoutingConfig.java new file mode 100644 index 00000000000..16e5a539505 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigRoutingConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Routing config specify how/who to route app events to a subscriber. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigRoutingConfig extends com.google.api.client.json.GenericJson { + + /** + * The key of the subscriber. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subscriberKey; + + /** + * The key of the subscriber. + * @return value or {@code null} for none + */ + public java.lang.String getSubscriberKey() { + return subscriberKey; + } + + /** + * The key of the subscriber. + * @param subscriberKey subscriberKey or {@code null} for none + */ + public OmnichannelIntegrationConfigRoutingConfig setSubscriberKey(java.lang.String subscriberKey) { + this.subscriberKey = subscriberKey; + return this; + } + + @Override + public OmnichannelIntegrationConfigRoutingConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigRoutingConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigRoutingConfig clone() { + return (OmnichannelIntegrationConfigRoutingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigSubscriberConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigSubscriberConfig.java new file mode 100644 index 00000000000..33f4fd2f6d6 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigSubscriberConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configs of subscribers. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigSubscriberConfig extends com.google.api.client.json.GenericJson { + + /** + * Ces app config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OmnichannelIntegrationConfigCesAppConfig cesAppConfig; + + /** + * Ces app config. + * @return value or {@code null} for none + */ + public OmnichannelIntegrationConfigCesAppConfig getCesAppConfig() { + return cesAppConfig; + } + + /** + * Ces app config. + * @param cesAppConfig cesAppConfig or {@code null} for none + */ + public OmnichannelIntegrationConfigSubscriberConfig setCesAppConfig(OmnichannelIntegrationConfigCesAppConfig cesAppConfig) { + this.cesAppConfig = cesAppConfig; + return this; + } + + @Override + public OmnichannelIntegrationConfigSubscriberConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigSubscriberConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigSubscriberConfig clone() { + return (OmnichannelIntegrationConfigSubscriberConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigWhatsappConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigWhatsappConfig.java new file mode 100644 index 00000000000..7efdb3ba71b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelIntegrationConfigWhatsappConfig.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * How Omnichannel should receive/reply events from WhatsApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigWhatsappConfig extends com.google.api.client.json.GenericJson { + + /** + * The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metaBusinessPortfolioId; + + /** + * The phone number used for sending/receiving messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phoneNumber; + + /** + * The Phone Number ID associated with the WhatsApp Business Account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phoneNumberId; + + /** + * The verify token configured in the Meta App Dashboard for webhook verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String webhookVerifyToken; + + /** + * The customer's WhatsApp Business Account (WABA) ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String whatsappBusinessAccountId; + + /** + * The access token for authenticating API calls to the WhatsApp Cloud API. + * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business- + * integration-system-user-access-tokens + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String whatsappBusinessToken; + + /** + * The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 + * @return value or {@code null} for none + */ + public java.lang.String getMetaBusinessPortfolioId() { + return metaBusinessPortfolioId; + } + + /** + * The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 + * @param metaBusinessPortfolioId metaBusinessPortfolioId or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setMetaBusinessPortfolioId(java.lang.String metaBusinessPortfolioId) { + this.metaBusinessPortfolioId = metaBusinessPortfolioId; + return this; + } + + /** + * The phone number used for sending/receiving messages. + * @return value or {@code null} for none + */ + public java.lang.String getPhoneNumber() { + return phoneNumber; + } + + /** + * The phone number used for sending/receiving messages. + * @param phoneNumber phoneNumber or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setPhoneNumber(java.lang.String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The Phone Number ID associated with the WhatsApp Business Account. + * @return value or {@code null} for none + */ + public java.lang.String getPhoneNumberId() { + return phoneNumberId; + } + + /** + * The Phone Number ID associated with the WhatsApp Business Account. + * @param phoneNumberId phoneNumberId or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setPhoneNumberId(java.lang.String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + return this; + } + + /** + * The verify token configured in the Meta App Dashboard for webhook verification. + * @return value or {@code null} for none + */ + public java.lang.String getWebhookVerifyToken() { + return webhookVerifyToken; + } + + /** + * The verify token configured in the Meta App Dashboard for webhook verification. + * @param webhookVerifyToken webhookVerifyToken or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setWebhookVerifyToken(java.lang.String webhookVerifyToken) { + this.webhookVerifyToken = webhookVerifyToken; + return this; + } + + /** + * The customer's WhatsApp Business Account (WABA) ID. + * @return value or {@code null} for none + */ + public java.lang.String getWhatsappBusinessAccountId() { + return whatsappBusinessAccountId; + } + + /** + * The customer's WhatsApp Business Account (WABA) ID. + * @param whatsappBusinessAccountId whatsappBusinessAccountId or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setWhatsappBusinessAccountId(java.lang.String whatsappBusinessAccountId) { + this.whatsappBusinessAccountId = whatsappBusinessAccountId; + return this; + } + + /** + * The access token for authenticating API calls to the WhatsApp Cloud API. + * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business- + * integration-system-user-access-tokens + * @return value or {@code null} for none + */ + public java.lang.String getWhatsappBusinessToken() { + return whatsappBusinessToken; + } + + /** + * The access token for authenticating API calls to the WhatsApp Cloud API. + * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business- + * integration-system-user-access-tokens + * @param whatsappBusinessToken whatsappBusinessToken or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setWhatsappBusinessToken(java.lang.String whatsappBusinessToken) { + this.whatsappBusinessToken = whatsappBusinessToken; + return this; + } + + @Override + public OmnichannelIntegrationConfigWhatsappConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigWhatsappConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigWhatsappConfig clone() { + return (OmnichannelIntegrationConfigWhatsappConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java new file mode 100644 index 00000000000..676541bdc31 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OmnichannelOperationMetadata.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents the metadata of the long-running operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OmnichannelOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OmnichannelOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OmnichannelOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OmnichannelOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public OmnichannelOperationMetadata set(String fieldName, Object value) { + return (OmnichannelOperationMetadata) super.set(fieldName, value); + } + + @Override + public OmnichannelOperationMetadata clone() { + return (OmnichannelOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OpenApiTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OpenApiTool.java new file mode 100644 index 00000000000..6bdae0dabbb --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OpenApiTool.java @@ -0,0 +1,253 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A remote API tool defined by an OpenAPI schema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OpenApiTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Optional. The description of the tool. If not provided, the description of the tool will be + * derived from the OpenAPI schema, from `operation.description` or `operation.summary`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. If true, the agent will ignore unknown fields in the API response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreUnknownFields; + + /** + * Optional. The name of the tool. If not provided, the name of the tool will be derived from the + * OpenAPI schema, from `operation.operationId`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The OpenAPI schema in JSON or YAML format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String openApiSchema; + + /** + * Optional. Service Directory configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client will + * trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. The server URL of the Open API schema. This field is only set in tools in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Authentication information required by the API. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required by the API. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public OpenApiTool setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Optional. The description of the tool. If not provided, the description of the tool will be + * derived from the OpenAPI schema, from `operation.description` or `operation.summary`. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the tool. If not provided, the description of the tool will be + * derived from the OpenAPI schema, from `operation.description` or `operation.summary`. + * @param description description or {@code null} for none + */ + public OpenApiTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreUnknownFields() { + return ignoreUnknownFields; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response. + * @param ignoreUnknownFields ignoreUnknownFields or {@code null} for none + */ + public OpenApiTool setIgnoreUnknownFields(java.lang.Boolean ignoreUnknownFields) { + this.ignoreUnknownFields = ignoreUnknownFields; + return this; + } + + /** + * Optional. The name of the tool. If not provided, the name of the tool will be derived from the + * OpenAPI schema, from `operation.operationId`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the tool. If not provided, the name of the tool will be derived from the + * OpenAPI schema, from `operation.operationId`. + * @param name name or {@code null} for none + */ + public OpenApiTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The OpenAPI schema in JSON or YAML format. + * @return value or {@code null} for none + */ + public java.lang.String getOpenApiSchema() { + return openApiSchema; + } + + /** + * Required. The OpenAPI schema in JSON or YAML format. + * @param openApiSchema openApiSchema or {@code null} for none + */ + public OpenApiTool setOpenApiSchema(java.lang.String openApiSchema) { + this.openApiSchema = openApiSchema; + return this; + } + + /** + * Optional. Service Directory configuration. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public OpenApiTool setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client will + * trust. + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client will + * trust. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public OpenApiTool setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in tools in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in tools in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @param url url or {@code null} for none + */ + public OpenApiTool setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public OpenApiTool set(String fieldName, Object value) { + return (OpenApiTool) super.set(fieldName, value); + } + + @Override + public OpenApiTool clone() { + return (OpenApiTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OpenApiToolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OpenApiToolset.java new file mode 100644 index 00000000000..6b501350cd6 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OpenApiToolset.java @@ -0,0 +1,199 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A toolset that contains a list of tools that are defined by an OpenAPI schema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OpenApiToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Optional. If true, the agent will ignore unknown fields in the API response for all operations + * defined in the OpenAPI schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreUnknownFields; + + /** + * Required. The OpenAPI schema of the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String openApiSchema; + + /** + * Optional. Service Directory configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. The server URL of the Open API schema. This field is only set in toolsets in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Authentication information required by the API. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required by the API. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public OpenApiToolset setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response for all operations + * defined in the OpenAPI schema. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreUnknownFields() { + return ignoreUnknownFields; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response for all operations + * defined in the OpenAPI schema. + * @param ignoreUnknownFields ignoreUnknownFields or {@code null} for none + */ + public OpenApiToolset setIgnoreUnknownFields(java.lang.Boolean ignoreUnknownFields) { + this.ignoreUnknownFields = ignoreUnknownFields; + return this; + } + + /** + * Required. The OpenAPI schema of the toolset. + * @return value or {@code null} for none + */ + public java.lang.String getOpenApiSchema() { + return openApiSchema; + } + + /** + * Required. The OpenAPI schema of the toolset. + * @param openApiSchema openApiSchema or {@code null} for none + */ + public OpenApiToolset setOpenApiSchema(java.lang.String openApiSchema) { + this.openApiSchema = openApiSchema; + return this; + } + + /** + * Optional. Service Directory configuration. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public OpenApiToolset setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates + * @param tlsConfig tlsConfig or {@code null} for none + */ + public OpenApiToolset setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in toolsets in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in toolsets in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @param url url or {@code null} for none + */ + public OpenApiToolset setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public OpenApiToolset set(String fieldName, Object value) { + return (OpenApiToolset) super.set(fieldName, value); + } + + @Override + public OpenApiToolset clone() { + return (OpenApiToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Operation.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Operation.java new file mode 100644 index 00000000000..327f3e02f74 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Operation.java @@ -0,0 +1,196 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java new file mode 100644 index 00000000000..25bd3a1b52a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OperationMetadata.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents the metadata of the long-running operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OutputAudioConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OutputAudioConfig.java new file mode 100644 index 00000000000..27bc8648227 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/OutputAudioConfig.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.ces.v1.model; + +/** + * OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OutputAudioConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The encoding of the output audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audioEncoding; + + /** + * Required. The sample rate (in Hertz) of the output audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRateHertz; + + /** + * Required. The encoding of the output audio data. + * @return value or {@code null} for none + */ + public java.lang.String getAudioEncoding() { + return audioEncoding; + } + + /** + * Required. The encoding of the output audio data. + * @param audioEncoding audioEncoding or {@code null} for none + */ + public OutputAudioConfig setAudioEncoding(java.lang.String audioEncoding) { + this.audioEncoding = audioEncoding; + return this; + } + + /** + * Required. The sample rate (in Hertz) of the output audio data. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRateHertz() { + return sampleRateHertz; + } + + /** + * Required. The sample rate (in Hertz) of the output audio data. + * @param sampleRateHertz sampleRateHertz or {@code null} for none + */ + public OutputAudioConfig setSampleRateHertz(java.lang.Integer sampleRateHertz) { + this.sampleRateHertz = sampleRateHertz; + return this; + } + + @Override + public OutputAudioConfig set(String fieldName, Object value) { + return (OutputAudioConfig) super.set(fieldName, value); + } + + @Override + public OutputAudioConfig clone() { + return (OutputAudioConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/PythonCodeCondition.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/PythonCodeCondition.java new file mode 100644 index 00000000000..0031167c6bb --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/PythonCodeCondition.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Python code block to evaluate the condition. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PythonCodeCondition extends com.google.api.client.json.GenericJson { + + /** + * Required. The python code to execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Required. The python code to execute. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. The python code to execute. + * @param pythonCode pythonCode or {@code null} for none + */ + public PythonCodeCondition setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public PythonCodeCondition set(String fieldName, Object value) { + return (PythonCodeCondition) super.set(fieldName, value); + } + + @Override + public PythonCodeCondition clone() { + return (PythonCodeCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/PythonFunction.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/PythonFunction.java new file mode 100644 index 00000000000..2d5aa2e0e9a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/PythonFunction.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A Python function tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PythonFunction extends com.google.api.client.json.GenericJson { + + /** + * Output only. The description of the Python function, parsed from the python code's docstring. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The name of the Python function to execute. Must match a Python function name defined + * in the python code. Case sensitive. If the name is not provided, the first function defined in + * the python code will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The Python code to execute for the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Output only. The description of the Python function, parsed from the python code's docstring. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. The description of the Python function, parsed from the python code's docstring. + * @param description description or {@code null} for none + */ + public PythonFunction setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The name of the Python function to execute. Must match a Python function name defined + * in the python code. Case sensitive. If the name is not provided, the first function defined in + * the python code will be used. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the Python function to execute. Must match a Python function name defined + * in the python code. Case sensitive. If the name is not provided, the first function defined in + * the python code will be used. + * @param name name or {@code null} for none + */ + public PythonFunction setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The Python code to execute for the tool. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Optional. The Python code to execute for the tool. + * @param pythonCode pythonCode or {@code null} for none + */ + public PythonFunction setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public PythonFunction set(String fieldName, Object value) { + return (PythonFunction) super.set(fieldName, value); + } + + @Override + public PythonFunction clone() { + return (PythonFunction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RedactionConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RedactionConfig.java new file mode 100644 index 00000000000..2aca805f28a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RedactionConfig.java @@ -0,0 +1,130 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration to instruct how sensitive data should be handled. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RedactionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how + * to de-identify content. Format: + * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deidentifyTemplate; + + /** + * Optional. If true, redaction will be applied in various logging scenarios, including + * conversation history, Cloud Logging and audio recording. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableRedaction; + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection + * of sensitive data types. Format: + * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String inspectTemplate; + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how + * to de-identify content. Format: + * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + * @return value or {@code null} for none + */ + public java.lang.String getDeidentifyTemplate() { + return deidentifyTemplate; + } + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how + * to de-identify content. Format: + * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + * @param deidentifyTemplate deidentifyTemplate or {@code null} for none + */ + public RedactionConfig setDeidentifyTemplate(java.lang.String deidentifyTemplate) { + this.deidentifyTemplate = deidentifyTemplate; + return this; + } + + /** + * Optional. If true, redaction will be applied in various logging scenarios, including + * conversation history, Cloud Logging and audio recording. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableRedaction() { + return enableRedaction; + } + + /** + * Optional. If true, redaction will be applied in various logging scenarios, including + * conversation history, Cloud Logging and audio recording. + * @param enableRedaction enableRedaction or {@code null} for none + */ + public RedactionConfig setEnableRedaction(java.lang.Boolean enableRedaction) { + this.enableRedaction = enableRedaction; + return this; + } + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection + * of sensitive data types. Format: + * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + * @return value or {@code null} for none + */ + public java.lang.String getInspectTemplate() { + return inspectTemplate; + } + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection + * of sensitive data types. Format: + * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + * @param inspectTemplate inspectTemplate or {@code null} for none + */ + public RedactionConfig setInspectTemplate(java.lang.String inspectTemplate) { + this.inspectTemplate = inspectTemplate; + return this; + } + + @Override + public RedactionConfig set(String fieldName, Object value) { + return (RedactionConfig) super.set(fieldName, value); + } + + @Override + public RedactionConfig clone() { + return (RedactionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RestoreAppVersionRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RestoreAppVersionRequest.java new file mode 100644 index 00000000000..9755a1de7e6 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RestoreAppVersionRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for AgentService.RestoreAppVersion + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RestoreAppVersionRequest extends com.google.api.client.json.GenericJson { + + @Override + public RestoreAppVersionRequest set(String fieldName, Object value) { + return (RestoreAppVersionRequest) super.set(fieldName, value); + } + + @Override + public RestoreAppVersionRequest clone() { + return (RestoreAppVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolSchemaRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolSchemaRequest.java new file mode 100644 index 00000000000..afb3e5c7f23 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolSchemaRequest.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for ToolService.RetrieveToolSchema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolSchemaRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the tool to retrieve the schema for. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate + * from the toolset. Otherwise, an error will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Optional. The name of the tool to retrieve the schema for. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to retrieve the schema for. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @param tool tool or {@code null} for none + */ + public RetrieveToolSchemaRequest setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate + * from the toolset. Otherwise, an error will be returned. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate + * from the toolset. Otherwise, an error will be returned. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public RetrieveToolSchemaRequest setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public RetrieveToolSchemaRequest set(String fieldName, Object value) { + return (RetrieveToolSchemaRequest) super.set(fieldName, value); + } + + @Override + public RetrieveToolSchemaRequest clone() { + return (RetrieveToolSchemaRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolSchemaResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolSchemaResponse.java new file mode 100644 index 00000000000..8255ba4ecea --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolSchemaResponse.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.ces.v1.model; + +/** + * Response message for ToolService.RetrieveToolSchema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolSchemaResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The schema of the tool input parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema inputSchema; + + /** + * Required. The schema of the tool output parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema outputSchema; + + /** + * The name of the tool that the schema is for. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * The toolset tool that the schema is for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Required. The schema of the tool input parameters. + * @return value or {@code null} for none + */ + public Schema getInputSchema() { + return inputSchema; + } + + /** + * Required. The schema of the tool input parameters. + * @param inputSchema inputSchema or {@code null} for none + */ + public RetrieveToolSchemaResponse setInputSchema(Schema inputSchema) { + this.inputSchema = inputSchema; + return this; + } + + /** + * Required. The schema of the tool output parameters. + * @return value or {@code null} for none + */ + public Schema getOutputSchema() { + return outputSchema; + } + + /** + * Required. The schema of the tool output parameters. + * @param outputSchema outputSchema or {@code null} for none + */ + public RetrieveToolSchemaResponse setOutputSchema(Schema outputSchema) { + this.outputSchema = outputSchema; + return this; + } + + /** + * The name of the tool that the schema is for. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * The name of the tool that the schema is for. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public RetrieveToolSchemaResponse setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * The toolset tool that the schema is for. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * The toolset tool that the schema is for. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public RetrieveToolSchemaResponse setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public RetrieveToolSchemaResponse set(String fieldName, Object value) { + return (RetrieveToolSchemaResponse) super.set(fieldName, value); + } + + @Override + public RetrieveToolSchemaResponse clone() { + return (RetrieveToolSchemaResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolsRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolsRequest.java new file mode 100644 index 00000000000..135ae7a54bd --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolsRequest.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request message for ToolService.RetrieveTools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the + * toolset will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolIds; + + /** + * Optional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the + * toolset will be returned. + * @return value or {@code null} for none + */ + public java.util.List getToolIds() { + return toolIds; + } + + /** + * Optional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the + * toolset will be returned. + * @param toolIds toolIds or {@code null} for none + */ + public RetrieveToolsRequest setToolIds(java.util.List toolIds) { + this.toolIds = toolIds; + return this; + } + + @Override + public RetrieveToolsRequest set(String fieldName, Object value) { + return (RetrieveToolsRequest) super.set(fieldName, value); + } + + @Override + public RetrieveToolsRequest clone() { + return (RetrieveToolsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolsResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolsResponse.java new file mode 100644 index 00000000000..4874e7c3d3a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RetrieveToolsResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for ToolService.RetrieveTools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolsResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The list of tools that are included in the specified toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Required. The list of tools that are included in the specified toolset. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * Required. The list of tools that are included in the specified toolset. + * @param tools tools or {@code null} for none + */ + public RetrieveToolsResponse setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + @Override + public RetrieveToolsResponse set(String fieldName, Object value) { + return (RetrieveToolsResponse) super.set(fieldName, value); + } + + @Override + public RetrieveToolsResponse clone() { + return (RetrieveToolsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RunSessionRequest.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RunSessionRequest.java new file mode 100644 index 00000000000..a85095623c7 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RunSessionRequest.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.ces.v1.model; + +/** + * Request message for SessionService.RunSession. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RunSessionRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The configuration for the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionConfig config; + + /** + * Required. Inputs for the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputs; + + /** + * Required. The configuration for the session. + * @return value or {@code null} for none + */ + public SessionConfig getConfig() { + return config; + } + + /** + * Required. The configuration for the session. + * @param config config or {@code null} for none + */ + public RunSessionRequest setConfig(SessionConfig config) { + this.config = config; + return this; + } + + /** + * Required. Inputs for the session. + * @return value or {@code null} for none + */ + public java.util.List getInputs() { + return inputs; + } + + /** + * Required. Inputs for the session. + * @param inputs inputs or {@code null} for none + */ + public RunSessionRequest setInputs(java.util.List inputs) { + this.inputs = inputs; + return this; + } + + @Override + public RunSessionRequest set(String fieldName, Object value) { + return (RunSessionRequest) super.set(fieldName, value); + } + + @Override + public RunSessionRequest clone() { + return (RunSessionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RunSessionResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RunSessionResponse.java new file mode 100644 index 00000000000..7421acbe688 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/RunSessionResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Response message for SessionService.RunSession. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RunSessionResponse extends com.google.api.client.json.GenericJson { + + /** + * Outputs for the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outputs; + + /** + * Outputs for the session. + * @return value or {@code null} for none + */ + public java.util.List getOutputs() { + return outputs; + } + + /** + * Outputs for the session. + * @param outputs outputs or {@code null} for none + */ + public RunSessionResponse setOutputs(java.util.List outputs) { + this.outputs = outputs; + return this; + } + + @Override + public RunSessionResponse set(String fieldName, Object value) { + return (RunSessionResponse) super.set(fieldName, value); + } + + @Override + public RunSessionResponse clone() { + return (RunSessionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Schema.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Schema.java new file mode 100644 index 00000000000..c614ba61670 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Schema.java @@ -0,0 +1,523 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a select subset of an OpenAPI 3.0 schema object. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Schema extends com.google.api.client.json.GenericJson { + + /** + * Optional. Can either be a boolean or an object, controls the presence of additional properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema additionalProperties; + + /** + * Optional. The value should be validated against any (one or more) of the subschemas in the + * list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List anyOf; + + /** + * Optional. Default value of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("default") + private java.lang.Object default__; + + /** + * Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map defs; + + /** + * Optional. The description of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Possible values of the element of primitive type with enum format. Examples: 1. We + * can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. + * We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("enum") + private java.util.List enum__; + + /** + * Optional. Schema of the elements of Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema items; + + /** + * Optional. Maximum number of the elements for Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxItems; + + /** + * Optional. Maximum value for Type.INTEGER and Type.NUMBER. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double maximum; + + /** + * Optional. Minimum number of the elements for Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minItems; + + /** + * Optional. Minimum value for Type.INTEGER and Type.NUMBER. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double minimum; + + /** + * Optional. Indicates if the value may be null. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean nullable; + + /** + * Optional. Schemas of initial elements of Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List prefixItems; + + /** + * Optional. Properties of Type.OBJECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map properties; + + /** + * Optional. Allows indirect references between schema nodes. The value should be a valid + * reference to a child of the root `defs`. For example, the following schema defines a reference + * to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: + * object properties: name: type: string The value of the "pet" property is a reference to the + * schema node named "Pet". See details in https://json-schema.org/understanding-json- + * schema/structuring. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ref; + + /** + * Optional. Required properties of Type.OBJECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List required; + + /** + * Optional. The title of the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Required. The type of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean uniqueItems; + + /** + * Optional. Can either be a boolean or an object, controls the presence of additional properties. + * @return value or {@code null} for none + */ + public Schema getAdditionalProperties() { + return additionalProperties; + } + + /** + * Optional. Can either be a boolean or an object, controls the presence of additional properties. + * @param additionalProperties additionalProperties or {@code null} for none + */ + public Schema setAdditionalProperties(Schema additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Optional. The value should be validated against any (one or more) of the subschemas in the + * list. + * @return value or {@code null} for none + */ + public java.util.List getAnyOf() { + return anyOf; + } + + /** + * Optional. The value should be validated against any (one or more) of the subschemas in the + * list. + * @param anyOf anyOf or {@code null} for none + */ + public Schema setAnyOf(java.util.List anyOf) { + this.anyOf = anyOf; + return this; + } + + /** + * Optional. Default value of the data. + * @return value or {@code null} for none + */ + public java.lang.Object getDefault() { + return default__; + } + + /** + * Optional. Default value of the data. + * @param default__ default__ or {@code null} for none + */ + public Schema setDefault(java.lang.Object default__) { + this.default__ = default__; + return this; + } + + /** + * Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema. + * @return value or {@code null} for none + */ + public java.util.Map getDefs() { + return defs; + } + + /** + * Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema. + * @param defs defs or {@code null} for none + */ + public Schema setDefs(java.util.Map defs) { + this.defs = defs; + return this; + } + + /** + * Optional. The description of the data. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the data. + * @param description description or {@code null} for none + */ + public Schema setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Possible values of the element of primitive type with enum format. Examples: 1. We + * can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. + * We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} + * @return value or {@code null} for none + */ + public java.util.List getEnum() { + return enum__; + } + + /** + * Optional. Possible values of the element of primitive type with enum format. Examples: 1. We + * can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. + * We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} + * @param enum__ enum__ or {@code null} for none + */ + public Schema setEnum(java.util.List enum__) { + this.enum__ = enum__; + return this; + } + + /** + * Optional. Schema of the elements of Type.ARRAY. + * @return value or {@code null} for none + */ + public Schema getItems() { + return items; + } + + /** + * Optional. Schema of the elements of Type.ARRAY. + * @param items items or {@code null} for none + */ + public Schema setItems(Schema items) { + this.items = items; + return this; + } + + /** + * Optional. Maximum number of the elements for Type.ARRAY. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxItems() { + return maxItems; + } + + /** + * Optional. Maximum number of the elements for Type.ARRAY. + * @param maxItems maxItems or {@code null} for none + */ + public Schema setMaxItems(java.lang.Long maxItems) { + this.maxItems = maxItems; + return this; + } + + /** + * Optional. Maximum value for Type.INTEGER and Type.NUMBER. + * @return value or {@code null} for none + */ + public java.lang.Double getMaximum() { + return maximum; + } + + /** + * Optional. Maximum value for Type.INTEGER and Type.NUMBER. + * @param maximum maximum or {@code null} for none + */ + public Schema setMaximum(java.lang.Double maximum) { + this.maximum = maximum; + return this; + } + + /** + * Optional. Minimum number of the elements for Type.ARRAY. + * @return value or {@code null} for none + */ + public java.lang.Long getMinItems() { + return minItems; + } + + /** + * Optional. Minimum number of the elements for Type.ARRAY. + * @param minItems minItems or {@code null} for none + */ + public Schema setMinItems(java.lang.Long minItems) { + this.minItems = minItems; + return this; + } + + /** + * Optional. Minimum value for Type.INTEGER and Type.NUMBER. + * @return value or {@code null} for none + */ + public java.lang.Double getMinimum() { + return minimum; + } + + /** + * Optional. Minimum value for Type.INTEGER and Type.NUMBER. + * @param minimum minimum or {@code null} for none + */ + public Schema setMinimum(java.lang.Double minimum) { + this.minimum = minimum; + return this; + } + + /** + * Optional. Indicates if the value may be null. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNullable() { + return nullable; + } + + /** + * Optional. Indicates if the value may be null. + * @param nullable nullable or {@code null} for none + */ + public Schema setNullable(java.lang.Boolean nullable) { + this.nullable = nullable; + return this; + } + + /** + * Optional. Schemas of initial elements of Type.ARRAY. + * @return value or {@code null} for none + */ + public java.util.List getPrefixItems() { + return prefixItems; + } + + /** + * Optional. Schemas of initial elements of Type.ARRAY. + * @param prefixItems prefixItems or {@code null} for none + */ + public Schema setPrefixItems(java.util.List prefixItems) { + this.prefixItems = prefixItems; + return this; + } + + /** + * Optional. Properties of Type.OBJECT. + * @return value or {@code null} for none + */ + public java.util.Map getProperties() { + return properties; + } + + /** + * Optional. Properties of Type.OBJECT. + * @param properties properties or {@code null} for none + */ + public Schema setProperties(java.util.Map properties) { + this.properties = properties; + return this; + } + + /** + * Optional. Allows indirect references between schema nodes. The value should be a valid + * reference to a child of the root `defs`. For example, the following schema defines a reference + * to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: + * object properties: name: type: string The value of the "pet" property is a reference to the + * schema node named "Pet". See details in https://json-schema.org/understanding-json- + * schema/structuring. + * @return value or {@code null} for none + */ + public java.lang.String getRef() { + return ref; + } + + /** + * Optional. Allows indirect references between schema nodes. The value should be a valid + * reference to a child of the root `defs`. For example, the following schema defines a reference + * to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: + * object properties: name: type: string The value of the "pet" property is a reference to the + * schema node named "Pet". See details in https://json-schema.org/understanding-json- + * schema/structuring. + * @param ref ref or {@code null} for none + */ + public Schema setRef(java.lang.String ref) { + this.ref = ref; + return this; + } + + /** + * Optional. Required properties of Type.OBJECT. + * @return value or {@code null} for none + */ + public java.util.List getRequired() { + return required; + } + + /** + * Optional. Required properties of Type.OBJECT. + * @param required required or {@code null} for none + */ + public Schema setRequired(java.util.List required) { + this.required = required; + return this; + } + + /** + * Optional. The title of the schema. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. The title of the schema. + * @param title title or {@code null} for none + */ + public Schema setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Required. The type of the data. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The type of the data. + * @param type type or {@code null} for none + */ + public Schema setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY. + * @return value or {@code null} for none + */ + public java.lang.Boolean getUniqueItems() { + return uniqueItems; + } + + /** + * Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY. + * @param uniqueItems uniqueItems or {@code null} for none + */ + public Schema setUniqueItems(java.lang.Boolean uniqueItems) { + this.uniqueItems = uniqueItems; + return this; + } + + @Override + public Schema set(String fieldName, Object value) { + return (Schema) super.set(fieldName, value); + } + + @Override + public Schema clone() { + return (Schema) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceAccountAuthConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceAccountAuthConfig.java new file mode 100644 index 00000000000..662e7fc9353 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceAccountAuthConfig.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configurations for authentication using a custom service account. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceAccountAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The OAuth scopes to grant. If not specified, the default scope + * `https://www.googleapis.com/auth/cloud-platform` is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Required. The email address of the service account used for authentication. CES uses this + * service account to exchange an access token and the access token is then sent in the + * `Authorization` header of the request. The service account must have the + * `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccount; + + /** + * Optional. The OAuth scopes to grant. If not specified, the default scope + * `https://www.googleapis.com/auth/cloud-platform` is used. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Optional. The OAuth scopes to grant. If not specified, the default scope + * `https://www.googleapis.com/auth/cloud-platform` is used. + * @param scopes scopes or {@code null} for none + */ + public ServiceAccountAuthConfig setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Required. The email address of the service account used for authentication. CES uses this + * service account to exchange an access token and the access token is then sent in the + * `Authorization` header of the request. The service account must have the + * `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccount() { + return serviceAccount; + } + + /** + * Required. The email address of the service account used for authentication. CES uses this + * service account to exchange an access token and the access token is then sent in the + * `Authorization` header of the request. The service account must have the + * `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param serviceAccount serviceAccount or {@code null} for none + */ + public ServiceAccountAuthConfig setServiceAccount(java.lang.String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + + @Override + public ServiceAccountAuthConfig set(String fieldName, Object value) { + return (ServiceAccountAuthConfig) super.set(fieldName, value); + } + + @Override + public ServiceAccountAuthConfig clone() { + return (ServiceAccountAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceAgentIdTokenAuthConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceAgentIdTokenAuthConfig.java new file mode 100644 index 00000000000..3fd714923b8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceAgentIdTokenAuthConfig.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configurations for authentication with [ID + * token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceAgentIdTokenAuthConfig extends com.google.api.client.json.GenericJson { + + @Override + public ServiceAgentIdTokenAuthConfig set(String fieldName, Object value) { + return (ServiceAgentIdTokenAuthConfig) super.set(fieldName, value); + } + + @Override + public ServiceAgentIdTokenAuthConfig clone() { + return (ServiceAgentIdTokenAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceDirectoryConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceDirectoryConfig.java new file mode 100644 index 00000000000..538591fda0b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ServiceDirectoryConfig.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.ces.v1.model; + +/** + * Configuration for tools using Service Directory. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceDirectoryConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. + * Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + * Location of the service directory must be the same as the location of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. + * Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + * Location of the service directory must be the same as the location of the app. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. + * Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + * Location of the service directory must be the same as the location of the app. + * @param service service or {@code null} for none + */ + public ServiceDirectoryConfig setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public ServiceDirectoryConfig set(String fieldName, Object value) { + return (ServiceDirectoryConfig) super.set(fieldName, value); + } + + @Override + public ServiceDirectoryConfig clone() { + return (ServiceDirectoryConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java new file mode 100644 index 00000000000..34e68348bd0 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfig.java @@ -0,0 +1,250 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The configuration for the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The deployment of the app to use for the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Optional. The entry agent to handle the session. If not specified, the session will be handled + * by the root agent of the app. Format: `projects/{project}/locations/{location}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Optional. The historical context of the session, including user inputs, agent responses, and + * other messages. Typically, CES agent would manage session automatically so client doesn't need + * to explicitly populate this field. However, client can optionally override the historical + * contexts to force the session start from certain state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List historicalContexts; + + static { + // hack to force ProGuard to consider Message 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(Message.class); + } + + /** + * Optional. Configuration for processing the input audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InputAudioConfig inputAudioConfig; + + /** + * Optional. Configuration for generating the output audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OutputAudioConfig outputAudioConfig; + + /** + * Optional. [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cl + * oud.dialogflow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionConfigRemoteDialogflowQueryParameters remoteDialogflowQueryParameters; + + /** + * Optional. The time zone of the user. If provided, the agent will use the time zone for date and + * time related variables. Otherwise, the agent will use the time zone specified in the + * App.time_zone_settings. The format is the IANA Time Zone Database time zone, e.g. + * "America/Los_Angeles". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. The deployment of the app to use for the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Optional. The deployment of the app to use for the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @param deployment deployment or {@code null} for none + */ + public SessionConfig setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Optional. The entry agent to handle the session. If not specified, the session will be handled + * by the root agent of the app. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getEntryAgent() { + return entryAgent; + } + + /** + * Optional. The entry agent to handle the session. If not specified, the session will be handled + * by the root agent of the app. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @param entryAgent entryAgent or {@code null} for none + */ + public SessionConfig setEntryAgent(java.lang.String entryAgent) { + this.entryAgent = entryAgent; + return this; + } + + /** + * Optional. The historical context of the session, including user inputs, agent responses, and + * other messages. Typically, CES agent would manage session automatically so client doesn't need + * to explicitly populate this field. However, client can optionally override the historical + * contexts to force the session start from certain state. + * @return value or {@code null} for none + */ + public java.util.List getHistoricalContexts() { + return historicalContexts; + } + + /** + * Optional. The historical context of the session, including user inputs, agent responses, and + * other messages. Typically, CES agent would manage session automatically so client doesn't need + * to explicitly populate this field. However, client can optionally override the historical + * contexts to force the session start from certain state. + * @param historicalContexts historicalContexts or {@code null} for none + */ + public SessionConfig setHistoricalContexts(java.util.List historicalContexts) { + this.historicalContexts = historicalContexts; + return this; + } + + /** + * Optional. Configuration for processing the input audio. + * @return value or {@code null} for none + */ + public InputAudioConfig getInputAudioConfig() { + return inputAudioConfig; + } + + /** + * Optional. Configuration for processing the input audio. + * @param inputAudioConfig inputAudioConfig or {@code null} for none + */ + public SessionConfig setInputAudioConfig(InputAudioConfig inputAudioConfig) { + this.inputAudioConfig = inputAudioConfig; + return this; + } + + /** + * Optional. Configuration for generating the output audio. + * @return value or {@code null} for none + */ + public OutputAudioConfig getOutputAudioConfig() { + return outputAudioConfig; + } + + /** + * Optional. Configuration for generating the output audio. + * @param outputAudioConfig outputAudioConfig or {@code null} for none + */ + public SessionConfig setOutputAudioConfig(OutputAudioConfig outputAudioConfig) { + this.outputAudioConfig = outputAudioConfig; + return this; + } + + /** + * Optional. [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cl + * oud.dialogflow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * @return value or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters getRemoteDialogflowQueryParameters() { + return remoteDialogflowQueryParameters; + } + + /** + * Optional. [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cl + * oud.dialogflow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * @param remoteDialogflowQueryParameters remoteDialogflowQueryParameters or {@code null} for none + */ + public SessionConfig setRemoteDialogflowQueryParameters(SessionConfigRemoteDialogflowQueryParameters remoteDialogflowQueryParameters) { + this.remoteDialogflowQueryParameters = remoteDialogflowQueryParameters; + return this; + } + + /** + * Optional. The time zone of the user. If provided, the agent will use the time zone for date and + * time related variables. Otherwise, the agent will use the time zone specified in the + * App.time_zone_settings. The format is the IANA Time Zone Database time zone, e.g. + * "America/Los_Angeles". + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. The time zone of the user. If provided, the agent will use the time zone for date and + * time related variables. Otherwise, the agent will use the time zone specified in the + * App.time_zone_settings. The format is the IANA Time Zone Database time zone, e.g. + * "America/Los_Angeles". + * @param timeZone timeZone or {@code null} for none + */ + public SessionConfig setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public SessionConfig set(String fieldName, Object value) { + return (SessionConfig) super.set(fieldName, value); + } + + @Override + public SessionConfig clone() { + return (SessionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfigRemoteDialogflowQueryParameters.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfigRemoteDialogflowQueryParameters.java new file mode 100644 index 00000000000..888b116ecf8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionConfigRemoteDialogflowQueryParameters.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogfl + * ow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionConfigRemoteDialogflowQueryParameters extends com.google.api.client.json.GenericJson { + + /** + * Optional. The end user metadata to be sent in [QueryParameters](https://cloud.google.com/dialog + * flow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map endUserMetadata; + + /** + * Optional. The payload to be sent in [QueryParameters](https://cloud.google.com/dialogflow/cx/do + * cs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map payload; + + /** + * Optional. The HTTP headers to be sent as webhook_headers in [QueryParameters](https://cloud.goo + * gle.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map webhookHeaders; + + /** + * Optional. The end user metadata to be sent in [QueryParameters](https://cloud.google.com/dialog + * flow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @return value or {@code null} for none + */ + public java.util.Map getEndUserMetadata() { + return endUserMetadata; + } + + /** + * Optional. The end user metadata to be sent in [QueryParameters](https://cloud.google.com/dialog + * flow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @param endUserMetadata endUserMetadata or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters setEndUserMetadata(java.util.Map endUserMetadata) { + this.endUserMetadata = endUserMetadata; + return this; + } + + /** + * Optional. The payload to be sent in [QueryParameters](https://cloud.google.com/dialogflow/cx/do + * cs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @return value or {@code null} for none + */ + public java.util.Map getPayload() { + return payload; + } + + /** + * Optional. The payload to be sent in [QueryParameters](https://cloud.google.com/dialogflow/cx/do + * cs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @param payload payload or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters setPayload(java.util.Map payload) { + this.payload = payload; + return this; + } + + /** + * Optional. The HTTP headers to be sent as webhook_headers in [QueryParameters](https://cloud.goo + * gle.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @return value or {@code null} for none + */ + public java.util.Map getWebhookHeaders() { + return webhookHeaders; + } + + /** + * Optional. The HTTP headers to be sent as webhook_headers in [QueryParameters](https://cloud.goo + * gle.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @param webhookHeaders webhookHeaders or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters setWebhookHeaders(java.util.Map webhookHeaders) { + this.webhookHeaders = webhookHeaders; + return this; + } + + @Override + public SessionConfigRemoteDialogflowQueryParameters set(String fieldName, Object value) { + return (SessionConfigRemoteDialogflowQueryParameters) super.set(fieldName, value); + } + + @Override + public SessionConfigRemoteDialogflowQueryParameters clone() { + return (SessionConfigRemoteDialogflowQueryParameters) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionInput.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionInput.java new file mode 100644 index 00000000000..1f941fd0b4b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionInput.java @@ -0,0 +1,302 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Input for the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionInput extends com.google.api.client.json.GenericJson { + + /** + * Optional. Audio data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audio; + + /** + * Optional. Blob data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Blob blob; + + /** + * Optional. DTMF digits from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dtmf; + + /** + * Optional. Event input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Event event; + + /** + * Optional. Image data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * Optional. Text data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Execution results for the tool calls from the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponses toolResponses; + + /** + * Optional. Contextual variables for the session, keyed by name. Only variables declared in the + * app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow + * agent as additional session parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map variables; + + /** + * Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi + * streaming session. When `true`, the agent will defer processing until a subsequent message with + * `will_continue` set to `false` is received. Note: This flag has no effect on audio and DTMF + * inputs, which are always processed in real-time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean willContinue; + + /** + * Optional. Audio data from the end user. + * @see #decodeAudio() + * @return value or {@code null} for none + */ + public java.lang.String getAudio() { + return audio; + } + + /** + * Optional. Audio data from the end user. + * @see #getAudio() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAudio() { + return com.google.api.client.util.Base64.decodeBase64(audio); + } + + /** + * Optional. Audio data from the end user. + * @see #encodeAudio() + * @param audio audio or {@code null} for none + */ + public SessionInput setAudio(java.lang.String audio) { + this.audio = audio; + return this; + } + + /** + * Optional. Audio data from the end user. + * @see #setAudio() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SessionInput encodeAudio(byte[] audio) { + this.audio = com.google.api.client.util.Base64.encodeBase64URLSafeString(audio); + return this; + } + + /** + * Optional. Blob data from the end user. + * @return value or {@code null} for none + */ + public Blob getBlob() { + return blob; + } + + /** + * Optional. Blob data from the end user. + * @param blob blob or {@code null} for none + */ + public SessionInput setBlob(Blob blob) { + this.blob = blob; + return this; + } + + /** + * Optional. DTMF digits from the end user. + * @return value or {@code null} for none + */ + public java.lang.String getDtmf() { + return dtmf; + } + + /** + * Optional. DTMF digits from the end user. + * @param dtmf dtmf or {@code null} for none + */ + public SessionInput setDtmf(java.lang.String dtmf) { + this.dtmf = dtmf; + return this; + } + + /** + * Optional. Event input. + * @return value or {@code null} for none + */ + public Event getEvent() { + return event; + } + + /** + * Optional. Event input. + * @param event event or {@code null} for none + */ + public SessionInput setEvent(Event event) { + this.event = event; + return this; + } + + /** + * Optional. Image data from the end user. + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * Optional. Image data from the end user. + * @param image image or {@code null} for none + */ + public SessionInput setImage(Image image) { + this.image = image; + return this; + } + + /** + * Optional. Text data from the end user. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Optional. Text data from the end user. + * @param text text or {@code null} for none + */ + public SessionInput setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Optional. Execution results for the tool calls from the client. + * @return value or {@code null} for none + */ + public ToolResponses getToolResponses() { + return toolResponses; + } + + /** + * Optional. Execution results for the tool calls from the client. + * @param toolResponses toolResponses or {@code null} for none + */ + public SessionInput setToolResponses(ToolResponses toolResponses) { + this.toolResponses = toolResponses; + return this; + } + + /** + * Optional. Contextual variables for the session, keyed by name. Only variables declared in the + * app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow + * agent as additional session parameters. + * @return value or {@code null} for none + */ + public java.util.Map getVariables() { + return variables; + } + + /** + * Optional. Contextual variables for the session, keyed by name. Only variables declared in the + * app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow + * agent as additional session parameters. + * @param variables variables or {@code null} for none + */ + public SessionInput setVariables(java.util.Map variables) { + this.variables = variables; + return this; + } + + /** + * Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi + * streaming session. When `true`, the agent will defer processing until a subsequent message with + * `will_continue` set to `false` is received. Note: This flag has no effect on audio and DTMF + * inputs, which are always processed in real-time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getWillContinue() { + return willContinue; + } + + /** + * Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi + * streaming session. When `true`, the agent will defer processing until a subsequent message with + * `will_continue` set to `false` is received. Note: This flag has no effect on audio and DTMF + * inputs, which are always processed in real-time. + * @param willContinue willContinue or {@code null} for none + */ + public SessionInput setWillContinue(java.lang.Boolean willContinue) { + this.willContinue = willContinue; + return this; + } + + @Override + public SessionInput set(String fieldName, Object value) { + return (SessionInput) super.set(fieldName, value); + } + + @Override + public SessionInput clone() { + return (SessionInput) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionOutput.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionOutput.java new file mode 100644 index 00000000000..0f0fa12c773 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionOutput.java @@ -0,0 +1,320 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Output for the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionOutput extends com.google.api.client.json.GenericJson { + + /** + * Output audio from the CES agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audio; + + /** + * Citations that provide the source information for the agent's generated text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Citations citations; + + /** + * Optional. Diagnostic information contains execution details during the processing of the input. + * Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionOutputDiagnosticInfo diagnosticInfo; + + /** + * Indicates the session has ended. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndSession endSession; + + /** + * The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleSearchSuggestions googleSearchSuggestions; + + /** + * Custom payload with structured output from the CES agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map payload; + + /** + * Output text from the CES agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Request for the client to execute the tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCalls toolCalls; + + /** + * If true, the CES agent has detected the end of the current conversation turn and will provide + * no further output for this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean turnCompleted; + + /** + * Indicates the sequential order of conversation turn to which this output belongs to, starting + * from 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer turnIndex; + + /** + * Output audio from the CES agent. + * @see #decodeAudio() + * @return value or {@code null} for none + */ + public java.lang.String getAudio() { + return audio; + } + + /** + * Output audio from the CES agent. + * @see #getAudio() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAudio() { + return com.google.api.client.util.Base64.decodeBase64(audio); + } + + /** + * Output audio from the CES agent. + * @see #encodeAudio() + * @param audio audio or {@code null} for none + */ + public SessionOutput setAudio(java.lang.String audio) { + this.audio = audio; + return this; + } + + /** + * Output audio from the CES agent. + * @see #setAudio() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SessionOutput encodeAudio(byte[] audio) { + this.audio = com.google.api.client.util.Base64.encodeBase64URLSafeString(audio); + return this; + } + + /** + * Citations that provide the source information for the agent's generated text. + * @return value or {@code null} for none + */ + public Citations getCitations() { + return citations; + } + + /** + * Citations that provide the source information for the agent's generated text. + * @param citations citations or {@code null} for none + */ + public SessionOutput setCitations(Citations citations) { + this.citations = citations; + return this; + } + + /** + * Optional. Diagnostic information contains execution details during the processing of the input. + * Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. + * @return value or {@code null} for none + */ + public SessionOutputDiagnosticInfo getDiagnosticInfo() { + return diagnosticInfo; + } + + /** + * Optional. Diagnostic information contains execution details during the processing of the input. + * Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. + * @param diagnosticInfo diagnosticInfo or {@code null} for none + */ + public SessionOutput setDiagnosticInfo(SessionOutputDiagnosticInfo diagnosticInfo) { + this.diagnosticInfo = diagnosticInfo; + return this; + } + + /** + * Indicates the session has ended. + * @return value or {@code null} for none + */ + public EndSession getEndSession() { + return endSession; + } + + /** + * Indicates the session has ended. + * @param endSession endSession or {@code null} for none + */ + public SessionOutput setEndSession(EndSession endSession) { + this.endSession = endSession; + return this; + } + + /** + * The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. + * @return value or {@code null} for none + */ + public GoogleSearchSuggestions getGoogleSearchSuggestions() { + return googleSearchSuggestions; + } + + /** + * The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. + * @param googleSearchSuggestions googleSearchSuggestions or {@code null} for none + */ + public SessionOutput setGoogleSearchSuggestions(GoogleSearchSuggestions googleSearchSuggestions) { + this.googleSearchSuggestions = googleSearchSuggestions; + return this; + } + + /** + * Custom payload with structured output from the CES agent. + * @return value or {@code null} for none + */ + public java.util.Map getPayload() { + return payload; + } + + /** + * Custom payload with structured output from the CES agent. + * @param payload payload or {@code null} for none + */ + public SessionOutput setPayload(java.util.Map payload) { + this.payload = payload; + return this; + } + + /** + * Output text from the CES agent. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Output text from the CES agent. + * @param text text or {@code null} for none + */ + public SessionOutput setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Request for the client to execute the tools. + * @return value or {@code null} for none + */ + public ToolCalls getToolCalls() { + return toolCalls; + } + + /** + * Request for the client to execute the tools. + * @param toolCalls toolCalls or {@code null} for none + */ + public SessionOutput setToolCalls(ToolCalls toolCalls) { + this.toolCalls = toolCalls; + return this; + } + + /** + * If true, the CES agent has detected the end of the current conversation turn and will provide + * no further output for this turn. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTurnCompleted() { + return turnCompleted; + } + + /** + * If true, the CES agent has detected the end of the current conversation turn and will provide + * no further output for this turn. + * @param turnCompleted turnCompleted or {@code null} for none + */ + public SessionOutput setTurnCompleted(java.lang.Boolean turnCompleted) { + this.turnCompleted = turnCompleted; + return this; + } + + /** + * Indicates the sequential order of conversation turn to which this output belongs to, starting + * from 1. + * @return value or {@code null} for none + */ + public java.lang.Integer getTurnIndex() { + return turnIndex; + } + + /** + * Indicates the sequential order of conversation turn to which this output belongs to, starting + * from 1. + * @param turnIndex turnIndex or {@code null} for none + */ + public SessionOutput setTurnIndex(java.lang.Integer turnIndex) { + this.turnIndex = turnIndex; + return this; + } + + @Override + public SessionOutput set(String fieldName, Object value) { + return (SessionOutput) super.set(fieldName, value); + } + + @Override + public SessionOutput clone() { + return (SessionOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionOutputDiagnosticInfo.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionOutputDiagnosticInfo.java new file mode 100644 index 00000000000..e705c8202a3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SessionOutputDiagnosticInfo.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Contains execution details during the processing. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionOutputDiagnosticInfo extends com.google.api.client.json.GenericJson { + + /** + * List of the messages that happened during the processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + static { + // hack to force ProGuard to consider Message 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(Message.class); + } + + /** + * A trace of the entire request processing, represented as a root span. This span can contain + * nested child spans for specific operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Span rootSpan; + + /** + * List of the messages that happened during the processing. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * List of the messages that happened during the processing. + * @param messages messages or {@code null} for none + */ + public SessionOutputDiagnosticInfo setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * A trace of the entire request processing, represented as a root span. This span can contain + * nested child spans for specific operations. + * @return value or {@code null} for none + */ + public Span getRootSpan() { + return rootSpan; + } + + /** + * A trace of the entire request processing, represented as a root span. This span can contain + * nested child spans for specific operations. + * @param rootSpan rootSpan or {@code null} for none + */ + public SessionOutputDiagnosticInfo setRootSpan(Span rootSpan) { + this.rootSpan = rootSpan; + return this; + } + + @Override + public SessionOutputDiagnosticInfo set(String fieldName, Object value) { + return (SessionOutputDiagnosticInfo) super.set(fieldName, value); + } + + @Override + public SessionOutputDiagnosticInfo clone() { + return (SessionOutputDiagnosticInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.java new file mode 100644 index 00000000000..11741c747ac --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Span.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.ces.v1.model; + +/** + * A span is a unit of work or a single operation during the request processing. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Span extends com.google.api.client.json.GenericJson { + + /** + * Output only. Key-value attributes associated with the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map attributes; + + /** + * Output only. The child spans that are nested under this span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childSpans; + + /** + * Output only. The duration of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * Output only. The end time of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The name of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The start time of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Key-value attributes associated with the span. + * @return value or {@code null} for none + */ + public java.util.Map getAttributes() { + return attributes; + } + + /** + * Output only. Key-value attributes associated with the span. + * @param attributes attributes or {@code null} for none + */ + public Span setAttributes(java.util.Map attributes) { + this.attributes = attributes; + return this; + } + + /** + * Output only. The child spans that are nested under this span. + * @return value or {@code null} for none + */ + public java.util.List getChildSpans() { + return childSpans; + } + + /** + * Output only. The child spans that are nested under this span. + * @param childSpans childSpans or {@code null} for none + */ + public Span setChildSpans(java.util.List childSpans) { + this.childSpans = childSpans; + return this; + } + + /** + * Output only. The duration of the span. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * Output only. The duration of the span. + * @param duration duration or {@code null} for none + */ + public Span setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * Output only. The end time of the span. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The end time of the span. + * @param endTime endTime or {@code null} for none + */ + public Span setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The name of the span. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The name of the span. + * @param name name or {@code null} for none + */ + public Span setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The start time of the span. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. The start time of the span. + * @param startTime startTime or {@code null} for none + */ + public Span setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public Span set(String fieldName, Object value) { + return (Span) super.set(fieldName, value); + } + + @Override + public Span clone() { + return (Span) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Status.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Status.java new file mode 100644 index 00000000000..fa1086f7ed1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Status.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SynthesizeSpeechConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SynthesizeSpeechConfig.java new file mode 100644 index 00000000000..efd6ca89bc8 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SynthesizeSpeechConfig.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Configuration for how the agent response should be synthesized. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SynthesizeSpeechConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed + * supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside + * of the range [0.25, 2.0] will return an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double speakingRate; + + /** + * Optional. The name of the voice. If not set, the service will choose a voice based on the other + * parameters such as language_code. For the list of available voices, please refer to [Supported + * voices and languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud Text-to- + * Speech. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String voice; + + /** + * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed + * supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside + * of the range [0.25, 2.0] will return an error. + * @return value or {@code null} for none + */ + public java.lang.Double getSpeakingRate() { + return speakingRate; + } + + /** + * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed + * supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside + * of the range [0.25, 2.0] will return an error. + * @param speakingRate speakingRate or {@code null} for none + */ + public SynthesizeSpeechConfig setSpeakingRate(java.lang.Double speakingRate) { + this.speakingRate = speakingRate; + return this; + } + + /** + * Optional. The name of the voice. If not set, the service will choose a voice based on the other + * parameters such as language_code. For the list of available voices, please refer to [Supported + * voices and languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud Text-to- + * Speech. + * @return value or {@code null} for none + */ + public java.lang.String getVoice() { + return voice; + } + + /** + * Optional. The name of the voice. If not set, the service will choose a voice based on the other + * parameters such as language_code. For the list of available voices, please refer to [Supported + * voices and languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud Text-to- + * Speech. + * @param voice voice or {@code null} for none + */ + public SynthesizeSpeechConfig setVoice(java.lang.String voice) { + this.voice = voice; + return this; + } + + @Override + public SynthesizeSpeechConfig set(String fieldName, Object value) { + return (SynthesizeSpeechConfig) super.set(fieldName, value); + } + + @Override + public SynthesizeSpeechConfig clone() { + return (SynthesizeSpeechConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SystemTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SystemTool.java new file mode 100644 index 00000000000..1d6726f61f3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/SystemTool.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.ces.v1.model; + +/** + * Pre-defined system tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SystemTool extends com.google.api.client.json.GenericJson { + + /** + * Output only. The description of the system tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The name of the system tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The description of the system tool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. The description of the system tool. + * @param description description or {@code null} for none + */ + public SystemTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The name of the system tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the system tool. + * @param name name or {@code null} for none + */ + public SystemTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public SystemTool set(String fieldName, Object value) { + return (SystemTool) super.set(fieldName, value); + } + + @Override + public SystemTool clone() { + return (SystemTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TimeZoneSettings.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TimeZoneSettings.java new file mode 100644 index 00000000000..b229680a61d --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TimeZoneSettings.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * TimeZone settings of the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeZoneSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The time zone of the app from the [time zone database](https://www.iana.org/time- + * zones), e.g., America/Los_Angeles, Europe/Paris. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. The time zone of the app from the [time zone database](https://www.iana.org/time- + * zones), e.g., America/Los_Angeles, Europe/Paris. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. The time zone of the app from the [time zone database](https://www.iana.org/time- + * zones), e.g., America/Los_Angeles, Europe/Paris. + * @param timeZone timeZone or {@code null} for none + */ + public TimeZoneSettings setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public TimeZoneSettings set(String fieldName, Object value) { + return (TimeZoneSettings) super.set(fieldName, value); + } + + @Override + public TimeZoneSettings clone() { + return (TimeZoneSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TlsConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TlsConfig.java new file mode 100644 index 00000000000..83b7f400a9c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TlsConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The TLS 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TlsConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies a list of allowed custom CA certificates for HTTPS verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List caCerts; + + /** + * Required. Specifies a list of allowed custom CA certificates for HTTPS verification. + * @return value or {@code null} for none + */ + public java.util.List getCaCerts() { + return caCerts; + } + + /** + * Required. Specifies a list of allowed custom CA certificates for HTTPS verification. + * @param caCerts caCerts or {@code null} for none + */ + public TlsConfig setCaCerts(java.util.List caCerts) { + this.caCerts = caCerts; + return this; + } + + @Override + public TlsConfig set(String fieldName, Object value) { + return (TlsConfig) super.set(fieldName, value); + } + + @Override + public TlsConfig clone() { + return (TlsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TlsConfigCaCert.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TlsConfigCaCert.java new file mode 100644 index 00000000000..2539d372b4a --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TlsConfigCaCert.java @@ -0,0 +1,147 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The CA certificate. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TlsConfigCaCert extends com.google.api.client.json.GenericJson { + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cert; + + /** + * Required. The name of the allowed custom CA certificates. This can be used to disambiguate the + * custom CA certificates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #decodeCert() + * @return value or {@code null} for none + */ + public java.lang.String getCert() { + return cert; + } + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #getCert() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeCert() { + return com.google.api.client.util.Base64.decodeBase64(cert); + } + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #encodeCert() + * @param cert cert or {@code null} for none + */ + public TlsConfigCaCert setCert(java.lang.String cert) { + this.cert = cert; + return this; + } + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #setCert() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TlsConfigCaCert encodeCert(byte[] cert) { + this.cert = com.google.api.client.util.Base64.encodeBase64URLSafeString(cert); + return this; + } + + /** + * Required. The name of the allowed custom CA certificates. This can be used to disambiguate the + * custom CA certificates. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The name of the allowed custom CA certificates. This can be used to disambiguate the + * custom CA certificates. + * @param displayName displayName or {@code null} for none + */ + public TlsConfigCaCert setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + @Override + public TlsConfigCaCert set(String fieldName, Object value) { + return (TlsConfigCaCert) super.set(fieldName, value); + } + + @Override + public TlsConfigCaCert clone() { + return (TlsConfigCaCert) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java new file mode 100644 index 00000000000..3cb5a9731b1 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Tool.java @@ -0,0 +1,499 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A tool represents an action that the CES agent can take to achieve certain goals. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Tool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The client function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClientFunction clientFunction; + + /** + * Optional. The Integration Connector tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConnectorTool connectorTool; + + /** + * Output only. Timestamp when the tool was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The data store tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreTool dataStoreTool; + + /** + * Output only. The display name of the tool, derived based on the tool's type. For example, + * display name of a ClientFunction is derived from its `name` property. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The execution type of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String executionType; + + /** + * Optional. The file search tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FileSearchTool fileSearchTool; + + /** + * Output only. If the tool is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSummary; + + /** + * Optional. The google search tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleSearchTool googleSearchTool; + + /** + * Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the + * MCP toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private McpTool mcpTool; + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + * retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + * directly where a tool is expected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The open API tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OpenApiTool openApiTool; + + /** + * Optional. The python function tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PythonFunction pythonFunction; + + /** + * Optional. The system tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SystemTool systemTool; + + /** + * Optional. Configuration for tool behavior in fake mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolFakeConfig toolFakeConfig; + + /** + * Output only. Timestamp when the tool was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WidgetTool widgetTool; + + /** + * Optional. The client function. + * @return value or {@code null} for none + */ + public ClientFunction getClientFunction() { + return clientFunction; + } + + /** + * Optional. The client function. + * @param clientFunction clientFunction or {@code null} for none + */ + public Tool setClientFunction(ClientFunction clientFunction) { + this.clientFunction = clientFunction; + return this; + } + + /** + * Optional. The Integration Connector tool. + * @return value or {@code null} for none + */ + public ConnectorTool getConnectorTool() { + return connectorTool; + } + + /** + * Optional. The Integration Connector tool. + * @param connectorTool connectorTool or {@code null} for none + */ + public Tool setConnectorTool(ConnectorTool connectorTool) { + this.connectorTool = connectorTool; + return this; + } + + /** + * Output only. Timestamp when the tool was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the tool was created. + * @param createTime createTime or {@code null} for none + */ + public Tool setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The data store tool. + * @return value or {@code null} for none + */ + public DataStoreTool getDataStoreTool() { + return dataStoreTool; + } + + /** + * Optional. The data store tool. + * @param dataStoreTool dataStoreTool or {@code null} for none + */ + public Tool setDataStoreTool(DataStoreTool dataStoreTool) { + this.dataStoreTool = dataStoreTool; + return this; + } + + /** + * Output only. The display name of the tool, derived based on the tool's type. For example, + * display name of a ClientFunction is derived from its `name` property. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the tool, derived based on the tool's type. For example, + * display name of a ClientFunction is derived from its `name` property. + * @param displayName displayName or {@code null} for none + */ + public Tool setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Tool setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The execution type of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getExecutionType() { + return executionType; + } + + /** + * Optional. The execution type of the tool. + * @param executionType executionType or {@code null} for none + */ + public Tool setExecutionType(java.lang.String executionType) { + this.executionType = executionType; + return this; + } + + /** + * Optional. The file search tool. + * @return value or {@code null} for none + */ + public FileSearchTool getFileSearchTool() { + return fileSearchTool; + } + + /** + * Optional. The file search tool. + * @param fileSearchTool fileSearchTool or {@code null} for none + */ + public Tool setFileSearchTool(FileSearchTool fileSearchTool) { + this.fileSearchTool = fileSearchTool; + return this; + } + + /** + * Output only. If the tool is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSummary() { + return generatedSummary; + } + + /** + * Output only. If the tool is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @param generatedSummary generatedSummary or {@code null} for none + */ + public Tool setGeneratedSummary(java.lang.String generatedSummary) { + this.generatedSummary = generatedSummary; + return this; + } + + /** + * Optional. The google search tool. + * @return value or {@code null} for none + */ + public GoogleSearchTool getGoogleSearchTool() { + return googleSearchTool; + } + + /** + * Optional. The google search tool. + * @param googleSearchTool googleSearchTool or {@code null} for none + */ + public Tool setGoogleSearchTool(GoogleSearchTool googleSearchTool) { + this.googleSearchTool = googleSearchTool; + return this; + } + + /** + * Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the + * MCP toolset. + * @return value or {@code null} for none + */ + public McpTool getMcpTool() { + return mcpTool; + } + + /** + * Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the + * MCP toolset. + * @param mcpTool mcpTool or {@code null} for none + */ + public Tool setMcpTool(McpTool mcpTool) { + this.mcpTool = mcpTool; + return this; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + * retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + * directly where a tool is expected. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + * retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + * directly where a tool is expected. + * @param name name or {@code null} for none + */ + public Tool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The open API tool. + * @return value or {@code null} for none + */ + public OpenApiTool getOpenApiTool() { + return openApiTool; + } + + /** + * Optional. The open API tool. + * @param openApiTool openApiTool or {@code null} for none + */ + public Tool setOpenApiTool(OpenApiTool openApiTool) { + this.openApiTool = openApiTool; + return this; + } + + /** + * Optional. The python function tool. + * @return value or {@code null} for none + */ + public PythonFunction getPythonFunction() { + return pythonFunction; + } + + /** + * Optional. The python function tool. + * @param pythonFunction pythonFunction or {@code null} for none + */ + public Tool setPythonFunction(PythonFunction pythonFunction) { + this.pythonFunction = pythonFunction; + return this; + } + + /** + * Optional. The system tool. + * @return value or {@code null} for none + */ + public SystemTool getSystemTool() { + return systemTool; + } + + /** + * Optional. The system tool. + * @param systemTool systemTool or {@code null} for none + */ + public Tool setSystemTool(SystemTool systemTool) { + this.systemTool = systemTool; + return this; + } + + /** + * Optional. Configuration for tool behavior in fake mode. + * @return value or {@code null} for none + */ + public ToolFakeConfig getToolFakeConfig() { + return toolFakeConfig; + } + + /** + * Optional. Configuration for tool behavior in fake mode. + * @param toolFakeConfig toolFakeConfig or {@code null} for none + */ + public Tool setToolFakeConfig(ToolFakeConfig toolFakeConfig) { + this.toolFakeConfig = toolFakeConfig; + return this; + } + + /** + * Output only. Timestamp when the tool was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the tool was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Tool setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. The widget tool. + * @return value or {@code null} for none + */ + public WidgetTool getWidgetTool() { + return widgetTool; + } + + /** + * Optional. The widget tool. + * @param widgetTool widgetTool or {@code null} for none + */ + public Tool setWidgetTool(WidgetTool widgetTool) { + this.widgetTool = widgetTool; + return this; + } + + @Override + public Tool set(String fieldName, Object value) { + return (Tool) super.set(fieldName, value); + } + + @Override + public Tool clone() { + return (Tool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolCall.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolCall.java new file mode 100644 index 00000000000..602cb9e7941 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolCall.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request for the client or the agent to execute the specified tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolCall extends com.google.api.client.json.GenericJson { + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map args; + + /** + * Output only. Display name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The unique identifier of the tool call. If populated, the client should return the + * execution result with the matching ID in ToolResponse. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool to execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @return value or {@code null} for none + */ + public java.util.Map getArgs() { + return args; + } + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @param args args or {@code null} for none + */ + public ToolCall setArgs(java.util.Map args) { + this.args = args; + return this; + } + + /** + * Output only. Display name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the tool. + * @param displayName displayName or {@code null} for none + */ + public ToolCall setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The unique identifier of the tool call. If populated, the client should return the + * execution result with the matching ID in ToolResponse. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The unique identifier of the tool call. If populated, the client should return the + * execution result with the matching ID in ToolResponse. + * @param id id or {@code null} for none + */ + public ToolCall setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public ToolCall setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool to execute. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool to execute. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ToolCall setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ToolCall set(String fieldName, Object value) { + return (ToolCall) super.set(fieldName, value); + } + + @Override + public ToolCall clone() { + return (ToolCall) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolCalls.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolCalls.java new file mode 100644 index 00000000000..0bedef2ca22 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolCalls.java @@ -0,0 +1,74 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Request for the client to execute the tools and return the execution results before continuing + * the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolCalls extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tool calls to execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCalls; + + static { + // hack to force ProGuard to consider ToolCall 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(ToolCall.class); + } + + /** + * Optional. The list of tool calls to execute. + * @return value or {@code null} for none + */ + public java.util.List getToolCalls() { + return toolCalls; + } + + /** + * Optional. The list of tool calls to execute. + * @param toolCalls toolCalls or {@code null} for none + */ + public ToolCalls setToolCalls(java.util.List toolCalls) { + this.toolCalls = toolCalls; + return this; + } + + @Override + public ToolCalls set(String fieldName, Object value) { + return (ToolCalls) super.set(fieldName, value); + } + + @Override + public ToolCalls clone() { + return (ToolCalls) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolFakeConfig.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolFakeConfig.java new file mode 100644 index 00000000000..c1037013cee --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolFakeConfig.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.ces.v1.model; + +/** + * Configuration for tool behavior in fake mode. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolFakeConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Code block which will be executed instead of a real tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CodeBlock codeBlock; + + /** + * Optional. Whether the tool is using fake mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableFakeMode; + + /** + * Optional. Code block which will be executed instead of a real tool call. + * @return value or {@code null} for none + */ + public CodeBlock getCodeBlock() { + return codeBlock; + } + + /** + * Optional. Code block which will be executed instead of a real tool call. + * @param codeBlock codeBlock or {@code null} for none + */ + public ToolFakeConfig setCodeBlock(CodeBlock codeBlock) { + this.codeBlock = codeBlock; + return this; + } + + /** + * Optional. Whether the tool is using fake mode. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableFakeMode() { + return enableFakeMode; + } + + /** + * Optional. Whether the tool is using fake mode. + * @param enableFakeMode enableFakeMode or {@code null} for none + */ + public ToolFakeConfig setEnableFakeMode(java.lang.Boolean enableFakeMode) { + this.enableFakeMode = enableFakeMode; + return this; + } + + @Override + public ToolFakeConfig set(String fieldName, Object value) { + return (ToolFakeConfig) super.set(fieldName, value); + } + + @Override + public ToolFakeConfig clone() { + return (ToolFakeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolResponse.java new file mode 100644 index 00000000000..39e1a489033 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolResponse.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The execution result of a specific tool from the client or the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. Display name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The matching ID of the tool call the response is for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool that got executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Output only. Display name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the tool. + * @param displayName displayName or {@code null} for none + */ + public ToolResponse setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The matching ID of the tool call the response is for. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The matching ID of the tool call the response is for. + * @param id id or {@code null} for none + */ + public ToolResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @param response response or {@code null} for none + */ + public ToolResponse setResponse(java.util.Map response) { + this.response = response; + return this; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public ToolResponse setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool that got executed. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool that got executed. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ToolResponse setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ToolResponse set(String fieldName, Object value) { + return (ToolResponse) super.set(fieldName, value); + } + + @Override + public ToolResponse clone() { + return (ToolResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolResponses.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolResponses.java new file mode 100644 index 00000000000..bddb395d95b --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolResponses.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.ces.v1.model; + +/** + * Execution results for the requested tool calls from the client. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolResponses extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tool execution results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolResponses; + + static { + // hack to force ProGuard to consider ToolResponse 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(ToolResponse.class); + } + + /** + * Optional. The list of tool execution results. + * @return value or {@code null} for none + */ + public java.util.List getToolResponses() { + return toolResponses; + } + + /** + * Optional. The list of tool execution results. + * @param toolResponses toolResponses or {@code null} for none + */ + public ToolResponses setToolResponses(java.util.List toolResponses) { + this.toolResponses = toolResponses; + return this; + } + + @Override + public ToolResponses set(String fieldName, Object value) { + return (ToolResponses) super.set(fieldName, value); + } + + @Override + public ToolResponses clone() { + return (ToolResponses) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java new file mode 100644 index 00000000000..5c6531b44a9 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/Toolset.java @@ -0,0 +1,313 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A toolset represents a group of dynamically managed tools that can be used by the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Toolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. A toolset that generates tools from an Integration Connectors Connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConnectorToolset connectorToolset; + + /** + * Output only. Timestamp when the toolset was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The display name of the toolset. Must be unique within the same app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * ETag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The execution type of the tools in the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String executionType; + + /** + * Optional. A toolset that contains a list of tools that are offered by the MCP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private McpToolset mcpToolset; + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. A toolset that contains a list of tools that are defined by an OpenAPI schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OpenApiToolset openApiToolset; + + /** + * Optional. Configuration for tools behavior in fake mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolFakeConfig toolFakeConfig; + + /** + * Output only. Timestamp when the toolset was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. A toolset that generates tools from an Integration Connectors Connection. + * @return value or {@code null} for none + */ + public ConnectorToolset getConnectorToolset() { + return connectorToolset; + } + + /** + * Optional. A toolset that generates tools from an Integration Connectors Connection. + * @param connectorToolset connectorToolset or {@code null} for none + */ + public Toolset setConnectorToolset(ConnectorToolset connectorToolset) { + this.connectorToolset = connectorToolset; + return this; + } + + /** + * Output only. Timestamp when the toolset was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the toolset was created. + * @param createTime createTime or {@code null} for none + */ + public Toolset setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The description of the toolset. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the toolset. + * @param description description or {@code null} for none + */ + public Toolset setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The display name of the toolset. Must be unique within the same app. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the toolset. Must be unique within the same app. + * @param displayName displayName or {@code null} for none + */ + public Toolset setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * ETag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * ETag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Toolset setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The execution type of the tools in the toolset. + * @return value or {@code null} for none + */ + public java.lang.String getExecutionType() { + return executionType; + } + + /** + * Optional. The execution type of the tools in the toolset. + * @param executionType executionType or {@code null} for none + */ + public Toolset setExecutionType(java.lang.String executionType) { + this.executionType = executionType; + return this; + } + + /** + * Optional. A toolset that contains a list of tools that are offered by the MCP server. + * @return value or {@code null} for none + */ + public McpToolset getMcpToolset() { + return mcpToolset; + } + + /** + * Optional. A toolset that contains a list of tools that are offered by the MCP server. + * @param mcpToolset mcpToolset or {@code null} for none + */ + public Toolset setMcpToolset(McpToolset mcpToolset) { + this.mcpToolset = mcpToolset; + return this; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param name name or {@code null} for none + */ + public Toolset setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. A toolset that contains a list of tools that are defined by an OpenAPI schema. + * @return value or {@code null} for none + */ + public OpenApiToolset getOpenApiToolset() { + return openApiToolset; + } + + /** + * Optional. A toolset that contains a list of tools that are defined by an OpenAPI schema. + * @param openApiToolset openApiToolset or {@code null} for none + */ + public Toolset setOpenApiToolset(OpenApiToolset openApiToolset) { + this.openApiToolset = openApiToolset; + return this; + } + + /** + * Optional. Configuration for tools behavior in fake mode. + * @return value or {@code null} for none + */ + public ToolFakeConfig getToolFakeConfig() { + return toolFakeConfig; + } + + /** + * Optional. Configuration for tools behavior in fake mode. + * @param toolFakeConfig toolFakeConfig or {@code null} for none + */ + public Toolset setToolFakeConfig(ToolFakeConfig toolFakeConfig) { + this.toolFakeConfig = toolFakeConfig; + return this; + } + + /** + * Output only. Timestamp when the toolset was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the toolset was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Toolset setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Toolset set(String fieldName, Object value) { + return (Toolset) super.set(fieldName, value); + } + + @Override + public Toolset clone() { + return (Toolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolsetTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolsetTool.java new file mode 100644 index 00000000000..a379d7ce323 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/ToolsetTool.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A tool that is created from a toolset. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolsetTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The tool ID to filter the tools to retrieve the schema for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolId; + + /** + * Required. The resource name of the Toolset from which this tool is derived. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** + * Optional. The tool ID to filter the tools to retrieve the schema for. + * @return value or {@code null} for none + */ + public java.lang.String getToolId() { + return toolId; + } + + /** + * Optional. The tool ID to filter the tools to retrieve the schema for. + * @param toolId toolId or {@code null} for none + */ + public ToolsetTool setToolId(java.lang.String toolId) { + this.toolId = toolId; + return this; + } + + /** + * Required. The resource name of the Toolset from which this tool is derived. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @return value or {@code null} for none + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The resource name of the Toolset from which this tool is derived. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param toolset toolset or {@code null} for none + */ + public ToolsetTool setToolset(java.lang.String toolset) { + this.toolset = toolset; + return this; + } + + @Override + public ToolsetTool set(String fieldName, Object value) { + return (ToolsetTool) super.set(fieldName, value); + } + + @Override + public ToolsetTool clone() { + return (ToolsetTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRule.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRule.java new file mode 100644 index 00000000000..fb559756d07 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRule.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.ces.v1.model; + +/** + * Rule for transferring to a specific agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransferRule extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the child agent the rule applies to. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String childAgent; + + /** + * Optional. A rule that immediately transfers to the target agent when the condition is met. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TransferRuleDeterministicTransfer deterministicTransfer; + + /** + * Required. The direction of the transfer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String direction; + + /** + * Optional. Rule that prevents the planner from transferring to the target agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TransferRuleDisablePlannerTransfer disablePlannerTransfer; + + /** + * Required. The resource name of the child agent the rule applies to. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getChildAgent() { + return childAgent; + } + + /** + * Required. The resource name of the child agent the rule applies to. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param childAgent childAgent or {@code null} for none + */ + public TransferRule setChildAgent(java.lang.String childAgent) { + this.childAgent = childAgent; + return this; + } + + /** + * Optional. A rule that immediately transfers to the target agent when the condition is met. + * @return value or {@code null} for none + */ + public TransferRuleDeterministicTransfer getDeterministicTransfer() { + return deterministicTransfer; + } + + /** + * Optional. A rule that immediately transfers to the target agent when the condition is met. + * @param deterministicTransfer deterministicTransfer or {@code null} for none + */ + public TransferRule setDeterministicTransfer(TransferRuleDeterministicTransfer deterministicTransfer) { + this.deterministicTransfer = deterministicTransfer; + return this; + } + + /** + * Required. The direction of the transfer. + * @return value or {@code null} for none + */ + public java.lang.String getDirection() { + return direction; + } + + /** + * Required. The direction of the transfer. + * @param direction direction or {@code null} for none + */ + public TransferRule setDirection(java.lang.String direction) { + this.direction = direction; + return this; + } + + /** + * Optional. Rule that prevents the planner from transferring to the target agent. + * @return value or {@code null} for none + */ + public TransferRuleDisablePlannerTransfer getDisablePlannerTransfer() { + return disablePlannerTransfer; + } + + /** + * Optional. Rule that prevents the planner from transferring to the target agent. + * @param disablePlannerTransfer disablePlannerTransfer or {@code null} for none + */ + public TransferRule setDisablePlannerTransfer(TransferRuleDisablePlannerTransfer disablePlannerTransfer) { + this.disablePlannerTransfer = disablePlannerTransfer; + return this; + } + + @Override + public TransferRule set(String fieldName, Object value) { + return (TransferRule) super.set(fieldName, value); + } + + @Override + public TransferRule clone() { + return (TransferRule) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRuleDeterministicTransfer.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRuleDeterministicTransfer.java new file mode 100644 index 00000000000..fa6f23e8674 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRuleDeterministicTransfer.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransferRuleDeterministicTransfer extends com.google.api.client.json.GenericJson { + + /** + * Optional. A rule that evaluates a session state condition. If the condition evaluates to true, + * the transfer occurs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressionCondition expressionCondition; + + /** + * Optional. A rule that uses Python code block to evaluate the conditions. If the condition + * evaluates to true, the transfer occurs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PythonCodeCondition pythonCodeCondition; + + /** + * Optional. A rule that evaluates a session state condition. If the condition evaluates to true, + * the transfer occurs. + * @return value or {@code null} for none + */ + public ExpressionCondition getExpressionCondition() { + return expressionCondition; + } + + /** + * Optional. A rule that evaluates a session state condition. If the condition evaluates to true, + * the transfer occurs. + * @param expressionCondition expressionCondition or {@code null} for none + */ + public TransferRuleDeterministicTransfer setExpressionCondition(ExpressionCondition expressionCondition) { + this.expressionCondition = expressionCondition; + return this; + } + + /** + * Optional. A rule that uses Python code block to evaluate the conditions. If the condition + * evaluates to true, the transfer occurs. + * @return value or {@code null} for none + */ + public PythonCodeCondition getPythonCodeCondition() { + return pythonCodeCondition; + } + + /** + * Optional. A rule that uses Python code block to evaluate the conditions. If the condition + * evaluates to true, the transfer occurs. + * @param pythonCodeCondition pythonCodeCondition or {@code null} for none + */ + public TransferRuleDeterministicTransfer setPythonCodeCondition(PythonCodeCondition pythonCodeCondition) { + this.pythonCodeCondition = pythonCodeCondition; + return this; + } + + @Override + public TransferRuleDeterministicTransfer set(String fieldName, Object value) { + return (TransferRuleDeterministicTransfer) super.set(fieldName, value); + } + + @Override + public TransferRuleDeterministicTransfer clone() { + return (TransferRuleDeterministicTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRuleDisablePlannerTransfer.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRuleDisablePlannerTransfer.java new file mode 100644 index 00000000000..c7095242174 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TransferRuleDisablePlannerTransfer.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * A rule that prevents the planner from transferring to the target agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransferRuleDisablePlannerTransfer extends com.google.api.client.json.GenericJson { + + /** + * Required. If the condition evaluates to true, planner will not be allowed to transfer to the + * target agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressionCondition expressionCondition; + + /** + * Required. If the condition evaluates to true, planner will not be allowed to transfer to the + * target agent. + * @return value or {@code null} for none + */ + public ExpressionCondition getExpressionCondition() { + return expressionCondition; + } + + /** + * Required. If the condition evaluates to true, planner will not be allowed to transfer to the + * target agent. + * @param expressionCondition expressionCondition or {@code null} for none + */ + public TransferRuleDisablePlannerTransfer setExpressionCondition(ExpressionCondition expressionCondition) { + this.expressionCondition = expressionCondition; + return this; + } + + @Override + public TransferRuleDisablePlannerTransfer set(String fieldName, Object value) { + return (TransferRuleDisablePlannerTransfer) super.set(fieldName, value); + } + + @Override + public TransferRuleDisablePlannerTransfer clone() { + return (TransferRuleDisablePlannerTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerAction.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerAction.java new file mode 100644 index 00000000000..60225aa25c3 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerAction.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Action that is taken when a certain precondition is met. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerAction extends com.google.api.client.json.GenericJson { + + /** + * Optional. Respond with a generative answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerActionGenerativeAnswer generativeAnswer; + + /** + * Optional. Immediately respond with a preconfigured response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerActionRespondImmediately respondImmediately; + + /** + * Optional. Transfer the conversation to a different agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerActionTransferAgent transferAgent; + + /** + * Optional. Respond with a generative answer. + * @return value or {@code null} for none + */ + public TriggerActionGenerativeAnswer getGenerativeAnswer() { + return generativeAnswer; + } + + /** + * Optional. Respond with a generative answer. + * @param generativeAnswer generativeAnswer or {@code null} for none + */ + public TriggerAction setGenerativeAnswer(TriggerActionGenerativeAnswer generativeAnswer) { + this.generativeAnswer = generativeAnswer; + return this; + } + + /** + * Optional. Immediately respond with a preconfigured response. + * @return value or {@code null} for none + */ + public TriggerActionRespondImmediately getRespondImmediately() { + return respondImmediately; + } + + /** + * Optional. Immediately respond with a preconfigured response. + * @param respondImmediately respondImmediately or {@code null} for none + */ + public TriggerAction setRespondImmediately(TriggerActionRespondImmediately respondImmediately) { + this.respondImmediately = respondImmediately; + return this; + } + + /** + * Optional. Transfer the conversation to a different agent. + * @return value or {@code null} for none + */ + public TriggerActionTransferAgent getTransferAgent() { + return transferAgent; + } + + /** + * Optional. Transfer the conversation to a different agent. + * @param transferAgent transferAgent or {@code null} for none + */ + public TriggerAction setTransferAgent(TriggerActionTransferAgent transferAgent) { + this.transferAgent = transferAgent; + return this; + } + + @Override + public TriggerAction set(String fieldName, Object value) { + return (TriggerAction) super.set(fieldName, value); + } + + @Override + public TriggerAction clone() { + return (TriggerAction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionGenerativeAnswer.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionGenerativeAnswer.java new file mode 100644 index 00000000000..3fa6e5405a7 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionGenerativeAnswer.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The agent will immediately respond with a generative answer. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionGenerativeAnswer extends com.google.api.client.json.GenericJson { + + /** + * Required. The prompt to use for the generative answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Required. The prompt to use for the generative answer. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Required. The prompt to use for the generative answer. + * @param prompt prompt or {@code null} for none + */ + public TriggerActionGenerativeAnswer setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public TriggerActionGenerativeAnswer set(String fieldName, Object value) { + return (TriggerActionGenerativeAnswer) super.set(fieldName, value); + } + + @Override + public TriggerActionGenerativeAnswer clone() { + return (TriggerActionGenerativeAnswer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionRespondImmediately.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionRespondImmediately.java new file mode 100644 index 00000000000..a49b69b00c5 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionRespondImmediately.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * The agent will immediately respond with a preconfigured response. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionRespondImmediately extends com.google.api.client.json.GenericJson { + + /** + * Required. The canned responses for the agent to choose from. The response is chosen randomly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responses; + + /** + * Required. The canned responses for the agent to choose from. The response is chosen randomly. + * @return value or {@code null} for none + */ + public java.util.List getResponses() { + return responses; + } + + /** + * Required. The canned responses for the agent to choose from. The response is chosen randomly. + * @param responses responses or {@code null} for none + */ + public TriggerActionRespondImmediately setResponses(java.util.List responses) { + this.responses = responses; + return this; + } + + @Override + public TriggerActionRespondImmediately set(String fieldName, Object value) { + return (TriggerActionRespondImmediately) super.set(fieldName, value); + } + + @Override + public TriggerActionRespondImmediately clone() { + return (TriggerActionRespondImmediately) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionResponse.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionResponse.java new file mode 100644 index 00000000000..fd5d94e30cf --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionResponse.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.ces.v1.model; + +/** + * Represents a response from the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the response is disabled. Disabled responses are not used by the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. Text for the agent to respond with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Whether the response is disabled. Disabled responses are not used by the agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the response is disabled. Disabled responses are not used by the agent. + * @param disabled disabled or {@code null} for none + */ + public TriggerActionResponse setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. Text for the agent to respond with. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Required. Text for the agent to respond with. + * @param text text or {@code null} for none + */ + public TriggerActionResponse setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public TriggerActionResponse set(String fieldName, Object value) { + return (TriggerActionResponse) super.set(fieldName, value); + } + + @Override + public TriggerActionResponse clone() { + return (TriggerActionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionTransferAgent.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionTransferAgent.java new file mode 100644 index 00000000000..bdbeef409b7 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/TriggerActionTransferAgent.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.ces.v1.model; + +/** + * The agent will transfer the conversation to a different agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionTransferAgent extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the agent to transfer the conversation to. The agent must be in the same + * app as the current agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Required. The name of the agent to transfer the conversation to. The agent must be in the same + * app as the current agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * Required. The name of the agent to transfer the conversation to. The agent must be in the same + * app as the current agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param agent agent or {@code null} for none + */ + public TriggerActionTransferAgent setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + @Override + public TriggerActionTransferAgent set(String fieldName, Object value) { + return (TriggerActionTransferAgent) super.set(fieldName, value); + } + + @Override + public TriggerActionTransferAgent clone() { + return (TriggerActionTransferAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WebSearchQuery.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WebSearchQuery.java new file mode 100644 index 00000000000..0e641f71e67 --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WebSearchQuery.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.ces.v1.model; + +/** + * Represents a single web search query and its associated search uri. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WebSearchQuery extends com.google.api.client.json.GenericJson { + + /** + * The search query text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String query; + + /** + * The URI to the Google Search results page for the query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The search query text. + * @return value or {@code null} for none + */ + public java.lang.String getQuery() { + return query; + } + + /** + * The search query text. + * @param query query or {@code null} for none + */ + public WebSearchQuery setQuery(java.lang.String query) { + this.query = query; + return this; + } + + /** + * The URI to the Google Search results page for the query. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI to the Google Search results page for the query. + * @param uri uri or {@code null} for none + */ + public WebSearchQuery setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public WebSearchQuery set(String fieldName, Object value) { + return (WebSearchQuery) super.set(fieldName, value); + } + + @Override + public WebSearchQuery clone() { + return (WebSearchQuery) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetTool.java b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetTool.java new file mode 100644 index 00000000000..60826aebb8c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/com/google/api/services/ces/v1/model/WidgetTool.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1.model; + +/** + * Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent + * will return the widget to the client. The client is responsible for processing the widget and + * generating the next user query to continue the interaction with the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WidgetTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The description of the widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The display name of the widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The input parameters of the widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema parameters; + + /** + * Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String widgetType; + + /** + * Optional. The description of the widget tool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the widget tool. + * @param description description or {@code null} for none + */ + public WidgetTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The display name of the widget tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The display name of the widget tool. + * @param name name or {@code null} for none + */ + public WidgetTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The input parameters of the widget tool. + * @return value or {@code null} for none + */ + public Schema getParameters() { + return parameters; + } + + /** + * Optional. The input parameters of the widget tool. + * @param parameters parameters or {@code null} for none + */ + public WidgetTool setParameters(Schema parameters) { + this.parameters = parameters; + return this; + } + + /** + * Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. + * @return value or {@code null} for none + */ + public java.lang.String getWidgetType() { + return widgetType; + } + + /** + * Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. + * @param widgetType widgetType or {@code null} for none + */ + public WidgetTool setWidgetType(java.lang.String widgetType) { + this.widgetType = widgetType; + return this; + } + + @Override + public WidgetTool set(String fieldName, Object value) { + return (WidgetTool) super.set(fieldName, value); + } + + @Override + public WidgetTool clone() { + return (WidgetTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1/2.0.0/pom.xml b/clients/google-api-services-ces/v1/2.0.0/pom.xml new file mode 100644 index 00000000000..4e7a394ef1c --- /dev/null +++ b/clients/google-api-services-ces/v1/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-ces + v1-rev20260204-2.0.0 + Gemini Enterprise for Customer Experience API v1-rev20260204-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.ces + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Gemini Enterprise for Customer Experience API ${project.version} + Gemini Enterprise for Customer Experience API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-ces/v1/README.md b/clients/google-api-services-ces/v1/README.md new file mode 100644 index 00000000000..7e3a8629e7c --- /dev/null +++ b/clients/google-api-services-ces/v1/README.md @@ -0,0 +1,44 @@ +# Gemini Enterprise for Customer Experience API Client Library for Java + + + +This page contains information about getting started with the Gemini Enterprise for Customer Experience API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Gemini Enterprise for Customer Experience API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Gemini Enterprise for Customer Experience API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ces + v1-rev20260204-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ces:v1-rev20260204-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ces/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ces/v1/ diff --git a/clients/google-api-services-ces/v1beta/2.0.0/README.md b/clients/google-api-services-ces/v1beta/2.0.0/README.md new file mode 100644 index 00000000000..0ed81638c0f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/README.md @@ -0,0 +1,44 @@ +# Gemini Enterprise for Customer Experience API Client Library for Java + + + +This page contains information about getting started with the Gemini Enterprise for Customer Experience API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Gemini Enterprise for Customer Experience API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Gemini Enterprise for Customer Experience API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ces + v1beta-rev20260204-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260204-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ces/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ces/v1/ diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java new file mode 100644 index 00000000000..cf853d26cc6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuite.java @@ -0,0 +1,15634 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta; + +/** + * Service definition for CustomerEngagementSuite (v1beta). + * + *

+ * + *

+ * + *

+ * For more information about this service, see the + * API Documentation + *

+ * + *

+ * This service uses {@link CustomerEngagementSuiteRequestInitializer} to initialize global parameters via its + * {@link Builder}. + *

+ * + * @since 1.3 + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public class CustomerEngagementSuite extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient { + + // Note: Leave this static initializer at the top of the file. + static { + com.google.api.client.util.Preconditions.checkState( + (com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION == 1 && + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION >= 32 || + (com.google.api.client.googleapis.GoogleUtils.MINOR_VERSION == 31 && + com.google.api.client.googleapis.GoogleUtils.BUGFIX_VERSION >= 1))) || + com.google.api.client.googleapis.GoogleUtils.MAJOR_VERSION >= 2, + "You are currently running with version %s of google-api-client. " + + "You need at least version 1.31.1 of google-api-client to run version " + + "2.0.0 of the Gemini Enterprise for Customer Experience API library.", com.google.api.client.googleapis.GoogleUtils.VERSION); + } + + /** + * The default encoded root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_ROOT_URL = "https://ces.googleapis.com/"; + + /** + * The default encoded mTLS root URL of the service. This is determined when the library is generated + * and normally should not be changed. + * + * @since 1.31 + */ + public static final String DEFAULT_MTLS_ROOT_URL = "https://ces.mtls.googleapis.com/"; + + /** + * The default encoded service path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.7 + */ + public static final String DEFAULT_SERVICE_PATH = ""; + + /** + * The default encoded batch path of the service. This is determined when the library is + * generated and normally should not be changed. + * + * @since 1.23 + */ + public static final String DEFAULT_BATCH_PATH = "batch"; + + /** + * The default encoded base URL of the service. This is determined when the library is generated + * and normally should not be changed. + */ + public static final String DEFAULT_BASE_URL = DEFAULT_ROOT_URL + DEFAULT_SERVICE_PATH; + + /** + * Constructor. + * + *

+ * Use {@link Builder} if you need to specify any of the optional parameters. + *

+ * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public CustomerEngagementSuite(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + this(new Builder(transport, jsonFactory, httpRequestInitializer)); + } + + /** + * @param builder builder + */ + CustomerEngagementSuite(Builder builder) { + super(builder); + } + + @Override + protected void initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest httpClientRequest) throws java.io.IOException { + super.initialize(httpClientRequest); + } + + /** + * An accessor for creating requests from the Projects collection. + * + *

The typical use is:

+ *
+   *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+   *   {@code CustomerEngagementSuite.Projects.List request = ces.projects().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Projects projects() { + return new Projects(); + } + + /** + * The "projects" collection of methods. + */ + public class Projects { + + /** + * An accessor for creating requests from the Locations collection. + * + *

The typical use is:

+ *
+     *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+     *   {@code CustomerEngagementSuite.Locations.List request = ces.locations().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Locations locations() { + return new Locations(); + } + + /** + * The "locations" collection of methods. + */ + public class Locations { + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Resource name for the location. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Gets information about a location. + * + * Create a request for the method "locations.get". + * + * This request holds the parameters needed by the the ces 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 Resource name for the location. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Location.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/[^/]+$"); + } + } + + @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); + } + + /** Resource name for the location. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Resource name for the location. + */ + public java.lang.String getName() { + return name; + } + + /** Resource name for the location. */ + 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/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The resource that owns the locations collection, if applicable. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}/locations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+$"); + + /** + * Lists information about the supported locations for this service. This method can be called in + * two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project- + * visible locations:** Use the path `GET /v1/projects/{project_id}/locations`. This may include + * public locations as well as private or other locations specifically visible to the project. + * + * Create a request for the method "locations.list". + * + * This request holds the parameters needed by the the ces 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 name The resource that owns the locations collection, if applicable. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListLocationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The resource that owns the locations collection, if applicable. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The resource that owns the locations collection, if applicable. + */ + public java.lang.String getName() { + return name; + } + + /** The resource that owns the locations collection, if applicable. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + @com.google.api.client.util.Key + private java.util.List extraLocationTypes; + + /** Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented + otherwise. This is primarily for internal usage. + */ + public java.util.List getExtraLocationTypes() { + return extraLocationTypes; + } + + /** + * Optional. Do not use this field. It is unsupported and is ignored unless explicitly + * documented otherwise. This is primarily for internal usage. + */ + public List setExtraLocationTypes(java.util.List extraLocationTypes) { + this.extraLocationTypes = extraLocationTypes; + return this; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** A filter to narrow down results to a preferred subset. The filtering language accepts strings like + `"displayName=tokyo"`, and is documented in more detail in [AIP-160](https://google.aip.dev/160). + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * A filter to narrow down results to a preferred subset. The filtering language accepts + * strings like `"displayName=tokyo"`, and is documented in more detail in + * [AIP-160](https://google.aip.dev/160). + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The maximum number of results to return. If not set, the service selects a default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The maximum number of results to return. If not set, the service selects a default. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** A page token received from the `next_page_token` field in the response. Send that page token to + receive the subsequent page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * A page token received from the `next_page_token` field in the response. Send that page + * token to receive the subsequent page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Apps collection. + * + *

The typical use is:

+ *
+       *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+       *   {@code CustomerEngagementSuite.Apps.List request = ces.apps().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Apps apps() { + return new Apps(); + } + + /** + * The "apps" collection of methods. + */ + public class Apps { + + /** + * Creates a new app in the given project and location. + * + * Create a request for the method "apps.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the location to create an app in. + * @param content the {@link com.google.api.services.ces.v1beta.model.App} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.App content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/apps"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Creates a new app in the given project and location. + * + * Create a request for the method "apps.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the location to create an app in. + * @param content the {@link com.google.api.services.ces.v1beta.model.App} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.App content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.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 resource name of the location to create an app in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the location to create an app in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the location to create an app in. */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the app, which will become the final component of the app's + * resource name. If not provided, a unique ID will be automatically assigned for the app. + */ + @com.google.api.client.util.Key + private java.lang.String appId; + + /** Optional. The ID to use for the app, which will become the final component of the app's resource + name. If not provided, a unique ID will be automatically assigned for the app. + */ + public java.lang.String getAppId() { + return appId; + } + + /** + * Optional. The ID to use for the app, which will become the final component of the app's + * resource name. If not provided, a unique ID will be automatically assigned for the app. + */ + public Create setAppId(java.lang.String appId) { + this.appId = appId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified app. + * + * Create a request for the method "apps.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Deletes the specified app. + * + * Create a request for the method "apps.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the app. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the current + * etag of the app, deletion will be blocked and an ABORTED error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the app. If an etag is not provided, the deletion will overwrite any + concurrent changes. If an etag is provided and does not match the current etag of the app, deletion + will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the app. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the current + * etag of the app, deletion will be blocked and an ABORTED error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Executes the given tool with the given arguments. + * + * Create a request for the method "apps.executeTool". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ExecuteTool#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.ExecuteToolRequest} + * @return the request + */ + public ExecuteTool executeTool(java.lang.String parent, com.google.api.services.ces.v1beta.model.ExecuteToolRequest content) throws java.io.IOException { + ExecuteTool result = new ExecuteTool(parent, content); + initialize(result); + return result; + } + + public class ExecuteTool extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}:executeTool"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Executes the given tool with the given arguments. + * + * Create a request for the method "apps.executeTool". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ExecuteTool#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.ExecuteToolRequest} + * @since 1.13 + */ + protected ExecuteTool(java.lang.String parent, com.google.api.services.ces.v1beta.model.ExecuteToolRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.ExecuteToolResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ExecuteTool set$Xgafv(java.lang.String $Xgafv) { + return (ExecuteTool) super.set$Xgafv($Xgafv); + } + + @Override + public ExecuteTool setAccessToken(java.lang.String accessToken) { + return (ExecuteTool) super.setAccessToken(accessToken); + } + + @Override + public ExecuteTool setAlt(java.lang.String alt) { + return (ExecuteTool) super.setAlt(alt); + } + + @Override + public ExecuteTool setCallback(java.lang.String callback) { + return (ExecuteTool) super.setCallback(callback); + } + + @Override + public ExecuteTool setFields(java.lang.String fields) { + return (ExecuteTool) super.setFields(fields); + } + + @Override + public ExecuteTool setKey(java.lang.String key) { + return (ExecuteTool) super.setKey(key); + } + + @Override + public ExecuteTool setOauthToken(java.lang.String oauthToken) { + return (ExecuteTool) super.setOauthToken(oauthToken); + } + + @Override + public ExecuteTool setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExecuteTool) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExecuteTool setQuotaUser(java.lang.String quotaUser) { + return (ExecuteTool) super.setQuotaUser(quotaUser); + } + + @Override + public ExecuteTool setUploadType(java.lang.String uploadType) { + return (ExecuteTool) super.setUploadType(uploadType); + } + + @Override + public ExecuteTool setUploadProtocol(java.lang.String uploadProtocol) { + return (ExecuteTool) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app which the tool/toolset belongs to. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public ExecuteTool 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ExecuteTool set(String parameterName, Object value) { + return (ExecuteTool) super.set(parameterName, value); + } + } + /** + * Exports the specified app. + * + * Create a request for the method "apps.exportApp". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ExportApp#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to export. + * @param content the {@link com.google.api.services.ces.v1beta.model.ExportAppRequest} + * @return the request + */ + public ExportApp exportApp(java.lang.String name, com.google.api.services.ces.v1beta.model.ExportAppRequest content) throws java.io.IOException { + ExportApp result = new ExportApp(name, content); + initialize(result); + return result; + } + + public class ExportApp extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}:exportApp"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Exports the specified app. + * + * Create a request for the method "apps.exportApp". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ExportApp#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The resource name of the app to export. + * @param content the {@link com.google.api.services.ces.v1beta.model.ExportAppRequest} + * @since 1.13 + */ + protected ExportApp(java.lang.String name, com.google.api.services.ces.v1beta.model.ExportAppRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ExportApp set$Xgafv(java.lang.String $Xgafv) { + return (ExportApp) super.set$Xgafv($Xgafv); + } + + @Override + public ExportApp setAccessToken(java.lang.String accessToken) { + return (ExportApp) super.setAccessToken(accessToken); + } + + @Override + public ExportApp setAlt(java.lang.String alt) { + return (ExportApp) super.setAlt(alt); + } + + @Override + public ExportApp setCallback(java.lang.String callback) { + return (ExportApp) super.setCallback(callback); + } + + @Override + public ExportApp setFields(java.lang.String fields) { + return (ExportApp) super.setFields(fields); + } + + @Override + public ExportApp setKey(java.lang.String key) { + return (ExportApp) super.setKey(key); + } + + @Override + public ExportApp setOauthToken(java.lang.String oauthToken) { + return (ExportApp) super.setOauthToken(oauthToken); + } + + @Override + public ExportApp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ExportApp) super.setPrettyPrint(prettyPrint); + } + + @Override + public ExportApp setQuotaUser(java.lang.String quotaUser) { + return (ExportApp) super.setQuotaUser(quotaUser); + } + + @Override + public ExportApp setUploadType(java.lang.String uploadType) { + return (ExportApp) super.setUploadType(uploadType); + } + + @Override + public ExportApp setUploadProtocol(java.lang.String uploadProtocol) { + return (ExportApp) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app to export. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to export. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to export. */ + public ExportApp 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public ExportApp set(String parameterName, Object value) { + return (ExportApp) super.set(parameterName, value); + } + } + /** + * Gets details of the specified app. + * + * Create a request for the method "apps.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Gets details of the specified app. + * + * Create a request for the method "apps.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.App.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app to retrieve. */ + 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Imports the specified app. + * + * Create a request for the method "apps.importApp". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ImportApp#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource name with the location of the app to import. + * @param content the {@link com.google.api.services.ces.v1beta.model.ImportAppRequest} + * @return the request + */ + public ImportApp importApp(java.lang.String parent, com.google.api.services.ces.v1beta.model.ImportAppRequest content) throws java.io.IOException { + ImportApp result = new ImportApp(parent, content); + initialize(result); + return result; + } + + public class ImportApp extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/apps:importApp"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Imports the specified app. + * + * Create a request for the method "apps.importApp". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ImportApp#execute()} method to invoke the remote operation.

+ * {@link + * ImportApp#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 name with the location of the app to import. + * @param content the {@link com.google.api.services.ces.v1beta.model.ImportAppRequest} + * @since 1.13 + */ + protected ImportApp(java.lang.String parent, com.google.api.services.ces.v1beta.model.ImportAppRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.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 ImportApp set$Xgafv(java.lang.String $Xgafv) { + return (ImportApp) super.set$Xgafv($Xgafv); + } + + @Override + public ImportApp setAccessToken(java.lang.String accessToken) { + return (ImportApp) super.setAccessToken(accessToken); + } + + @Override + public ImportApp setAlt(java.lang.String alt) { + return (ImportApp) super.setAlt(alt); + } + + @Override + public ImportApp setCallback(java.lang.String callback) { + return (ImportApp) super.setCallback(callback); + } + + @Override + public ImportApp setFields(java.lang.String fields) { + return (ImportApp) super.setFields(fields); + } + + @Override + public ImportApp setKey(java.lang.String key) { + return (ImportApp) super.setKey(key); + } + + @Override + public ImportApp setOauthToken(java.lang.String oauthToken) { + return (ImportApp) super.setOauthToken(oauthToken); + } + + @Override + public ImportApp setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ImportApp) super.setPrettyPrint(prettyPrint); + } + + @Override + public ImportApp setQuotaUser(java.lang.String quotaUser) { + return (ImportApp) super.setQuotaUser(quotaUser); + } + + @Override + public ImportApp setUploadType(java.lang.String uploadType) { + return (ImportApp) super.setUploadType(uploadType); + } + + @Override + public ImportApp setUploadProtocol(java.lang.String uploadProtocol) { + return (ImportApp) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The parent resource name with the location of the app to import. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource name with the location of the app to import. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The parent resource name with the location of the app to import. */ + public ImportApp 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; + } + + @Override + public ImportApp set(String parameterName, Object value) { + return (ImportApp) super.set(parameterName, value); + } + } + /** + * Imports evaluations into the app. + * + * Create a request for the method "apps.importEvaluations". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link ImportEvaluations#execute()} method to invoke the remote operation. + * + * @param parent Required. The app to import the evaluations into. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.ImportEvaluationsRequest} + * @return the request + */ + public ImportEvaluations importEvaluations(java.lang.String parent, com.google.api.services.ces.v1beta.model.ImportEvaluationsRequest content) throws java.io.IOException { + ImportEvaluations result = new ImportEvaluations(parent, content); + initialize(result); + return result; + } + + public class ImportEvaluations extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}:importEvaluations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Imports evaluations into the app. + * + * Create a request for the method "apps.importEvaluations". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link ImportEvaluations#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The app to import the evaluations into. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.ImportEvaluationsRequest} + * @since 1.13 + */ + protected ImportEvaluations(java.lang.String parent, com.google.api.services.ces.v1beta.model.ImportEvaluationsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public ImportEvaluations set$Xgafv(java.lang.String $Xgafv) { + return (ImportEvaluations) super.set$Xgafv($Xgafv); + } + + @Override + public ImportEvaluations setAccessToken(java.lang.String accessToken) { + return (ImportEvaluations) super.setAccessToken(accessToken); + } + + @Override + public ImportEvaluations setAlt(java.lang.String alt) { + return (ImportEvaluations) super.setAlt(alt); + } + + @Override + public ImportEvaluations setCallback(java.lang.String callback) { + return (ImportEvaluations) super.setCallback(callback); + } + + @Override + public ImportEvaluations setFields(java.lang.String fields) { + return (ImportEvaluations) super.setFields(fields); + } + + @Override + public ImportEvaluations setKey(java.lang.String key) { + return (ImportEvaluations) super.setKey(key); + } + + @Override + public ImportEvaluations setOauthToken(java.lang.String oauthToken) { + return (ImportEvaluations) super.setOauthToken(oauthToken); + } + + @Override + public ImportEvaluations setPrettyPrint(java.lang.Boolean prettyPrint) { + return (ImportEvaluations) super.setPrettyPrint(prettyPrint); + } + + @Override + public ImportEvaluations setQuotaUser(java.lang.String quotaUser) { + return (ImportEvaluations) super.setQuotaUser(quotaUser); + } + + @Override + public ImportEvaluations setUploadType(java.lang.String uploadType) { + return (ImportEvaluations) super.setUploadType(uploadType); + } + + @Override + public ImportEvaluations setUploadProtocol(java.lang.String uploadProtocol) { + return (ImportEvaluations) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The app to import the evaluations into. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The app to import the evaluations into. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The app to import the evaluations into. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public ImportEvaluations 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public ImportEvaluations set(String parameterName, Object value) { + return (ImportEvaluations) super.set(parameterName, value); + } + } + /** + * Lists apps in the given project and location. + * + * Create a request for the method "apps.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the location to list apps from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/apps"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists apps in the given project and location. + * + * Create a request for the method "apps.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the location to list apps from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListAppsResponse.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 resource name of the location to list apps from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the location to list apps from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the location to list apps from. */ + 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. Filter to be applied when listing the apps. See https://google.aip.dev/160 + * for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the apps. See https://google.aip.dev/160 + * for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list AgentService.ListApps + * call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListApps call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list AgentService.ListApps + * call. + */ + 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 the specified app. + * + * Create a request for the method "apps.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.App} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.App content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Updates the specified app. + * + * Create a request for the method "apps.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.App} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.App content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.App.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/[^/]+/apps/[^/]+$"); + } + } + + @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. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the app. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + * Create a request for the method "apps.retrieveToolSchema". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RetrieveToolSchema#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RetrieveToolSchemaRequest} + * @return the request + */ + public RetrieveToolSchema retrieveToolSchema(java.lang.String parent, com.google.api.services.ces.v1beta.model.RetrieveToolSchemaRequest content) throws java.io.IOException { + RetrieveToolSchema result = new RetrieveToolSchema(parent, content); + initialize(result); + return result; + } + + public class RetrieveToolSchema extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}:retrieveToolSchema"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Retrieve the schema of the given tool. The schema is computed on the fly for the given instance + * of the tool. + * + * Create a request for the method "apps.retrieveToolSchema". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RetrieveToolSchema#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RetrieveToolSchemaRequest} + * @since 1.13 + */ + protected RetrieveToolSchema(java.lang.String parent, com.google.api.services.ces.v1beta.model.RetrieveToolSchemaRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.RetrieveToolSchemaResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public RetrieveToolSchema set$Xgafv(java.lang.String $Xgafv) { + return (RetrieveToolSchema) super.set$Xgafv($Xgafv); + } + + @Override + public RetrieveToolSchema setAccessToken(java.lang.String accessToken) { + return (RetrieveToolSchema) super.setAccessToken(accessToken); + } + + @Override + public RetrieveToolSchema setAlt(java.lang.String alt) { + return (RetrieveToolSchema) super.setAlt(alt); + } + + @Override + public RetrieveToolSchema setCallback(java.lang.String callback) { + return (RetrieveToolSchema) super.setCallback(callback); + } + + @Override + public RetrieveToolSchema setFields(java.lang.String fields) { + return (RetrieveToolSchema) super.setFields(fields); + } + + @Override + public RetrieveToolSchema setKey(java.lang.String key) { + return (RetrieveToolSchema) super.setKey(key); + } + + @Override + public RetrieveToolSchema setOauthToken(java.lang.String oauthToken) { + return (RetrieveToolSchema) super.setOauthToken(oauthToken); + } + + @Override + public RetrieveToolSchema setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RetrieveToolSchema) super.setPrettyPrint(prettyPrint); + } + + @Override + public RetrieveToolSchema setQuotaUser(java.lang.String quotaUser) { + return (RetrieveToolSchema) super.setQuotaUser(quotaUser); + } + + @Override + public RetrieveToolSchema setUploadType(java.lang.String uploadType) { + return (RetrieveToolSchema) super.setUploadType(uploadType); + } + + @Override + public RetrieveToolSchema setUploadProtocol(java.lang.String uploadProtocol) { + return (RetrieveToolSchema) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app which the tool/toolset belongs to. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app which the tool/toolset belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public RetrieveToolSchema 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public RetrieveToolSchema set(String parameterName, Object value) { + return (RetrieveToolSchema) super.set(parameterName, value); + } + } + /** + * Runs an evaluation of the app. + * + * Create a request for the method "apps.runEvaluation". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RunEvaluation#execute()} method to invoke the remote operation. + * + * @param app Required. The app to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RunEvaluationRequest} + * @return the request + */ + public RunEvaluation runEvaluation(java.lang.String app, com.google.api.services.ces.v1beta.model.RunEvaluationRequest content) throws java.io.IOException { + RunEvaluation result = new RunEvaluation(app, content); + initialize(result); + return result; + } + + public class RunEvaluation extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+app}:runEvaluation"; + + private final java.util.regex.Pattern APP_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Runs an evaluation of the app. + * + * Create a request for the method "apps.runEvaluation". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RunEvaluation#execute()} method to invoke the remote operation.

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

+ * + * @param app Required. The app to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RunEvaluationRequest} + * @since 1.13 + */ + protected RunEvaluation(java.lang.String app, com.google.api.services.ces.v1beta.model.RunEvaluationRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.class); + this.app = com.google.api.client.util.Preconditions.checkNotNull(app, "Required parameter app must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(APP_PATTERN.matcher(app).matches(), + "Parameter app must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public RunEvaluation set$Xgafv(java.lang.String $Xgafv) { + return (RunEvaluation) super.set$Xgafv($Xgafv); + } + + @Override + public RunEvaluation setAccessToken(java.lang.String accessToken) { + return (RunEvaluation) super.setAccessToken(accessToken); + } + + @Override + public RunEvaluation setAlt(java.lang.String alt) { + return (RunEvaluation) super.setAlt(alt); + } + + @Override + public RunEvaluation setCallback(java.lang.String callback) { + return (RunEvaluation) super.setCallback(callback); + } + + @Override + public RunEvaluation setFields(java.lang.String fields) { + return (RunEvaluation) super.setFields(fields); + } + + @Override + public RunEvaluation setKey(java.lang.String key) { + return (RunEvaluation) super.setKey(key); + } + + @Override + public RunEvaluation setOauthToken(java.lang.String oauthToken) { + return (RunEvaluation) super.setOauthToken(oauthToken); + } + + @Override + public RunEvaluation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RunEvaluation) super.setPrettyPrint(prettyPrint); + } + + @Override + public RunEvaluation setQuotaUser(java.lang.String quotaUser) { + return (RunEvaluation) super.setQuotaUser(quotaUser); + } + + @Override + public RunEvaluation setUploadType(java.lang.String uploadType) { + return (RunEvaluation) super.setUploadType(uploadType); + } + + @Override + public RunEvaluation setUploadProtocol(java.lang.String uploadProtocol) { + return (RunEvaluation) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The app to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** Required. The app to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getApp() { + return app; + } + + /** + * Required. The app to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public RunEvaluation setApp(java.lang.String app) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(APP_PATTERN.matcher(app).matches(), + "Parameter app must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.app = app; + return this; + } + + @Override + public RunEvaluation set(String parameterName, Object value) { + return (RunEvaluation) super.set(parameterName, value); + } + } + /** + * Tests the voice of a persona. Also accepts a default persona. + * + * Create a request for the method "apps.testPersonaVoice". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link TestPersonaVoice#execute()} method to invoke the remote operation. + * + * @param app Required. the resource name of the app to test the persona voice for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.TestPersonaVoiceRequest} + * @return the request + */ + public TestPersonaVoice testPersonaVoice(java.lang.String app, com.google.api.services.ces.v1beta.model.TestPersonaVoiceRequest content) throws java.io.IOException { + TestPersonaVoice result = new TestPersonaVoice(app, content); + initialize(result); + return result; + } + + public class TestPersonaVoice extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+app}:testPersonaVoice"; + + private final java.util.regex.Pattern APP_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Tests the voice of a persona. Also accepts a default persona. + * + * Create a request for the method "apps.testPersonaVoice". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link TestPersonaVoice#execute()} method to invoke the remote operation. + *

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

+ * + * @param app Required. the resource name of the app to test the persona voice for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.TestPersonaVoiceRequest} + * @since 1.13 + */ + protected TestPersonaVoice(java.lang.String app, com.google.api.services.ces.v1beta.model.TestPersonaVoiceRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.TestPersonaVoiceResponse.class); + this.app = com.google.api.client.util.Preconditions.checkNotNull(app, "Required parameter app must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(APP_PATTERN.matcher(app).matches(), + "Parameter app must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + } + + @Override + public TestPersonaVoice set$Xgafv(java.lang.String $Xgafv) { + return (TestPersonaVoice) super.set$Xgafv($Xgafv); + } + + @Override + public TestPersonaVoice setAccessToken(java.lang.String accessToken) { + return (TestPersonaVoice) super.setAccessToken(accessToken); + } + + @Override + public TestPersonaVoice setAlt(java.lang.String alt) { + return (TestPersonaVoice) super.setAlt(alt); + } + + @Override + public TestPersonaVoice setCallback(java.lang.String callback) { + return (TestPersonaVoice) super.setCallback(callback); + } + + @Override + public TestPersonaVoice setFields(java.lang.String fields) { + return (TestPersonaVoice) super.setFields(fields); + } + + @Override + public TestPersonaVoice setKey(java.lang.String key) { + return (TestPersonaVoice) super.setKey(key); + } + + @Override + public TestPersonaVoice setOauthToken(java.lang.String oauthToken) { + return (TestPersonaVoice) super.setOauthToken(oauthToken); + } + + @Override + public TestPersonaVoice setPrettyPrint(java.lang.Boolean prettyPrint) { + return (TestPersonaVoice) super.setPrettyPrint(prettyPrint); + } + + @Override + public TestPersonaVoice setQuotaUser(java.lang.String quotaUser) { + return (TestPersonaVoice) super.setQuotaUser(quotaUser); + } + + @Override + public TestPersonaVoice setUploadType(java.lang.String uploadType) { + return (TestPersonaVoice) super.setUploadType(uploadType); + } + + @Override + public TestPersonaVoice setUploadProtocol(java.lang.String uploadProtocol) { + return (TestPersonaVoice) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. the resource name of the app to test the persona voice for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** Required. the resource name of the app to test the persona voice for. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getApp() { + return app; + } + + /** + * Required. the resource name of the app to test the persona voice for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public TestPersonaVoice setApp(java.lang.String app) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(APP_PATTERN.matcher(app).matches(), + "Parameter app must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + } + this.app = app; + return this; + } + + @Override + public TestPersonaVoice set(String parameterName, Object value) { + return (TestPersonaVoice) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Agents collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Agents.List request = ces.agents().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Agents agents() { + return new Agents(); + } + + /** + * The "agents" collection of methods. + */ + public class Agents { + + /** + * Creates a new agent in the given app. + * + * Create a request for the method "agents.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create an agent in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Agent} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Agent content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/agents"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new agent in the given app. + * + * Create a request for the method "agents.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create an agent in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Agent} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Agent content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Agent.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create an agent in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an agent in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an agent in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the agent, which will become the final component of the + * agent's resource name. If not provided, a unique ID will be automatically assigned + * for the agent. + */ + @com.google.api.client.util.Key + private java.lang.String agentId; + + /** Optional. The ID to use for the agent, which will become the final component of the agent's + resource name. If not provided, a unique ID will be automatically assigned for the agent. + */ + public java.lang.String getAgentId() { + return agentId; + } + + /** + * Optional. The ID to use for the agent, which will become the final component of the + * agent's resource name. If not provided, a unique ID will be automatically assigned + * for the agent. + */ + public Create setAgentId(java.lang.String agentId) { + this.agentId = agentId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified agent. + * + * Create a request for the method "agents.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the agent 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + + /** + * Deletes the specified agent. + * + * Create a request for the method "agents.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the agent to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @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 resource name of the agent to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the agent to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the agent 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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the agent. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the agent, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the agent. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the agent, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the agent. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the agent, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the agent, even if it is still + * referenced by other app/agents/examples. * If `force = false`, the deletion fails if + * other agents/examples reference it. * If `force = true`, delete the agent and remove + * it from all referencing apps/agents/examples. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the agent, even if it is still referenced by other + app/agents/examples. * If `force = false`, the deletion fails if other agents/examples reference + it. * If `force = true`, delete the agent and remove it from all referencing apps/agents/examples. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the agent, even if it is still + * referenced by other app/agents/examples. * If `force = false`, the deletion fails if + * other agents/examples reference it. * If `force = true`, delete the agent and remove + * it from all referencing apps/agents/examples. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified agent. + * + * Create a request for the method "agents.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the agent to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + + /** + * Gets details of the specified agent. + * + * Create a request for the method "agents.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the agent to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Agent.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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @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 resource name of the agent to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the agent to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the agent to retrieve. */ + 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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists agents in the given app. + * + * Create a request for the method "agents.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list agents from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/agents"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists agents in the given app. + * + * Create a request for the method "agents.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list agents from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListAgentsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list agents from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list agents from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list agents from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the agents. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the agents. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the agents. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAgents call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListAgents call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAgents call. + */ + 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 the specified agent. + * + * Create a request for the method "agents.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Agent} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Agent content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/agents/[^/]+$"); + + /** + * Updates the specified agent. + * + * Create a request for the method "agents.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Agent} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Agent content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Agent.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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + } + + @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. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the agent. Format: + `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + */ + 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/[^/]+/apps/[^/]+/agents/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Changelogs collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Changelogs.List request = ces.changelogs().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Changelogs changelogs() { + return new Changelogs(); + } + + /** + * The "changelogs" collection of methods. + */ + public class Changelogs { + + /** + * Gets the specified changelog. + * + * Create a request for the method "changelogs.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the changelog to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + + /** + * Gets the specified changelog. + * + * Create a request for the method "changelogs.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the changelog to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Changelog.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/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + } + } + + @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 resource name of the changelog to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the changelog to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the changelog to retrieve. */ + 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/[^/]+/apps/[^/]+/changelogs/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists the changelogs of the specified app. + * + * Create a request for the method "changelogs.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list changelogs from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/changelogs"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists the changelogs of the specified app. + * + * Create a request for the method "changelogs.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list changelogs from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListChangelogsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list changelogs from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list changelogs from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list changelogs from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the changelogs. See + * https://google.aip.dev/160 for more details. The filter string can be used to filter + * by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` + * comparator can be used for case-insensitive partial matching on string fields, while + * `=` performs an exact case-sensitive match. Examples: * `action:update` (case- + * insensitive partial match) * `action="Create"` (case-sensitive exact match) * + * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * + * `create_time > "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND + * resource_type:tool` + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the changelogs. See https://google.aip.dev/160 for more + details. The filter string can be used to filter by `action`, `resource_type`, `resource_name`, + `author`, and `create_time`. The `:` comparator can be used for case-insensitive partial matching + on string fields, while `=` performs an exact case-sensitive match. Examples: * `action:update` + (case-insensitive partial match) * `action="Create"` (case-sensitive exact match) * + `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * `create_time > + "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND resource_type:tool` + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the changelogs. See + * https://google.aip.dev/160 for more details. The filter string can be used to filter + * by `action`, `resource_type`, `resource_name`, `author`, and `create_time`. The `:` + * comparator can be used for case-insensitive partial matching on string fields, while + * `=` performs an exact case-sensitive match. Examples: * `action:update` (case- + * insensitive partial match) * `action="Create"` (case-sensitive exact match) * + * `resource_type:agent` * `resource_name:my-agent` * `author:me@example.com` * + * `create_time > "2025-01-01T00:00:00Z"` * `create_time <= "2025-01-01T00:00:00Z" AND + * resource_type:tool` + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListChangelogs call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListChangelogs call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListChangelogs call. + */ + 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); + } + } + + } + /** + * An accessor for creating requests from the Conversations collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Conversations.List request = ces.conversations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Conversations conversations() { + return new Conversations(); + } + + /** + * The "conversations" collection of methods. + */ + public class Conversations { + + /** + * Batch deletes the specified conversations. + * + * Create a request for the method "conversations.batchDelete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.BatchDeleteConversationsRequest} + * @return the request + */ + public BatchDelete batchDelete(java.lang.String parent, com.google.api.services.ces.v1beta.model.BatchDeleteConversationsRequest content) throws java.io.IOException { + BatchDelete result = new BatchDelete(parent, content); + initialize(result); + return result; + } + + public class BatchDelete extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/conversations:batchDelete"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Batch deletes the specified conversations. + * + * Create a request for the method "conversations.batchDelete". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link BatchDelete#execute()} method to invoke the remote operation.

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

+ * + * @param parent Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.BatchDeleteConversationsRequest} + * @since 1.13 + */ + protected BatchDelete(java.lang.String parent, com.google.api.services.ces.v1beta.model.BatchDeleteConversationsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/apps/[^/]+$"); + } + } + + @Override + public BatchDelete set$Xgafv(java.lang.String $Xgafv) { + return (BatchDelete) super.set$Xgafv($Xgafv); + } + + @Override + public BatchDelete setAccessToken(java.lang.String accessToken) { + return (BatchDelete) super.setAccessToken(accessToken); + } + + @Override + public BatchDelete setAlt(java.lang.String alt) { + return (BatchDelete) super.setAlt(alt); + } + + @Override + public BatchDelete setCallback(java.lang.String callback) { + return (BatchDelete) super.setCallback(callback); + } + + @Override + public BatchDelete setFields(java.lang.String fields) { + return (BatchDelete) super.setFields(fields); + } + + @Override + public BatchDelete setKey(java.lang.String key) { + return (BatchDelete) super.setKey(key); + } + + @Override + public BatchDelete setOauthToken(java.lang.String oauthToken) { + return (BatchDelete) super.setOauthToken(oauthToken); + } + + @Override + public BatchDelete setPrettyPrint(java.lang.Boolean prettyPrint) { + return (BatchDelete) super.setPrettyPrint(prettyPrint); + } + + @Override + public BatchDelete setQuotaUser(java.lang.String quotaUser) { + return (BatchDelete) super.setQuotaUser(quotaUser); + } + + @Override + public BatchDelete setUploadType(java.lang.String uploadType) { + return (BatchDelete) super.setUploadType(uploadType); + } + + @Override + public BatchDelete setUploadProtocol(java.lang.String uploadProtocol) { + return (BatchDelete) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to delete conversations from. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the app to delete conversations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + public BatchDelete 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + @Override + public BatchDelete set(String parameterName, Object value) { + return (BatchDelete) super.set(parameterName, value); + } + } + /** + * Deletes the specified conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the conversation 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + + /** + * Deletes the specified conversation. + * + * Create a request for the method "conversations.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the conversation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @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 resource name of the conversation to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the conversation to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the conversation 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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by + default. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + public Delete setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Creates a golden evaluation from a conversation. + * + * Create a request for the method "conversations.generateEvaluation". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link GenerateEvaluation#execute()} method to invoke the remote operation. + * + * @param conversation Required. The conversation to create the golden evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * @param content the {@link com.google.api.services.ces.v1beta.model.GenerateEvaluationRequest} + * @return the request + */ + public GenerateEvaluation generateEvaluation(java.lang.String conversation, com.google.api.services.ces.v1beta.model.GenerateEvaluationRequest content) throws java.io.IOException { + GenerateEvaluation result = new GenerateEvaluation(conversation, content); + initialize(result); + return result; + } + + public class GenerateEvaluation extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+conversation}:generateEvaluation"; + + private final java.util.regex.Pattern CONVERSATION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + + /** + * Creates a golden evaluation from a conversation. + * + * Create a request for the method "conversations.generateEvaluation". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link GenerateEvaluation#execute()} method to invoke the remote + * operation.

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

+ * + * @param conversation Required. The conversation to create the golden evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * @param content the {@link com.google.api.services.ces.v1beta.model.GenerateEvaluationRequest} + * @since 1.13 + */ + protected GenerateEvaluation(java.lang.String conversation, com.google.api.services.ces.v1beta.model.GenerateEvaluationRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.class); + this.conversation = com.google.api.client.util.Preconditions.checkNotNull(conversation, "Required parameter conversation must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONVERSATION_PATTERN.matcher(conversation).matches(), + "Parameter conversation must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @Override + public GenerateEvaluation set$Xgafv(java.lang.String $Xgafv) { + return (GenerateEvaluation) super.set$Xgafv($Xgafv); + } + + @Override + public GenerateEvaluation setAccessToken(java.lang.String accessToken) { + return (GenerateEvaluation) super.setAccessToken(accessToken); + } + + @Override + public GenerateEvaluation setAlt(java.lang.String alt) { + return (GenerateEvaluation) super.setAlt(alt); + } + + @Override + public GenerateEvaluation setCallback(java.lang.String callback) { + return (GenerateEvaluation) super.setCallback(callback); + } + + @Override + public GenerateEvaluation setFields(java.lang.String fields) { + return (GenerateEvaluation) super.setFields(fields); + } + + @Override + public GenerateEvaluation setKey(java.lang.String key) { + return (GenerateEvaluation) super.setKey(key); + } + + @Override + public GenerateEvaluation setOauthToken(java.lang.String oauthToken) { + return (GenerateEvaluation) super.setOauthToken(oauthToken); + } + + @Override + public GenerateEvaluation setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateEvaluation) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerateEvaluation setQuotaUser(java.lang.String quotaUser) { + return (GenerateEvaluation) super.setQuotaUser(quotaUser); + } + + @Override + public GenerateEvaluation setUploadType(java.lang.String uploadType) { + return (GenerateEvaluation) super.setUploadType(uploadType); + } + + @Override + public GenerateEvaluation setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateEvaluation) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The conversation to create the golden evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** Required. The conversation to create the golden evaluation for. Format: + `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * Required. The conversation to create the golden evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + */ + public GenerateEvaluation setConversation(java.lang.String conversation) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(CONVERSATION_PATTERN.matcher(conversation).matches(), + "Parameter conversation must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.conversation = conversation; + return this; + } + + @Override + public GenerateEvaluation set(String parameterName, Object value) { + return (GenerateEvaluation) super.set(parameterName, value); + } + } + /** + * Gets details of the specified conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the conversation to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/conversations/[^/]+$"); + + /** + * Gets details of the specified conversation. + * + * Create a request for the method "conversations.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the conversation to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Conversation.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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + } + + @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 resource name of the conversation to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the conversation to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the conversation to retrieve. */ + 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/[^/]+/apps/[^/]+/conversations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all source will be + * searched. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, all source will be searched. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all source will be + * searched. + */ + public Get setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists conversations in the given app. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list conversations from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/conversations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists conversations in the given app. + * + * Create a request for the method "conversations.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list conversations from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListConversationsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list conversations from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list conversations from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list conversations from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the conversations. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the conversations. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the conversations. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListConversations call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListConversations + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListConversations call. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** Optional. Indicate the source of the conversation. If not set, Source.Live will be applied by + default. + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, Source.Live will be + * applied by default. + */ + public List setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Deployments collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Deployments.List request = ces.deployments().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Deployments deployments() { + return new Deployments(); + } + + /** + * The "deployments" collection of methods. + */ + public class Deployments { + + /** + * Creates a new deployment in the given app. + * + * Create a request for the method "deployments.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Deployment} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Deployment content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/deployments"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new deployment in the given app. + * + * Create a request for the method "deployments.create". + * + * This request holds the parameters needed by the the ces 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 app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Deployment} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Deployment content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Deployment.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the deployment, which will become the final component of + * the deployment's resource name. If not provided, a unique ID will be automatically + * assigned for the deployment. + */ + @com.google.api.client.util.Key + private java.lang.String deploymentId; + + /** Optional. The ID to use for the deployment, which will become the final component of the + deployment's resource name. If not provided, a unique ID will be automatically assigned for the + deployment. + */ + public java.lang.String getDeploymentId() { + return deploymentId; + } + + /** + * Optional. The ID to use for the deployment, which will become the final component of + * the deployment's resource name. If not provided, a unique ID will be automatically + * assigned for the deployment. + */ + public Create setDeploymentId(java.lang.String deploymentId) { + this.deploymentId = deploymentId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified deployment. + * + * Create a request for the method "deployments.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + + /** + * Deletes the specified deployment. + * + * Create a request for the method "deployments.delete". + * + * This request holds the parameters needed by the the ces 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 deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @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 deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the deployment to delete. Format: + `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the deployment to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + 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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The etag of the deployment. If an etag is provided and does not match the + * current etag of the deployment, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the deployment. If an etag is provided and does not match the current etag of + the deployment, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag of the deployment. If an etag is provided and does not match the + * current etag of the deployment, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified deployment. + * + * Create a request for the method "deployments.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + + /** + * Gets details of the specified deployment. + * + * Create a request for the method "deployments.get". + * + * This request holds the parameters needed by the the ces 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 deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Deployment.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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @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 deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The name of the deployment. Format: + `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the deployment. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + */ + 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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists deployments in the given app. + * + * Create a request for the method "deployments.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/deployments"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists deployments in the given app. + * + * Create a request for the method "deployments.list". + * + * This request holds the parameters needed by the the ces 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 app. Format: `projects/{project}/locations/{location}/apps/{app}` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListDeploymentsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent app. Format: `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. The maximum number of deployments to return. The service may return fewer + * than this value. If unspecified, at most 50 deployments will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of deployments to return. The service may return fewer than this + value. If unspecified, at most 50 deployments will be returned. The maximum value is 1000; values + above 1000 will be coerced to 1000. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of deployments to return. The service may return fewer + * than this value. If unspecified, at most 50 deployments will be returned. The maximum + * value is 1000; values above 1000 will be coerced to 1000. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListDeployments` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeployments` must match the call that provided the page token. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListDeployments` call. Provide this to retrieve + the subsequent page. When paginating, all other parameters provided to `ListDeployments` must match + the call that provided the page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListDeployments` call. Provide this + * to retrieve the subsequent page. When paginating, all other parameters provided to + * `ListDeployments` must match the call that provided the page token. + */ + 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 the specified deployment. + * + * Create a request for the method "deployments.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param content the {@link com.google.api.services.ces.v1beta.model.Deployment} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Deployment content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/deployments/[^/]+$"); + + /** + * Updates the specified deployment. + * + * Create a request for the method "deployments.patch". + * + * This request holds the parameters needed by the the ces 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. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param content the {@link com.google.api.services.ces.v1beta.model.Deployment} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Deployment content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Deployment.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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + } + + @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. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the deployment. Format: + projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + */ + 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/[^/]+/apps/[^/]+/deployments/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + 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 EvaluationDatasets collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.EvaluationDatasets.List request = ces.evaluationDatasets().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public EvaluationDatasets evaluationDatasets() { + return new EvaluationDatasets(); + } + + /** + * The "evaluationDatasets" collection of methods. + */ + public class EvaluationDatasets { + + /** + * Creates an evaluation dataset. + * + * Create a request for the method "evaluationDatasets.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationDataset} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.EvaluationDataset content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluationDatasets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates an evaluation dataset. + * + * Create a request for the method "evaluationDatasets.create". + * + * This request holds the parameters needed by the the ces 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 app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationDataset} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.EvaluationDataset content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.EvaluationDataset.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The app to create the evaluation for. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the evaluation dataset, which will become the final + * component of the evaluation dataset's resource name. If not provided, a unique ID + * will be automatically assigned for the evaluation. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationDatasetId; + + /** Optional. The ID to use for the evaluation dataset, which will become the final component of the + evaluation dataset's resource name. If not provided, a unique ID will be automatically assigned for + the evaluation. + */ + public java.lang.String getEvaluationDatasetId() { + return evaluationDatasetId; + } + + /** + * Optional. The ID to use for the evaluation dataset, which will become the final + * component of the evaluation dataset's resource name. If not provided, a unique ID + * will be automatically assigned for the evaluation. + */ + public Create setEvaluationDatasetId(java.lang.String evaluationDatasetId) { + this.evaluationDatasetId = evaluationDatasetId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an evaluation dataset. + * + * Create a request for the method "evaluationDatasets.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation dataset 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + + /** + * Deletes an evaluation dataset. + * + * Create a request for the method "evaluationDatasets.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation dataset to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + } + } + + @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 resource name of the evaluation dataset to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation dataset to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation dataset 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/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the evaluation dataset. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the evaluation dataset, deletion will be blocked and an + * ABORTED error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the evaluation dataset. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + evaluation dataset, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the evaluation dataset. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the evaluation dataset, deletion will be blocked and an + * ABORTED error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified evaluation dataset. + * + * Create a request for the method "evaluationDatasets.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation dataset to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + + /** + * Gets details of the specified evaluation dataset. + * + * Create a request for the method "evaluationDatasets.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation dataset to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.EvaluationDataset.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/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + } + } + + @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 resource name of the evaluation dataset to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation dataset to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation dataset to retrieve. */ + 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/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all evaluation datasets in the given app. + * + * Create a request for the method "evaluationDatasets.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list evaluation datasets from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluationDatasets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all evaluation datasets in the given app. + * + * Create a request for the method "evaluationDatasets.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list evaluation datasets from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListEvaluationDatasetsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list evaluation datasets from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list evaluation datasets from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list evaluation datasets from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the evaluation datasets. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the evaluation datasets. See https://google.aip.dev/160 + for more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the evaluation datasets. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time", and "update_time" are supported. Time + fields are ordered in descending order, and the name field is ordered in ascending order. If not + included, "update_time" will be the default. See https://google.aip.dev/132#ordering for more + details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationDatasets call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list + EvaluationService.ListEvaluationDatasets call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationDatasets call. + */ + 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 an evaluation dataset. + * + * Create a request for the method "evaluationDatasets.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of this evaluation dataset. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset} + * ` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationDataset} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.EvaluationDataset content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + + /** + * Updates an evaluation dataset. + * + * Create a request for the method "evaluationDatasets.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of this evaluation dataset. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset} + * ` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationDataset} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.EvaluationDataset content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.EvaluationDataset.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/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + } + } + + @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. The unique identifier of this evaluation dataset. Format: `projects/{proj + * ect}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of this evaluation dataset. Format: + `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of this evaluation dataset. Format: `projects/{proj + * ect}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + */ + 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/[^/]+/apps/[^/]+/evaluationDatasets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 EvaluationExpectations collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.EvaluationExpectations.List request = ces.evaluationExpectations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public EvaluationExpectations evaluationExpectations() { + return new EvaluationExpectations(); + } + + /** + * The "evaluationExpectations" collection of methods. + */ + public class EvaluationExpectations { + + /** + * Creates an evaluation expectation. + * + * Create a request for the method "evaluationExpectations.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The app to create the evaluation expectation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationExpectation} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.EvaluationExpectation content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluationExpectations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates an evaluation expectation. + * + * Create a request for the method "evaluationExpectations.create". + * + * This request holds the parameters needed by the the ces 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 app to create the evaluation expectation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationExpectation} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.EvaluationExpectation content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.EvaluationExpectation.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app to create the evaluation expectation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The app to create the evaluation expectation for. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The app to create the evaluation expectation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the evaluation expectation, which will become the final + * component of the evaluation expectation's resource name. If not provided, a unique ID + * will be automatically assigned for the evaluation expectation. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationExpectationId; + + /** Optional. The ID to use for the evaluation expectation, which will become the final component of + the evaluation expectation's resource name. If not provided, a unique ID will be automatically + assigned for the evaluation expectation. + */ + public java.lang.String getEvaluationExpectationId() { + return evaluationExpectationId; + } + + /** + * Optional. The ID to use for the evaluation expectation, which will become the final + * component of the evaluation expectation's resource name. If not provided, a unique ID + * will be automatically assigned for the evaluation expectation. + */ + public Create setEvaluationExpectationId(java.lang.String evaluationExpectationId) { + this.evaluationExpectationId = evaluationExpectationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an evaluation expectation. + * + * Create a request for the method "evaluationExpectations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation expectation 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + + /** + * Deletes an evaluation expectation. + * + * Create a request for the method "evaluationExpectations.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation expectation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + } + } + + @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 resource name of the evaluation expectation to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation expectation to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation expectation 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/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the evaluation expectation. If an etag is not provided, + * the deletion will overwrite any concurrent changes. If an etag is provided and does + * not match the current etag of the evaluation expectation, deletion will be blocked + * and an ABORTED error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the evaluation expectation. If an etag is not provided, the deletion + will overwrite any concurrent changes. If an etag is provided and does not match the current etag + of the evaluation expectation, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the evaluation expectation. If an etag is not provided, + * the deletion will overwrite any concurrent changes. If an etag is provided and does + * not match the current etag of the evaluation expectation, deletion will be blocked + * and an ABORTED error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified evaluation expectation. + * + * Create a request for the method "evaluationExpectations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation expectation to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + + /** + * Gets details of the specified evaluation expectation. + * + * Create a request for the method "evaluationExpectations.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation expectation to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.EvaluationExpectation.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/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + } + } + + @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 resource name of the evaluation expectation to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation expectation to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation expectation to retrieve. */ + 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/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all evaluation expectations in the given app. + * + * Create a request for the method "evaluationExpectations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list evaluation expectations from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluationExpectations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all evaluation expectations in the given app. + * + * Create a request for the method "evaluationExpectations.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list evaluation expectations from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListEvaluationExpectationsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list evaluation expectations from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list evaluation expectations from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list evaluation expectations from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the evaluation expectations. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the evaluation expectations. See + https://google.aip.dev/160 for more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the evaluation expectations. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time", and "update_time" are supported. Time + fields are ordered in descending order, and the name field is ordered in ascending order. If not + included, "update_time" will be the default. See https://google.aip.dev/132#ordering for more + details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationExpectations call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list + EvaluationService.ListEvaluationExpectations call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationExpectations call. + */ + 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 an evaluation expectation. + * + * Create a request for the method "evaluationExpectations.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of this evaluation expectation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_exp + * ectation}` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationExpectation} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.EvaluationExpectation content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + + /** + * Updates an evaluation expectation. + * + * Create a request for the method "evaluationExpectations.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of this evaluation expectation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_exp + * ectation}` + * @param content the {@link com.google.api.services.ces.v1beta.model.EvaluationExpectation} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.EvaluationExpectation content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.EvaluationExpectation.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/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + } + } + + @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. The unique identifier of this evaluation expectation. Format: `projects/{ + * project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectati + * on}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/locat + ions/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of this evaluation expectation. Format: `projects/{ + * project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectati + * on}` + */ + 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/[^/]+/apps/[^/]+/evaluationExpectations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 EvaluationRuns collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.EvaluationRuns.List request = ces.evaluationRuns().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public EvaluationRuns evaluationRuns() { + return new EvaluationRuns(); + } + + /** + * The "evaluationRuns" collection of methods. + */ + public class EvaluationRuns { + + /** + * Deletes an evaluation run. + * + * Create a request for the method "evaluationRuns.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation run 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationRuns/[^/]+$"); + + /** + * Deletes an evaluation run. + * + * Create a request for the method "evaluationRuns.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation run to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/apps/[^/]+/evaluationRuns/[^/]+$"); + } + } + + @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 resource name of the evaluation run to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation run to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation run 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/[^/]+/apps/[^/]+/evaluationRuns/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified evaluation run. + * + * Create a request for the method "evaluationRuns.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation run to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluationRuns/[^/]+$"); + + /** + * Gets details of the specified evaluation run. + * + * Create a request for the method "evaluationRuns.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation run to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.EvaluationRun.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/[^/]+/apps/[^/]+/evaluationRuns/[^/]+$"); + } + } + + @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 resource name of the evaluation run to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation run to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation run to retrieve. */ + 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/[^/]+/apps/[^/]+/evaluationRuns/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all evaluation runs in the given app. + * + * Create a request for the method "evaluationRuns.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list evaluation runs from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluationRuns"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all evaluation runs in the given app. + * + * Create a request for the method "evaluationRuns.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list evaluation runs from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListEvaluationRunsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list evaluation runs from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list evaluation runs from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list evaluation runs from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the evaluation runs. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the evaluation runs. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the evaluation runs. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time", and "update_time" are supported. Time + fields are ordered in descending order, and the name field is ordered in ascending order. If not + included, "update_time" will be the default. See https://google.aip.dev/132#ordering for more + details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationRuns call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list + EvaluationService.ListEvaluationRuns call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationRuns call. + */ + 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); + } + } + + } + /** + * An accessor for creating requests from the Evaluations collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Evaluations.List request = ces.evaluations().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Evaluations evaluations() { + return new Evaluations(); + } + + /** + * The "evaluations" collection of methods. + */ + public class Evaluations { + + /** + * Creates an evaluation. + * + * Create a request for the method "evaluations.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Evaluation} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Evaluation content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates an evaluation. + * + * Create a request for the method "evaluations.create". + * + * This request holds the parameters needed by the the ces 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 app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Evaluation} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Evaluation content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Evaluation.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The app to create the evaluation for. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The app to create the evaluation for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the evaluation, which will become the final component of + * the evaluation's resource name. If not provided, a unique ID will be automatically + * assigned for the evaluation. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationId; + + /** Optional. The ID to use for the evaluation, which will become the final component of the + evaluation's resource name. If not provided, a unique ID will be automatically assigned for the + evaluation. + */ + public java.lang.String getEvaluationId() { + return evaluationId; + } + + /** + * Optional. The ID to use for the evaluation, which will become the final component of + * the evaluation's resource name. If not provided, a unique ID will be automatically + * assigned for the evaluation. + */ + public Create setEvaluationId(java.lang.String evaluationId) { + this.evaluationId = evaluationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes an evaluation. + * + * Create a request for the method "evaluations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + + /** + * Deletes an evaluation. + * + * Create a request for the method "evaluations.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + } + + @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 resource name of the evaluation to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation 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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the evaluation. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the evaluation, deletion will be blocked and an ABORTED + * error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the evaluation. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + evaluation, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the evaluation. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the evaluation, deletion will be blocked and an ABORTED + * error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the evaluation, even if it is still + * referenced by evaluation datasets. * If `force = false`, the deletion will fail if + * any datasets still reference the evaluation. * If `force = true`, all existing + * references from datasets will be removed and the evaluation will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the evaluation, even if it is still referenced by + evaluation datasets. * If `force = false`, the deletion will fail if any datasets still reference + the evaluation. * If `force = true`, all existing references from datasets will be removed and the + evaluation will be deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the evaluation, even if it is still + * referenced by evaluation datasets. * If `force = false`, the deletion will fail if + * any datasets still reference the evaluation. * If `force = true`, all existing + * references from datasets will be removed and the evaluation will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified evaluation. + * + * Create a request for the method "evaluations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + + /** + * Gets details of the specified evaluation. + * + * Create a request for the method "evaluations.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Evaluation.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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + } + + @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 resource name of the evaluation to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation to retrieve. */ + 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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all evaluations in the given app. + * + * Create a request for the method "evaluations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list evaluations from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/evaluations"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all evaluations in the given app. + * + * Create a request for the method "evaluations.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list evaluations from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListEvaluationsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list evaluations from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list evaluations from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list evaluations from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the evaluations. See + * https://google.aip.dev/160 for more details. Currently supports filtering by the + * following fields: * evaluation_datasets, using the evaluation dataset ID in the + * format evaluation_datasets:evaluation_dataset_id. * tags, using the tag in the format + * tags:tag. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the evaluations. See https://google.aip.dev/160 for + more details. Currently supports filtering by the following fields: * evaluation_datasets, using + the evaluation dataset ID in the format evaluation_datasets:evaluation_dataset_id. * tags, using + the tag in the format tags:tag. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the evaluations. See + * https://google.aip.dev/160 for more details. Currently supports filtering by the + * following fields: * evaluation_datasets, using the evaluation dataset ID in the + * format evaluation_datasets:evaluation_dataset_id. * tags, using the tag in the format + * tags:tag. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Whether to include the last 10 evaluation results for each evaluation in + * the response. + */ + @com.google.api.client.util.Key + private java.lang.Boolean lastTenResults; + + /** Optional. Whether to include the last 10 evaluation results for each evaluation in the response. + */ + public java.lang.Boolean getLastTenResults() { + return lastTenResults; + } + + /** + * Optional. Whether to include the last 10 evaluation results for each evaluation in + * the response. + */ + public List setLastTenResults(java.lang.Boolean lastTenResults) { + this.lastTenResults = lastTenResults; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time", and "update_time" are supported. Time + fields are ordered in descending order, and the name field is ordered in ascending order. If not + included, "update_time" will be the default. See https://google.aip.dev/132#ordering for more + details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is ordered + * in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluations call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list EvaluationService.ListEvaluations + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluations call. + */ + 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 an evaluation. + * + * Create a request for the method "evaluations.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Evaluation} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Evaluation content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + + /** + * Updates an evaluation. + * + * Create a request for the method "evaluations.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Evaluation} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Evaluation content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Evaluation.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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + } + + @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. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of this evaluation. Format: + `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + */ + 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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Results collection. + * + *

The typical use is:

+ *
+           *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+           *   {@code CustomerEngagementSuite.Results.List request = ces.results().list(parameters ...)}
+           * 
+ * + * @return the resource collection + */ + public Results results() { + return new Results(); + } + + /** + * The "results" collection of methods. + */ + public class Results { + + /** + * Deletes an evaluation result. + * + * Create a request for the method "results.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation result 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$"); + + /** + * Deletes an evaluation result. + * + * Create a request for the method "results.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation result to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$"); + } + } + + @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 resource name of the evaluation result to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation result to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation result 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/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified evaluation result. + * + * Create a request for the method "results.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the evaluation result to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$"); + + /** + * Gets details of the specified evaluation result. + * + * Create a request for the method "results.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation result to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.EvaluationResult.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/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$"); + } + } + + @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 resource name of the evaluation result to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the evaluation result to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the evaluation result to retrieve. */ + 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/[^/]+/apps/[^/]+/evaluations/[^/]+/results/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all evaluation results for a given evaluation. + * + * Create a request for the method "results.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the evaluation to list evaluation results from. To filter by + * evaluation run, use `-` as the evaluation ID and specify the evaluation run ID in the + * filter. For example: `projects/{project}/locations/{location}/apps/{app}/evaluations/-` + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/results"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + + /** + * Lists all evaluation results for a given evaluation. + * + * Create a request for the method "results.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the evaluation to list evaluation results from. To filter by + * evaluation run, use `-` as the evaluation ID and specify the evaluation run ID in the + * filter. For example: `projects/{project}/locations/{location}/apps/{app}/evaluations/-` + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListEvaluationResultsResponse.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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + } + + @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 resource name of the evaluation to list evaluation results from. To + * filter by evaluation run, use `-` as the evaluation ID and specify the evaluation + * run ID in the filter. For example: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/-` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the evaluation to list evaluation results from. To filter by + evaluation run, use `-` as the evaluation ID and specify the evaluation run ID in the filter. For + example: `projects/{project}/locations/{location}/apps/{app}/evaluations/-` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The resource name of the evaluation to list evaluation results from. To + * filter by evaluation run, use `-` as the evaluation ID and specify the evaluation + * run ID in the filter. For example: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/-` + */ + 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/[^/]+/apps/[^/]+/evaluations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the evaluation results. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the evaluation results. See https://google.aip.dev/160 + for more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the evaluation results. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is + * ordered in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time", and "update_time" are supported. Time + fields are ordered in descending order, and the name field is ordered in ascending order. If not + included, "update_time" will be the default. See https://google.aip.dev/132#ordering for more + details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time", and "update_time" are + * supported. Time fields are ordered in descending order, and the name field is + * ordered in ascending order. If not included, "update_time" will be the default. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationResults call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list + EvaluationService.ListEvaluationResults call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListEvaluationResults call. + */ + 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); + } + } + + } + } + /** + * An accessor for creating requests from the Examples collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Examples.List request = ces.examples().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Examples examples() { + return new Examples(); + } + + /** + * The "examples" collection of methods. + */ + public class Examples { + + /** + * Creates a new example in the given app. + * + * Create a request for the method "examples.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create an example in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Example} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Example content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/examples"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new example in the given app. + * + * Create a request for the method "examples.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create an example in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Example} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Example content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Example.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create an example in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an example in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an example in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the example, which will become the final component of the + * example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + */ + @com.google.api.client.util.Key + private java.lang.String exampleId; + + /** Optional. The ID to use for the example, which will become the final component of the example's + resource name. If not provided, a unique ID will be automatically assigned for the example. + */ + public java.lang.String getExampleId() { + return exampleId; + } + + /** + * Optional. The ID to use for the example, which will become the final component of the + * example's resource name. If not provided, a unique ID will be automatically assigned + * for the example. + */ + public Create setExampleId(java.lang.String exampleId) { + this.exampleId = exampleId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified example. + * + * Create a request for the method "examples.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the example 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + + /** + * Deletes the specified example. + * + * Create a request for the method "examples.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the example to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @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 resource name of the example to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the example to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the example 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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the example. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the example, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the example. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the example, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the example. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the example, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified example. + * + * Create a request for the method "examples.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the example to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + + /** + * Gets details of the specified example. + * + * Create a request for the method "examples.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the example to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Example.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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @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 resource name of the example to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the example to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the example to retrieve. */ + 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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists examples in the given app. + * + * Create a request for the method "examples.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list examples from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/examples"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists examples in the given app. + * + * Create a request for the method "examples.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list examples from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListExamplesResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list examples from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list examples from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list examples from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the examples. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the examples. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the examples. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListExamples call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListExamples call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListExamples call. + */ + 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 the specified example. + * + * Create a request for the method "examples.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Example} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Example content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/examples/[^/]+$"); + + /** + * Updates the specified example. + * + * Create a request for the method "examples.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Example} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Example content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Example.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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + } + + @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. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the example. Format: + `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + */ + 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/[^/]+/apps/[^/]+/examples/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Guardrails collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Guardrails.List request = ces.guardrails().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Guardrails guardrails() { + return new Guardrails(); + } + + /** + * The "guardrails" collection of methods. + */ + public class Guardrails { + + /** + * Creates a new guardrail in the given app. + * + * Create a request for the method "guardrails.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create a guardrail in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Guardrail} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Guardrail content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/guardrails"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new guardrail in the given app. + * + * Create a request for the method "guardrails.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create a guardrail in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Guardrail} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Guardrail content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Guardrail.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create a guardrail in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a guardrail in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a guardrail in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the guardrail, which will become the final component of + * the guardrail's resource name. If not provided, a unique ID will be automatically + * assigned for the guardrail. + */ + @com.google.api.client.util.Key + private java.lang.String guardrailId; + + /** Optional. The ID to use for the guardrail, which will become the final component of the guardrail's + resource name. If not provided, a unique ID will be automatically assigned for the guardrail. + */ + public java.lang.String getGuardrailId() { + return guardrailId; + } + + /** + * Optional. The ID to use for the guardrail, which will become the final component of + * the guardrail's resource name. If not provided, a unique ID will be automatically + * assigned for the guardrail. + */ + public Create setGuardrailId(java.lang.String guardrailId) { + this.guardrailId = guardrailId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified guardrail. + * + * Create a request for the method "guardrails.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the guardrail 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + + /** + * Deletes the specified guardrail. + * + * Create a request for the method "guardrails.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the guardrail to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @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 resource name of the guardrail to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the guardrail to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the guardrail 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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the guardrail. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the guardrail, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the guardrail. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + guardrail, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the guardrail. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the guardrail, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the guardrail, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents + * still reference the guardrail. * If `force = true`, all existing references from + * apps/agents will be removed and the guardrail will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the guardrail, even if it is still referenced by + app/agents. * If `force = false`, the deletion fails if any apps/agents still reference the + guardrail. * If `force = true`, all existing references from apps/agents will be removed and the + guardrail will be deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the guardrail, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any apps/agents + * still reference the guardrail. * If `force = true`, all existing references from + * apps/agents will be removed and the guardrail will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified guardrail. + * + * Create a request for the method "guardrails.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the guardrail to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + + /** + * Gets details of the specified guardrail. + * + * Create a request for the method "guardrails.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the guardrail to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Guardrail.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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @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 resource name of the guardrail to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the guardrail to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the guardrail to retrieve. */ + 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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists guardrails in the given app. + * + * Create a request for the method "guardrails.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list guardrails from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/guardrails"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists guardrails in the given app. + * + * Create a request for the method "guardrails.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list guardrails from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListGuardrailsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list guardrails from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list guardrails from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list guardrails from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the guardrails. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the guardrails. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the guardrails. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListGuardrails call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListGuardrails call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListGuardrails call. + */ + 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 the specified guardrail. + * + * Create a request for the method "guardrails.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Guardrail} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Guardrail content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + + /** + * Updates the specified guardrail. + * + * Create a request for the method "guardrails.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Guardrail} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Guardrail content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Guardrail.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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + } + + @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. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the guardrail. Format: + `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + */ + 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/[^/]+/apps/[^/]+/guardrails/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 ScheduledEvaluationRuns collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.ScheduledEvaluationRuns.List request = ces.scheduledEvaluationRuns().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public ScheduledEvaluationRuns scheduledEvaluationRuns() { + return new ScheduledEvaluationRuns(); + } + + /** + * The "scheduledEvaluationRuns" collection of methods. + */ + public class ScheduledEvaluationRuns { + + /** + * Creates a scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The app to create the scheduled evaluation run for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/scheduledEvaluationRuns"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.create". + * + * This request holds the parameters needed by the the ces 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 app to create the scheduled evaluation run for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param content the {@link com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun.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/[^/]+/apps/[^/]+$"); + } + } + + @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 app to create the scheduled evaluation run for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The app to create the scheduled evaluation run for. Format: + `projects/{project}/locations/{location}/apps/{app}` + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The app to create the scheduled evaluation run for. Format: + * `projects/{project}/locations/{location}/apps/{app}` + */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the scheduled evaluation run, which will become the final + * component of the scheduled evaluation run's resource name. If not provided, a unique + * ID will be automatically assigned. + */ + @com.google.api.client.util.Key + private java.lang.String scheduledEvaluationRunId; + + /** Optional. The ID to use for the scheduled evaluation run, which will become the final component of + the scheduled evaluation run's resource name. If not provided, a unique ID will be automatically + assigned. + */ + public java.lang.String getScheduledEvaluationRunId() { + return scheduledEvaluationRunId; + } + + /** + * Optional. The ID to use for the scheduled evaluation run, which will become the final + * component of the scheduled evaluation run's resource name. If not provided, a unique + * ID will be automatically assigned. + */ + public Create setScheduledEvaluationRunId(java.lang.String scheduledEvaluationRunId) { + this.scheduledEvaluationRunId = scheduledEvaluationRunId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes a scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the scheduled evaluation run 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + + /** + * Deletes a scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the scheduled evaluation run to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + } + } + + @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 resource name of the scheduled evaluation run to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the scheduled evaluation run to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the scheduled evaluation run 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/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The etag of the ScheduledEvaluationRun. If provided, it must match the + * server's etag. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The etag of the ScheduledEvaluationRun. If provided, it must match the server's etag. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The etag of the ScheduledEvaluationRun. If provided, it must match the + * server's etag. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the scheduled evaluation run to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + + /** + * Gets details of the specified scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the scheduled evaluation run to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun.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/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + } + } + + @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 resource name of the scheduled evaluation run to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the scheduled evaluation run to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the scheduled evaluation run to retrieve. */ + 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/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all scheduled evaluation runs in the given app. + * + * Create a request for the method "scheduledEvaluationRuns.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list scheduled evaluation runs from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/scheduledEvaluationRuns"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all scheduled evaluation runs in the given app. + * + * Create a request for the method "scheduledEvaluationRuns.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list scheduled evaluation runs from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListScheduledEvaluationRunsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list scheduled evaluation runs from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list scheduled evaluation runs from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list scheduled evaluation runs from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the scheduled evaluation runs. See + * https://google.aip.dev/160 for more details. Currently supports filtering by: * + * request.evaluations:evaluation_id * request.evaluation_dataset:evaluation_dataset_id + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the scheduled evaluation runs. See + https://google.aip.dev/160 for more details. Currently supports filtering by: * + request.evaluations:evaluation_id * request.evaluation_dataset:evaluation_dataset_id + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the scheduled evaluation runs. See + * https://google.aip.dev/160 for more details. Currently supports filtering by: * + * request.evaluations:evaluation_id * request.evaluation_dataset:evaluation_dataset_id + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Supported fields are: "name" (ascending), "create_time" + * (descending), "update_time" (descending), "next_scheduled_execution" (ascending), and + * "last_completed_run.create_time" (descending). If not included, "update_time" will be + * the default. See https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Supported fields are: "name" (ascending), "create_time" (descending), + "update_time" (descending), "next_scheduled_execution" (ascending), and + "last_completed_run.create_time" (descending). If not included, "update_time" will be the default. + See https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Supported fields are: "name" (ascending), "create_time" + * (descending), "update_time" (descending), "next_scheduled_execution" (ascending), and + * "last_completed_run.create_time" (descending). If not included, "update_time" will be + * the default. See https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListScheduledEvaluationRuns call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list + EvaluationService.ListScheduledEvaluationRuns call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * EvaluationService.ListScheduledEvaluationRuns call. + */ + 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 scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the scheduled evaluation run config. Format: projects/{projectI + * d}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId} + * @param content the {@link com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + + /** + * Updates a scheduled evaluation run. + * + * Create a request for the method "scheduledEvaluationRuns.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the scheduled evaluation run config. Format: projects/{projectI + * d}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId} + * @param content the {@link com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.ScheduledEvaluationRun.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/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + } + } + + @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. The unique identifier of the scheduled evaluation run config. Format: pro + * jects/{projectId}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{schedu + * ledEvaluationRunId} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the scheduled evaluation run config. Format: projects/{project + Id}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the scheduled evaluation run config. Format: pro + * jects/{projectId}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{schedu + * ledEvaluationRunId} + */ + 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/[^/]+/apps/[^/]+/scheduledEvaluationRuns/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Sessions collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Sessions.List request = ces.sessions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Sessions sessions() { + return new Sessions(); + } + + /** + * The "sessions" collection of methods. + */ + public class Sessions { + + /** + * Generates a session scoped token for chat widget to authenticate with Session APIs. + * + * Create a request for the method "sessions.generateChatToken". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link GenerateChatToken#execute()} method to invoke the remote operation. + * + * @param name Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + * @param content the {@link com.google.api.services.ces.v1beta.model.GenerateChatTokenRequest} + * @return the request + */ + public GenerateChatToken generateChatToken(java.lang.String name, com.google.api.services.ces.v1beta.model.GenerateChatTokenRequest content) throws java.io.IOException { + GenerateChatToken result = new GenerateChatToken(name, content); + initialize(result); + return result; + } + + public class GenerateChatToken extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}:generateChatToken"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + + /** + * Generates a session scoped token for chat widget to authenticate with Session APIs. + * + * Create a request for the method "sessions.generateChatToken". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link GenerateChatToken#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + * @param content the {@link com.google.api.services.ces.v1beta.model.GenerateChatTokenRequest} + * @since 1.13 + */ + protected GenerateChatToken(java.lang.String name, com.google.api.services.ces.v1beta.model.GenerateChatTokenRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.GenerateChatTokenResponse.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/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public GenerateChatToken set$Xgafv(java.lang.String $Xgafv) { + return (GenerateChatToken) super.set$Xgafv($Xgafv); + } + + @Override + public GenerateChatToken setAccessToken(java.lang.String accessToken) { + return (GenerateChatToken) super.setAccessToken(accessToken); + } + + @Override + public GenerateChatToken setAlt(java.lang.String alt) { + return (GenerateChatToken) super.setAlt(alt); + } + + @Override + public GenerateChatToken setCallback(java.lang.String callback) { + return (GenerateChatToken) super.setCallback(callback); + } + + @Override + public GenerateChatToken setFields(java.lang.String fields) { + return (GenerateChatToken) super.setFields(fields); + } + + @Override + public GenerateChatToken setKey(java.lang.String key) { + return (GenerateChatToken) super.setKey(key); + } + + @Override + public GenerateChatToken setOauthToken(java.lang.String oauthToken) { + return (GenerateChatToken) super.setOauthToken(oauthToken); + } + + @Override + public GenerateChatToken setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GenerateChatToken) super.setPrettyPrint(prettyPrint); + } + + @Override + public GenerateChatToken setQuotaUser(java.lang.String quotaUser) { + return (GenerateChatToken) super.setQuotaUser(quotaUser); + } + + @Override + public GenerateChatToken setUploadType(java.lang.String uploadType) { + return (GenerateChatToken) super.setUploadType(uploadType); + } + + @Override + public GenerateChatToken setUploadProtocol(java.lang.String uploadProtocol) { + return (GenerateChatToken) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The session name to generate the chat token for. Format: + projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The session name to generate the chat token for. Format: + * projects/{project}/locations/{location}/apps/{app}/sessions/{session} + */ + public GenerateChatToken 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/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GenerateChatToken set(String parameterName, Object value) { + return (GenerateChatToken) super.set(parameterName, value); + } + } + /** + * Initiates a single turn interaction with the CES agent within a session. + * + * Create a request for the method "sessions.runSession". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RunSession#execute()} method to invoke the remote operation. + * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RunSessionRequest} + * @return the request + */ + public RunSession runSession(java.lang.String session, com.google.api.services.ces.v1beta.model.RunSessionRequest content) throws java.io.IOException { + RunSession result = new RunSession(session, content); + initialize(result); + return result; + } + + public class RunSession extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+session}:runSession"; + + private final java.util.regex.Pattern SESSION_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + + /** + * Initiates a single turn interaction with the CES agent within a session. + * + * Create a request for the method "sessions.runSession". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RunSession#execute()} method to invoke the remote operation.

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

+ * + * @param session Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RunSessionRequest} + * @since 1.13 + */ + protected RunSession(java.lang.String session, com.google.api.services.ces.v1beta.model.RunSessionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.RunSessionResponse.class); + this.session = com.google.api.client.util.Preconditions.checkNotNull(session, "Required parameter session must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + } + + @Override + public RunSession set$Xgafv(java.lang.String $Xgafv) { + return (RunSession) super.set$Xgafv($Xgafv); + } + + @Override + public RunSession setAccessToken(java.lang.String accessToken) { + return (RunSession) super.setAccessToken(accessToken); + } + + @Override + public RunSession setAlt(java.lang.String alt) { + return (RunSession) super.setAlt(alt); + } + + @Override + public RunSession setCallback(java.lang.String callback) { + return (RunSession) super.setCallback(callback); + } + + @Override + public RunSession setFields(java.lang.String fields) { + return (RunSession) super.setFields(fields); + } + + @Override + public RunSession setKey(java.lang.String key) { + return (RunSession) super.setKey(key); + } + + @Override + public RunSession setOauthToken(java.lang.String oauthToken) { + return (RunSession) super.setOauthToken(oauthToken); + } + + @Override + public RunSession setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RunSession) super.setPrettyPrint(prettyPrint); + } + + @Override + public RunSession setQuotaUser(java.lang.String quotaUser) { + return (RunSession) super.setQuotaUser(quotaUser); + } + + @Override + public RunSession setUploadType(java.lang.String uploadType) { + return (RunSession) super.setUploadType(uploadType); + } + + @Override + public RunSession setUploadProtocol(java.lang.String uploadProtocol) { + return (RunSession) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + @com.google.api.client.util.Key + private java.lang.String session; + + /** Required. The unique identifier of the session. Format: + `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public java.lang.String getSession() { + return session; + } + + /** + * Required. The unique identifier of the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/sessions/{session}` + */ + public RunSession setSession(java.lang.String session) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(SESSION_PATTERN.matcher(session).matches(), + "Parameter session must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/sessions/[^/]+$"); + } + this.session = session; + return this; + } + + @Override + public RunSession set(String parameterName, Object value) { + return (RunSession) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Tools collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Tools.List request = ces.tools().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Tools tools() { + return new Tools(); + } + + /** + * The "tools" collection of methods. + */ + public class Tools { + + /** + * Creates a new tool in the given app. + * + * Create a request for the method "tools.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create a tool in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Tool} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Tool content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/tools"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new tool in the given app. + * + * Create a request for the method "tools.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create a tool in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Tool} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Tool content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Tool.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create a tool in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a tool in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a tool in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the tool, which will become the final component of the + * tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + */ + @com.google.api.client.util.Key + private java.lang.String toolId; + + /** Optional. The ID to use for the tool, which will become the final component of the tool's resource + name. If not provided, a unique ID will be automatically assigned for the tool. + */ + public java.lang.String getToolId() { + return toolId; + } + + /** + * Optional. The ID to use for the tool, which will become the final component of the + * tool's resource name. If not provided, a unique ID will be automatically assigned for + * the tool. + */ + public Create setToolId(java.lang.String toolId) { + this.toolId = toolId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified tool. + * + * Create a request for the method "tools.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the tool 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + + /** + * Deletes the specified tool. + * + * Create a request for the method "tools.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the tool to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @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 resource name of the tool to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the tool to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the tool 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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the tool. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the tool, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the tool. If an etag is not provided, the deletion will overwrite any + concurrent changes. If an etag is provided and does not match the current etag of the tool, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the tool. If an etag is not provided, the deletion will + * overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the tool, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the tool, even if it is still + * referenced by agents/examples. * If `force = false`, the deletion will fail if any + * agents still reference the tool. * If `force = true`, all existing references from + * agents will be removed and the tool will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the tool, even if it is still referenced by + agents/examples. * If `force = false`, the deletion will fail if any agents still reference the + tool. * If `force = true`, all existing references from agents will be removed and the tool will be + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the tool, even if it is still + * referenced by agents/examples. * If `force = false`, the deletion will fail if any + * agents still reference the tool. * If `force = true`, all existing references from + * agents will be removed and the tool will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified tool. + * + * Create a request for the method "tools.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the tool to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + + /** + * Gets details of the specified tool. + * + * Create a request for the method "tools.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the tool to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Tool.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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @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 resource name of the tool to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the tool to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the tool to retrieve. */ + 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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists tools in the given app. + * + * Create a request for the method "tools.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list tools from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/tools"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists tools in the given app. + * + * Create a request for the method "tools.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list tools from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListToolsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list tools from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list tools from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list tools from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the tools. Use + * "include_system_tools=true" to include system tools in the response. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the tools. Use "include_system_tools=true" to include + system tools in the response. See https://google.aip.dev/160 for more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the tools. Use + * "include_system_tools=true" to include system tools in the response. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListTools call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListTools call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListTools call. + */ + 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 the specified tool. + * + * Create a request for the method "tools.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for + * tools retrieved from a toolset. These tools are dynamic and output-only, they cannot be + * referenced directly where a tool is expected. + * @param content the {@link com.google.api.services.ces.v1beta.model.Tool} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Tool content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/tools/[^/]+$"); + + /** + * Updates the specified tool. + * + * Create a request for the method "tools.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for + * tools retrieved from a toolset. These tools are dynamic and output-only, they cannot be + * referenced directly where a tool is expected. + * @param content the {@link com.google.api.services.ces.v1beta.model.Tool} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Tool content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Tool.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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + } + + @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. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone + * tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + * for tools retrieved from a toolset. These tools are dynamic and output-only, they + * cannot be referenced directly where a tool is expected. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the tool. Format: - + `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + directly where a tool is expected. + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone + * tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` + * for tools retrieved from a toolset. These tools are dynamic and output-only, they + * cannot be referenced directly where a tool is expected. + */ + 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/[^/]+/apps/[^/]+/tools/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + 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 Toolsets collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Toolsets.List request = ces.toolsets().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Toolsets toolsets() { + return new Toolsets(); + } + + /** + * The "toolsets" collection of methods. + */ + public class Toolsets { + + /** + * Creates a new toolset in the given app. + * + * Create a request for the method "toolsets.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create a toolset in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Toolset} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Toolset content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/toolsets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new toolset in the given app. + * + * Create a request for the method "toolsets.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create a toolset in. + * @param content the {@link com.google.api.services.ces.v1beta.model.Toolset} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.Toolset content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Toolset.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create a toolset in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create a toolset in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create a toolset in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the toolset, which will become the final component of the + * toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + */ + @com.google.api.client.util.Key + private java.lang.String toolsetId; + + /** Optional. The ID to use for the toolset, which will become the final component of the toolset's + resource name. If not provided, a unique ID will be automatically assigned for the toolset. + */ + public java.lang.String getToolsetId() { + return toolsetId; + } + + /** + * Optional. The ID to use for the toolset, which will become the final component of the + * toolset's resource name. If not provided, a unique ID will be automatically assigned + * for the toolset. + */ + public Create setToolsetId(java.lang.String toolsetId) { + this.toolsetId = toolsetId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified toolset. + * + * Create a request for the method "toolsets.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the toolset 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Deletes the specified toolset. + * + * Create a request for the method "toolsets.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the toolset to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @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 resource name of the toolset to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the toolset to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the toolset 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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the toolset. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the toolset, deletion will be blocked and an ABORTED error will be + * returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the toolset. If an etag is not provided, the deletion will overwrite + any concurrent changes. If an etag is provided and does not match the current etag of the toolset, + deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the toolset. If an etag is not provided, the deletion + * will overwrite any concurrent changes. If an etag is provided and does not match the + * current etag of the toolset, deletion will be blocked and an ABORTED error will be + * returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Indicates whether to forcefully delete the toolset, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any agents + * still reference the toolset. * If `force = true`, all existing references from agents + * will be removed and the toolset will be deleted. + */ + @com.google.api.client.util.Key + private java.lang.Boolean force; + + /** Optional. Indicates whether to forcefully delete the toolset, even if it is still referenced by + app/agents. * If `force = false`, the deletion fails if any agents still reference the toolset. * + If `force = true`, all existing references from agents will be removed and the toolset will be + deleted. + */ + public java.lang.Boolean getForce() { + return force; + } + + /** + * Optional. Indicates whether to forcefully delete the toolset, even if it is still + * referenced by app/agents. * If `force = false`, the deletion fails if any agents + * still reference the toolset. * If `force = true`, all existing references from agents + * will be removed and the toolset will be deleted. + */ + public Delete setForce(java.lang.Boolean force) { + this.force = force; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified toolset. + * + * Create a request for the method "toolsets.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the toolset to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Gets details of the specified toolset. + * + * Create a request for the method "toolsets.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the toolset to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Toolset.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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @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 resource name of the toolset to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the toolset to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the toolset to retrieve. */ + 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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists toolsets in the given app. + * + * Create a request for the method "toolsets.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list toolsets from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/toolsets"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists toolsets in the given app. + * + * Create a request for the method "toolsets.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list toolsets from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListToolsetsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list toolsets from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list toolsets from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list toolsets from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the toolsets. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the toolsets. See https://google.aip.dev/160 for more + details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the toolsets. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListToolsets call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListToolsets call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListToolsets call. + */ + 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 the specified toolset. + * + * Create a request for the method "toolsets.patch". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Toolset} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Toolset content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Updates the specified toolset. + * + * Create a request for the method "toolsets.patch". + * + * This request holds the parameters needed by the the ces 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. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1beta.model.Toolset} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.ces.v1beta.model.Toolset content) { + super(CustomerEngagementSuite.this, "PATCH", REST_PATH, content, com.google.api.services.ces.v1beta.model.Toolset.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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @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. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The unique identifier of the toolset. Format: + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + 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/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. Field mask is used to control which fields get updated. If the mask is not present, all + fields will be updated. + */ + public String getUpdateMask() { + return updateMask; + } + + /** + * Optional. Field mask is used to control which fields get updated. If the mask is not + * present, all fields will be updated. + */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + /** + * Retrieve the list of tools included in the specified toolset. + * + * Create a request for the method "toolsets.retrieveTools". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link RetrieveTools#execute()} method to invoke the remote operation. + * + * @param toolset Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RetrieveToolsRequest} + * @return the request + */ + public RetrieveTools retrieveTools(java.lang.String toolset, com.google.api.services.ces.v1beta.model.RetrieveToolsRequest content) throws java.io.IOException { + RetrieveTools result = new RetrieveTools(toolset, content); + initialize(result); + return result; + } + + public class RetrieveTools extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+toolset}:retrieveTools"; + + private final java.util.regex.Pattern TOOLSET_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + + /** + * Retrieve the list of tools included in the specified toolset. + * + * Create a request for the method "toolsets.retrieveTools". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link RetrieveTools#execute()} method to invoke the remote operation.

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

+ * + * @param toolset Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param content the {@link com.google.api.services.ces.v1beta.model.RetrieveToolsRequest} + * @since 1.13 + */ + protected RetrieveTools(java.lang.String toolset, com.google.api.services.ces.v1beta.model.RetrieveToolsRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.RetrieveToolsResponse.class); + this.toolset = com.google.api.client.util.Preconditions.checkNotNull(toolset, "Required parameter toolset must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TOOLSET_PATTERN.matcher(toolset).matches(), + "Parameter toolset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + } + + @Override + public RetrieveTools set$Xgafv(java.lang.String $Xgafv) { + return (RetrieveTools) super.set$Xgafv($Xgafv); + } + + @Override + public RetrieveTools setAccessToken(java.lang.String accessToken) { + return (RetrieveTools) super.setAccessToken(accessToken); + } + + @Override + public RetrieveTools setAlt(java.lang.String alt) { + return (RetrieveTools) super.setAlt(alt); + } + + @Override + public RetrieveTools setCallback(java.lang.String callback) { + return (RetrieveTools) super.setCallback(callback); + } + + @Override + public RetrieveTools setFields(java.lang.String fields) { + return (RetrieveTools) super.setFields(fields); + } + + @Override + public RetrieveTools setKey(java.lang.String key) { + return (RetrieveTools) super.setKey(key); + } + + @Override + public RetrieveTools setOauthToken(java.lang.String oauthToken) { + return (RetrieveTools) super.setOauthToken(oauthToken); + } + + @Override + public RetrieveTools setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RetrieveTools) super.setPrettyPrint(prettyPrint); + } + + @Override + public RetrieveTools setQuotaUser(java.lang.String quotaUser) { + return (RetrieveTools) super.setQuotaUser(quotaUser); + } + + @Override + public RetrieveTools setUploadType(java.lang.String uploadType) { + return (RetrieveTools) super.setUploadType(uploadType); + } + + @Override + public RetrieveTools setUploadProtocol(java.lang.String uploadProtocol) { + return (RetrieveTools) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** Required. The name of the toolset to retrieve the tools for. Format: + `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The name of the toolset to retrieve the tools for. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + */ + public RetrieveTools setToolset(java.lang.String toolset) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(TOOLSET_PATTERN.matcher(toolset).matches(), + "Parameter toolset must conform to the pattern " + + "^projects/[^/]+/locations/[^/]+/apps/[^/]+/toolsets/[^/]+$"); + } + this.toolset = toolset; + return this; + } + + @Override + public RetrieveTools set(String parameterName, Object value) { + return (RetrieveTools) super.set(parameterName, value); + } + } + + } + /** + * An accessor for creating requests from the Versions collection. + * + *

The typical use is:

+ *
+         *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+         *   {@code CustomerEngagementSuite.Versions.List request = ces.versions().list(parameters ...)}
+         * 
+ * + * @return the resource collection + */ + public Versions versions() { + return new Versions(); + } + + /** + * The "versions" collection of methods. + */ + public class Versions { + + /** + * Creates a new app version in the given app. + * + * Create a request for the method "versions.create". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to create an app version in. + * @param content the {@link com.google.api.services.ces.v1beta.model.AppVersion} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.ces.v1beta.model.AppVersion content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/versions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Creates a new app version in the given app. + * + * Create a request for the method "versions.create". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to create an app version in. + * @param content the {@link com.google.api.services.ces.v1beta.model.AppVersion} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.ces.v1beta.model.AppVersion content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.AppVersion.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to create an app version in. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to create an app version in. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to create an app version in. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The ID to use for the app version, which will become the final component of + * the app version's resource name. If not provided, a unique ID will be automatically + * assigned for the app version. + */ + @com.google.api.client.util.Key + private java.lang.String appVersionId; + + /** Optional. The ID to use for the app version, which will become the final component of the app + version's resource name. If not provided, a unique ID will be automatically assigned for the app + version. + */ + public java.lang.String getAppVersionId() { + return appVersionId; + } + + /** + * Optional. The ID to use for the app version, which will become the final component of + * the app version's resource name. If not provided, a unique ID will be automatically + * assigned for the app version. + */ + public Create setAppVersionId(java.lang.String appVersionId) { + this.appVersionId = appVersionId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Deletes the specified app version. + * + * Create a request for the method "versions.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version 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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + + /** + * Deletes the specified app version. + * + * Create a request for the method "versions.delete". + * + * This request holds the parameters needed by the the ces 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 resource name of the app version to delete. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @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 resource name of the app version to delete. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to delete. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version 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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + /** + * Optional. The current etag of the app version. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the app version, deletion will be blocked and an ABORTED + * error will be returned. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** Optional. The current etag of the app version. If an etag is not provided, the deletion will + overwrite any concurrent changes. If an etag is provided and does not match the current etag of the + app version, deletion will be blocked and an ABORTED error will be returned. + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Optional. The current etag of the app version. If an etag is not provided, the + * deletion will overwrite any concurrent changes. If an etag is provided and does not + * match the current etag of the app version, deletion will be blocked and an ABORTED + * error will be returned. + */ + public Delete setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets details of the specified app version. + * + * Create a request for the method "versions.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to retrieve. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + + /** + * Gets details of the specified app version. + * + * Create a request for the method "versions.get". + * + * This request holds the parameters needed by the the ces 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 resource name of the app version to retrieve. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.AppVersion.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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @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 resource name of the app version to retrieve. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to retrieve. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to retrieve. */ + 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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists all app versions in the given app. + * + * Create a request for the method "versions.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The resource name of the app to list app versions from. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+parent}/versions"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+$"); + + /** + * Lists all app versions in the given app. + * + * Create a request for the method "versions.list". + * + * This request holds the parameters needed by the the ces 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 resource name of the app to list app versions from. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListAppVersionsResponse.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/[^/]+/apps/[^/]+$"); + } + } + + @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 resource name of the app to list app versions from. */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The resource name of the app to list app versions from. + */ + public java.lang.String getParent() { + return parent; + } + + /** Required. The resource name of the app to list app versions from. */ + 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/[^/]+/apps/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. Filter to be applied when listing the app versions. See + * https://google.aip.dev/160 for more details. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. Filter to be applied when listing the app versions. See https://google.aip.dev/160 for + more details. + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter to be applied when listing the app versions. See + * https://google.aip.dev/160 for more details. + */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + @com.google.api.client.util.Key + private java.lang.String orderBy; + + /** Optional. Field to sort by. Only "name" and "create_time" is supported. See + https://google.aip.dev/132#ordering for more details. + */ + public java.lang.String getOrderBy() { + return orderBy; + } + + /** + * Optional. Field to sort by. Only "name" and "create_time" is supported. See + * https://google.aip.dev/132#ordering for more details. + */ + public List setOrderBy(java.lang.String orderBy) { + this.orderBy = orderBy; + return this; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. Requested page size. Server may return fewer items than requested. If unspecified, server + will pick an appropriate default. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. Requested page size. Server may return fewer items than requested. If + * unspecified, server will pick an appropriate default. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAppVersions call. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. The next_page_token value returned from a previous list AgentService.ListAppVersions + call. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. The next_page_token value returned from a previous list + * AgentService.ListAppVersions call. + */ + 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); + } + } + /** + * Restores the specified app version. This will create a new app version from the current draft app + * and overwrite the current draft with the specified app version. + * + * Create a request for the method "versions.restore". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Restore#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the app version to restore. + * @param content the {@link com.google.api.services.ces.v1beta.model.RestoreAppVersionRequest} + * @return the request + */ + public Restore restore(java.lang.String name, com.google.api.services.ces.v1beta.model.RestoreAppVersionRequest content) throws java.io.IOException { + Restore result = new Restore(name, content); + initialize(result); + return result; + } + + public class Restore extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}:restore"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/apps/[^/]+/versions/[^/]+$"); + + /** + * Restores the specified app version. This will create a new app version from the current draft + * app and overwrite the current draft with the specified app version. + * + * Create a request for the method "versions.restore". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link Restore#execute()} method to invoke the remote operation.

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

+ * + * @param name Required. The resource name of the app version to restore. + * @param content the {@link com.google.api.services.ces.v1beta.model.RestoreAppVersionRequest} + * @since 1.13 + */ + protected Restore(java.lang.String name, com.google.api.services.ces.v1beta.model.RestoreAppVersionRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + } + + @Override + public Restore set$Xgafv(java.lang.String $Xgafv) { + return (Restore) super.set$Xgafv($Xgafv); + } + + @Override + public Restore setAccessToken(java.lang.String accessToken) { + return (Restore) super.setAccessToken(accessToken); + } + + @Override + public Restore setAlt(java.lang.String alt) { + return (Restore) super.setAlt(alt); + } + + @Override + public Restore setCallback(java.lang.String callback) { + return (Restore) super.setCallback(callback); + } + + @Override + public Restore setFields(java.lang.String fields) { + return (Restore) super.setFields(fields); + } + + @Override + public Restore setKey(java.lang.String key) { + return (Restore) super.setKey(key); + } + + @Override + public Restore setOauthToken(java.lang.String oauthToken) { + return (Restore) super.setOauthToken(oauthToken); + } + + @Override + public Restore setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Restore) super.setPrettyPrint(prettyPrint); + } + + @Override + public Restore setQuotaUser(java.lang.String quotaUser) { + return (Restore) super.setQuotaUser(quotaUser); + } + + @Override + public Restore setUploadType(java.lang.String uploadType) { + return (Restore) super.setUploadType(uploadType); + } + + @Override + public Restore setUploadProtocol(java.lang.String uploadProtocol) { + return (Restore) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the app version to restore. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the app version to restore. + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the app version to restore. */ + public Restore 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/[^/]+/apps/[^/]+/versions/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Restore set(String parameterName, Object value) { + return (Restore) super.set(parameterName, value); + } + } + + } + } + /** + * An accessor for creating requests from the Operations collection. + * + *

The typical use is:

+ *
+       *   {@code CustomerEngagementSuite ces = new CustomerEngagementSuite(...);}
+       *   {@code CustomerEngagementSuite.Operations.List request = ces.operations().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Operations operations() { + return new Operations(); + } + + /** + * The "operations" collection of methods. + */ + public class Operations { + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.ces.v1beta.model.CancelOperationRequest} + * @return the request + */ + public Cancel cancel(java.lang.String name, com.google.api.services.ces.v1beta.model.CancelOperationRequest content) throws java.io.IOException { + Cancel result = new Cancel(name, content); + initialize(result); + return result; + } + + public class Cancel extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}:cancel"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Starts asynchronous cancellation on a long-running operation. The server makes a best effort to + * cancel the operation, but success is not guaranteed. If the server doesn't support this method, + * it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other + * methods to check whether the cancellation succeeded or whether the operation completed despite + * cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an + * operation with an Operation.error value with a google.rpc.Status.code of `1`, corresponding to + * `Code.CANCELLED`. + * + * Create a request for the method "operations.cancel". + * + * This request holds the parameters needed by the the ces server. After setting any optional + * parameters, call the {@link Cancel#execute()} method to invoke the remote operation.

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

+ * + * @param name The name of the operation resource to be cancelled. + * @param content the {@link com.google.api.services.ces.v1beta.model.CancelOperationRequest} + * @since 1.13 + */ + protected Cancel(java.lang.String name, com.google.api.services.ces.v1beta.model.CancelOperationRequest content) { + super(CustomerEngagementSuite.this, "POST", REST_PATH, content, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/operations/[^/]+$"); + } + } + + @Override + public Cancel set$Xgafv(java.lang.String $Xgafv) { + return (Cancel) super.set$Xgafv($Xgafv); + } + + @Override + public Cancel setAccessToken(java.lang.String accessToken) { + return (Cancel) super.setAccessToken(accessToken); + } + + @Override + public Cancel setAlt(java.lang.String alt) { + return (Cancel) super.setAlt(alt); + } + + @Override + public Cancel setCallback(java.lang.String callback) { + return (Cancel) super.setCallback(callback); + } + + @Override + public Cancel setFields(java.lang.String fields) { + return (Cancel) super.setFields(fields); + } + + @Override + public Cancel setKey(java.lang.String key) { + return (Cancel) super.setKey(key); + } + + @Override + public Cancel setOauthToken(java.lang.String oauthToken) { + return (Cancel) super.setOauthToken(oauthToken); + } + + @Override + public Cancel setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Cancel) super.setPrettyPrint(prettyPrint); + } + + @Override + public Cancel setQuotaUser(java.lang.String quotaUser) { + return (Cancel) super.setQuotaUser(quotaUser); + } + + @Override + public Cancel setUploadType(java.lang.String uploadType) { + return (Cancel) super.setUploadType(uploadType); + } + + @Override + public Cancel setUploadProtocol(java.lang.String uploadProtocol) { + return (Cancel) super.setUploadProtocol(uploadProtocol); + } + + /** The name of the operation resource to be cancelled. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be cancelled. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be cancelled. */ + public Cancel 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Cancel set(String parameterName, Object value) { + return (Cancel) super.set(parameterName, value); + } + } + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Delete#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource to be deleted. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Deletes a long-running operation. This method indicates that the client is no longer interested + * in the operation result. It does not cancel the operation. If the server doesn't support this + * method, it returns `google.rpc.Code.UNIMPLEMENTED`. + * + * Create a request for the method "operations.delete". + * + * This request holds the parameters needed by the the ces 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 The name of the operation resource to be deleted. + * @since 1.13 + */ + protected Delete(java.lang.String name) { + super(CustomerEngagementSuite.this, "DELETE", REST_PATH, null, com.google.api.services.ces.v1beta.model.Empty.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/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource to be deleted. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource to be deleted. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource to be deleted. */ + 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Delete set(String parameterName, Object value) { + return (Delete) super.set(parameterName, value); + } + } + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name The name of the operation resource. + * @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 CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/operations/[^/]+$"); + + /** + * Gets the latest state of a long-running operation. Clients can use this method to poll the + * operation result at intervals as recommended by the API service. + * + * Create a request for the method "operations.get". + * + * This request holds the parameters needed by the the ces 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 The name of the operation resource. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.Operation.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/[^/]+/operations/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation resource. */ + 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/[^/]+/operations/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the ces server. After setting any optional + * parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param name The name of the operation's parent resource. + * @return the request + */ + public List list(java.lang.String name) throws java.io.IOException { + List result = new List(name); + initialize(result); + return result; + } + + public class List extends CustomerEngagementSuiteRequest { + + private static final String REST_PATH = "v1beta/{+name}/operations"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$"); + + /** + * Lists operations that match the specified filter in the request. If the server doesn't support + * this method, it returns `UNIMPLEMENTED`. + * + * Create a request for the method "operations.list". + * + * This request holds the parameters needed by the the ces 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 name The name of the operation's parent resource. + * @since 1.13 + */ + protected List(java.lang.String name) { + super(CustomerEngagementSuite.this, "GET", REST_PATH, null, com.google.api.services.ces.v1beta.model.ListOperationsResponse.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/[^/]+$"); + } + } + + @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); + } + + /** The name of the operation's parent resource. */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** The name of the operation's parent resource. + */ + public java.lang.String getName() { + return name; + } + + /** The name of the operation's parent resource. */ + public List 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/[^/]+$"); + } + this.name = name; + return this; + } + + /** The standard list filter. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** The standard list filter. + */ + public java.lang.String getFilter() { + return filter; + } + + /** The standard list filter. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** The standard list page size. */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** The standard list page size. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** The standard list page size. */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** The standard list page token. */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** The standard list page token. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** The standard list page token. */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + @com.google.api.client.util.Key + private java.lang.Boolean returnPartialSuccess; + + /** When set to `true`, operations that are reachable are returned as normal, and those that are + unreachable are returned in the ListOperationsResponse.unreachable field. This can only be `true` + when reading across collections. For example, when `parent` is set to + `"projects/example/locations/-"`. This field is not supported by default and will result in an + `UNIMPLEMENTED` error if set unless explicitly documented otherwise in service or product specific + documentation. + */ + public java.lang.Boolean getReturnPartialSuccess() { + return returnPartialSuccess; + } + + /** + * When set to `true`, operations that are reachable are returned as normal, and those + * that are unreachable are returned in the ListOperationsResponse.unreachable field. This + * can only be `true` when reading across collections. For example, when `parent` is set + * to `"projects/example/locations/-"`. This field is not supported by default and will + * result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in + * service or product specific documentation. + */ + public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) { + this.returnPartialSuccess = returnPartialSuccess; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + + /** + * Builder for {@link CustomerEngagementSuite}. + * + *

+ * Implementation is not thread-safe. + *

+ * + * @since 1.3.0 + */ + public static final class Builder extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClient.Builder { + + private static String chooseEndpoint(com.google.api.client.http.HttpTransport transport) { + // If the GOOGLE_API_USE_MTLS_ENDPOINT environment variable value is "always", use mTLS endpoint. + // If the env variable is "auto", use mTLS endpoint if and only if the transport is mTLS. + // Use the regular endpoint for all other cases. + String useMtlsEndpoint = System.getenv("GOOGLE_API_USE_MTLS_ENDPOINT"); + useMtlsEndpoint = useMtlsEndpoint == null ? "auto" : useMtlsEndpoint; + if ("always".equals(useMtlsEndpoint) || ("auto".equals(useMtlsEndpoint) && transport != null && transport.isMtls())) { + return DEFAULT_MTLS_ROOT_URL; + } + return DEFAULT_ROOT_URL; + } + + /** + * Returns an instance of a new builder. + * + * @param transport HTTP transport, which should normally be: + *
    + *
  • Google App Engine: + * {@code com.google.api.client.extensions.appengine.http.UrlFetchTransport}
  • + *
  • Android: {@code newCompatibleTransport} from + * {@code com.google.api.client.extensions.android.http.AndroidHttp}
  • + *
  • Java: {@link com.google.api.client.googleapis.javanet.GoogleNetHttpTransport#newTrustedTransport()} + *
  • + *
+ * @param jsonFactory JSON factory, which may be: + *
    + *
  • Jackson: {@code com.google.api.client.json.jackson2.JacksonFactory}
  • + *
  • Google GSON: {@code com.google.api.client.json.gson.GsonFactory}
  • + *
  • Android Honeycomb or higher: + * {@code com.google.api.client.extensions.android.json.AndroidJsonFactory}
  • + *
+ * @param httpRequestInitializer HTTP request initializer or {@code null} for none + * @since 1.7 + */ + public Builder(com.google.api.client.http.HttpTransport transport, com.google.api.client.json.JsonFactory jsonFactory, + com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + super( + transport, + jsonFactory, + Builder.chooseEndpoint(transport), + DEFAULT_SERVICE_PATH, + httpRequestInitializer, + false); + setBatchPath(DEFAULT_BATCH_PATH); + } + + /** Builds a new instance of {@link CustomerEngagementSuite}. */ + @Override + public CustomerEngagementSuite build() { + return new CustomerEngagementSuite(this); + } + + @Override + public Builder setRootUrl(String rootUrl) { + return (Builder) super.setRootUrl(rootUrl); + } + + @Override + public Builder setServicePath(String servicePath) { + return (Builder) super.setServicePath(servicePath); + } + + @Override + public Builder setBatchPath(String batchPath) { + return (Builder) super.setBatchPath(batchPath); + } + + @Override + public Builder setHttpRequestInitializer(com.google.api.client.http.HttpRequestInitializer httpRequestInitializer) { + return (Builder) super.setHttpRequestInitializer(httpRequestInitializer); + } + + @Override + public Builder setApplicationName(String applicationName) { + return (Builder) super.setApplicationName(applicationName); + } + + @Override + public Builder setSuppressPatternChecks(boolean suppressPatternChecks) { + return (Builder) super.setSuppressPatternChecks(suppressPatternChecks); + } + + @Override + public Builder setSuppressRequiredParameterChecks(boolean suppressRequiredParameterChecks) { + return (Builder) super.setSuppressRequiredParameterChecks(suppressRequiredParameterChecks); + } + + @Override + public Builder setSuppressAllChecks(boolean suppressAllChecks) { + return (Builder) super.setSuppressAllChecks(suppressAllChecks); + } + + /** + * Set the {@link CustomerEngagementSuiteRequestInitializer}. + * + * @since 1.12 + */ + public Builder setCustomerEngagementSuiteRequestInitializer( + CustomerEngagementSuiteRequestInitializer customerengagementsuiteRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(customerengagementsuiteRequestInitializer); + } + + @Override + public Builder setGoogleClientRequestInitializer( + com.google.api.client.googleapis.services.GoogleClientRequestInitializer googleClientRequestInitializer) { + return (Builder) super.setGoogleClientRequestInitializer(googleClientRequestInitializer); + } + + @Override + public Builder setUniverseDomain(String universeDomain) { + return (Builder) super.setUniverseDomain(universeDomain); + } + } +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteRequest.java new file mode 100644 index 00000000000..d4c5e23b763 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteRequest.java @@ -0,0 +1,267 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta; + +/** + * CustomerEngagementSuite request. + * + * @since 1.3 + */ +@SuppressWarnings("javadoc") +public abstract class CustomerEngagementSuiteRequest extends com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest { + + /** + * @param client Google client + * @param method HTTP Method + * @param uriTemplate URI template for the path relative to the base URL. If it starts with a "/" + * the base path from the base URL will be stripped out. The URI template can also be a + * full URL. URI template expansion is done using + * {@link com.google.api.client.http.UriTemplate#expand(String, String, Object, boolean)} + * @param content A POJO that can be serialized into JSON or {@code null} for none + * @param responseClass response class to parse into + */ + public CustomerEngagementSuiteRequest( + CustomerEngagementSuite client, String method, String uriTemplate, Object content, Class responseClass) { + super( + client, + method, + uriTemplate, + content, + responseClass); + } + + /** V1 error format. */ + @com.google.api.client.util.Key("$.xgafv") + private java.lang.String $Xgafv; + + /** + * V1 error format. + */ + public java.lang.String get$Xgafv() { + return $Xgafv; + } + + /** V1 error format. */ + public CustomerEngagementSuiteRequest set$Xgafv(java.lang.String $Xgafv) { + this.$Xgafv = $Xgafv; + return this; + } + + /** OAuth access token. */ + @com.google.api.client.util.Key("access_token") + private java.lang.String accessToken; + + /** + * OAuth access token. + */ + public java.lang.String getAccessToken() { + return accessToken; + } + + /** OAuth access token. */ + public CustomerEngagementSuiteRequest setAccessToken(java.lang.String accessToken) { + this.accessToken = accessToken; + return this; + } + + /** Data format for response. */ + @com.google.api.client.util.Key + private java.lang.String alt; + + /** + * Data format for response. [default: json] + */ + public java.lang.String getAlt() { + return alt; + } + + /** Data format for response. */ + public CustomerEngagementSuiteRequest setAlt(java.lang.String alt) { + this.alt = alt; + return this; + } + + /** JSONP */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * JSONP + */ + public java.lang.String getCallback() { + return callback; + } + + /** JSONP */ + public CustomerEngagementSuiteRequest setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** Selector specifying which fields to include in a partial response. */ + @com.google.api.client.util.Key + private java.lang.String fields; + + /** + * Selector specifying which fields to include in a partial response. + */ + public java.lang.String getFields() { + return fields; + } + + /** Selector specifying which fields to include in a partial response. */ + public CustomerEngagementSuiteRequest setFields(java.lang.String fields) { + this.fields = fields; + return this; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + @com.google.api.client.util.Key + private java.lang.String key; + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public java.lang.String getKey() { + return key; + } + + /** + * API key. Your API key identifies your project and provides you with API access, quota, and + * reports. Required unless you provide an OAuth 2.0 token. + */ + public CustomerEngagementSuiteRequest setKey(java.lang.String key) { + this.key = key; + return this; + } + + /** OAuth 2.0 token for the current user. */ + @com.google.api.client.util.Key("oauth_token") + private java.lang.String oauthToken; + + /** + * OAuth 2.0 token for the current user. + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** OAuth 2.0 token for the current user. */ + public CustomerEngagementSuiteRequest setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + /** Returns response with indentations and line breaks. */ + @com.google.api.client.util.Key + private java.lang.Boolean prettyPrint; + + /** + * Returns response with indentations and line breaks. [default: true] + */ + public java.lang.Boolean getPrettyPrint() { + return prettyPrint; + } + + /** Returns response with indentations and line breaks. */ + public CustomerEngagementSuiteRequest setPrettyPrint(java.lang.Boolean prettyPrint) { + this.prettyPrint = prettyPrint; + return this; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + @com.google.api.client.util.Key + private java.lang.String quotaUser; + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public java.lang.String getQuotaUser() { + return quotaUser; + } + + /** + * Available to use for quota purposes for server-side applications. Can be any arbitrary string + * assigned to a user, but should not exceed 40 characters. + */ + public CustomerEngagementSuiteRequest setQuotaUser(java.lang.String quotaUser) { + this.quotaUser = quotaUser; + return this; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + @com.google.api.client.util.Key + private java.lang.String uploadType; + + /** + * Legacy upload protocol for media (e.g. "media", "multipart"). + */ + public java.lang.String getUploadType() { + return uploadType; + } + + /** Legacy upload protocol for media (e.g. "media", "multipart"). */ + public CustomerEngagementSuiteRequest setUploadType(java.lang.String uploadType) { + this.uploadType = uploadType; + return this; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + @com.google.api.client.util.Key("upload_protocol") + private java.lang.String uploadProtocol; + + /** + * Upload protocol for media (e.g. "raw", "multipart"). + */ + public java.lang.String getUploadProtocol() { + return uploadProtocol; + } + + /** Upload protocol for media (e.g. "raw", "multipart"). */ + public CustomerEngagementSuiteRequest setUploadProtocol(java.lang.String uploadProtocol) { + this.uploadProtocol = uploadProtocol; + return this; + } + + @Override + public final CustomerEngagementSuite getAbstractGoogleClient() { + return (CustomerEngagementSuite) super.getAbstractGoogleClient(); + } + + @Override + public CustomerEngagementSuiteRequest setDisableGZipContent(boolean disableGZipContent) { + return (CustomerEngagementSuiteRequest) super.setDisableGZipContent(disableGZipContent); + } + + @Override + public CustomerEngagementSuiteRequest setRequestHeaders(com.google.api.client.http.HttpHeaders headers) { + return (CustomerEngagementSuiteRequest) super.setRequestHeaders(headers); + } + + @Override + public CustomerEngagementSuiteRequest set(String parameterName, Object value) { + return (CustomerEngagementSuiteRequest) super.set(parameterName, value); + } +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteRequestInitializer.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteRequestInitializer.java new file mode 100644 index 00000000000..f382d3fe47f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteRequestInitializer.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta; + +/** + * CustomerEngagementSuite request initializer for setting properties like key and userIp. + * + *

+ * The simplest usage is to use it to set the key parameter: + *

+ * + *
+  public static final GoogleClientRequestInitializer KEY_INITIALIZER =
+      new CustomerEngagementSuiteRequestInitializer(KEY);
+ * 
+ * + *

+ * There is also a constructor to set both the key and userIp parameters: + *

+ * + *
+  public static final GoogleClientRequestInitializer INITIALIZER =
+      new CustomerEngagementSuiteRequestInitializer(KEY, USER_IP);
+ * 
+ * + *

+ * If you want to implement custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer extends CustomerEngagementSuiteRequestInitializer {
+
+    {@literal @}Override
+    public void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Finally, to set the key and userIp parameters and insert custom logic, extend it like this: + *

+ * + *
+  public static class MyRequestInitializer2 extends CustomerEngagementSuiteRequestInitializer {
+
+    public MyKeyRequestInitializer() {
+      super(KEY, USER_IP);
+    }
+
+    {@literal @}Override
+    public void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest{@literal <}?{@literal >} request)
+        throws IOException {
+      // custom logic
+    }
+  }
+ * 
+ * + *

+ * Subclasses should be thread-safe. + *

+ * + * @since 1.12 + */ +public class CustomerEngagementSuiteRequestInitializer extends com.google.api.client.googleapis.services.json.CommonGoogleJsonClientRequestInitializer { + + public CustomerEngagementSuiteRequestInitializer() { + super(); + } + + /** + * @param key API key or {@code null} to leave it unchanged + */ + public CustomerEngagementSuiteRequestInitializer(String key) { + super(key); + } + + /** + * @param key API key or {@code null} to leave it unchanged + * @param userIp user IP or {@code null} to leave it unchanged + */ + public CustomerEngagementSuiteRequestInitializer(String key, String userIp) { + super(key, userIp); + } + + @Override + public final void initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest request) throws java.io.IOException { + super.initializeJsonRequest(request); + initializeCustomerEngagementSuiteRequest((CustomerEngagementSuiteRequest) request); + } + + /** + * Initializes CustomerEngagementSuite request. + * + *

+ * Default implementation does nothing. Called from + * {@link #initializeJsonRequest(com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest)}. + *

+ * + * @throws java.io.IOException I/O exception + */ + protected void initializeCustomerEngagementSuiteRequest(CustomerEngagementSuiteRequest request) throws java.io.IOException { + } +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteScopes.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteScopes.java new file mode 100644 index 00000000000..283e0864b5c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/CustomerEngagementSuiteScopes.java @@ -0,0 +1,46 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta; + +/** + * Available OAuth 2.0 scopes for use with the Gemini Enterprise for Customer Experience API. + * + * @since 1.4 + */ +public class CustomerEngagementSuiteScopes { + + /** Create, update, delete, and manage your Next Gen Agents. */ + public static final String CES = "https://www.googleapis.com/auth/ces"; + + /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ + public static final String CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; + + /** + * Returns an unmodifiable set that contains all scopes declared by this class. + * + * @since 1.16 + */ + public static java.util.Set all() { + java.util.Set set = new java.util.HashSet(); + set.add(CES); + set.add(CLOUD_PLATFORM); + return java.util.Collections.unmodifiableSet(set); + } + + private CustomerEngagementSuiteScopes() { + } +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Action.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Action.java new file mode 100644 index 00000000000..352316b23db --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Action.java @@ -0,0 +1,147 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration of an Action for the tool to use. Note: This can be either an Action or an + * Operation. See https://cloud.google.com/integration-connectors/docs/entities-operation-action for + * details. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Action extends com.google.api.client.json.GenericJson { + + /** + * ID of a Connection action for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connectionActionId; + + /** + * Entity operation configuration for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ActionEntityOperation entityOperation; + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputFields; + + /** + * Optional. Entity fields to return from the operation. If no fields are specified, all fields of + * the Entity will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outputFields; + + /** + * ID of a Connection action for the tool to use. + * @return value or {@code null} for none + */ + public java.lang.String getConnectionActionId() { + return connectionActionId; + } + + /** + * ID of a Connection action for the tool to use. + * @param connectionActionId connectionActionId or {@code null} for none + */ + public Action setConnectionActionId(java.lang.String connectionActionId) { + this.connectionActionId = connectionActionId; + return this; + } + + /** + * Entity operation configuration for the tool to use. + * @return value or {@code null} for none + */ + public ActionEntityOperation getEntityOperation() { + return entityOperation; + } + + /** + * Entity operation configuration for the tool to use. + * @param entityOperation entityOperation or {@code null} for none + */ + public Action setEntityOperation(ActionEntityOperation entityOperation) { + this.entityOperation = entityOperation; + return this; + } + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * @return value or {@code null} for none + */ + public java.util.List getInputFields() { + return inputFields; + } + + /** + * Optional. Entity fields to use as inputs for the operation. If no fields are specified, all + * fields of the Entity will be used. + * @param inputFields inputFields or {@code null} for none + */ + public Action setInputFields(java.util.List inputFields) { + this.inputFields = inputFields; + return this; + } + + /** + * Optional. Entity fields to return from the operation. If no fields are specified, all fields of + * the Entity will be returned. + * @return value or {@code null} for none + */ + public java.util.List getOutputFields() { + return outputFields; + } + + /** + * Optional. Entity fields to return from the operation. If no fields are specified, all fields of + * the Entity will be returned. + * @param outputFields outputFields or {@code null} for none + */ + public Action setOutputFields(java.util.List outputFields) { + this.outputFields = outputFields; + return this; + } + + @Override + public Action set(String fieldName, Object value) { + return (Action) super.set(fieldName, value); + } + + @Override + public Action clone() { + return (Action) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ActionEntityOperation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ActionEntityOperation.java new file mode 100644 index 00000000000..a20ee3cb756 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ActionEntityOperation.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.ces.v1beta.model; + +/** + * Entity CRUD operation specification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ActionEntityOperation extends com.google.api.client.json.GenericJson { + + /** + * Required. ID of the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entityId; + + /** + * Required. Operation to perform on the entity. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String operation; + + /** + * Required. ID of the entity. + * @return value or {@code null} for none + */ + public java.lang.String getEntityId() { + return entityId; + } + + /** + * Required. ID of the entity. + * @param entityId entityId or {@code null} for none + */ + public ActionEntityOperation setEntityId(java.lang.String entityId) { + this.entityId = entityId; + return this; + } + + /** + * Required. Operation to perform on the entity. + * @return value or {@code null} for none + */ + public java.lang.String getOperation() { + return operation; + } + + /** + * Required. Operation to perform on the entity. + * @param operation operation or {@code null} for none + */ + public ActionEntityOperation setOperation(java.lang.String operation) { + this.operation = operation; + return this; + } + + @Override + public ActionEntityOperation set(String fieldName, Object value) { + return (ActionEntityOperation) super.set(fieldName, value); + } + + @Override + public ActionEntityOperation clone() { + return (ActionEntityOperation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Agent.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Agent.java new file mode 100644 index 00000000000..e838c680083 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Agent.java @@ -0,0 +1,653 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An agent acts as the fundamental building block that provides instructions to the Large Language + * Model (LLM) for executing specific tasks. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Agent extends com.google.api.client.json.GenericJson { + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List afterAgentCallbacks; + + /** + * Optional. The callbacks to execute after the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List afterModelCallbacks; + + /** + * Optional. The callbacks to execute after the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List afterToolCallbacks; + + /** + * Optional. The callbacks to execute before the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List beforeAgentCallbacks; + + /** + * Optional. The callbacks to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List beforeModelCallbacks; + + /** + * Optional. The callbacks to execute before the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List beforeToolCallbacks; + + /** + * Optional. List of child agents in the agent tree. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childAgents; + + /** + * Output only. Timestamp when the agent was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. If the agent is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSummary; + + /** + * Optional. List of guardrails for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + /** + * Optional. Instructions for the LLM model to guide the agent's behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String instruction; + + /** + * Optional. The default agent type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentLlmAgent llmAgent; + + /** + * Optional. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console- + * conversational-agents) agent to be used for the agent execution. If this field is set, all + * other agent level properties will be ignored. Note: If the Dialogflow agent is in a different + * project from the app, you should grant `roles/dialogflow.client` to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentRemoteDialogflowAgent remoteDialogflowAgent; + + /** + * Optional. List of available tools for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Optional. List of toolsets for the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolsets; + + /** + * Optional. Agent transfer rules. If multiple rules match, the first one in the list will be + * used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List transferRules; + + /** + * Output only. Timestamp when the agent was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getAfterAgentCallbacks() { + return afterAgentCallbacks; + } + + /** + * Optional. The callbacks to execute after the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @param afterAgentCallbacks afterAgentCallbacks or {@code null} for none + */ + public Agent setAfterAgentCallbacks(java.util.List afterAgentCallbacks) { + this.afterAgentCallbacks = afterAgentCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute after the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getAfterModelCallbacks() { + return afterModelCallbacks; + } + + /** + * Optional. The callbacks to execute after the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param afterModelCallbacks afterModelCallbacks or {@code null} for none + */ + public Agent setAfterModelCallbacks(java.util.List afterModelCallbacks) { + this.afterModelCallbacks = afterModelCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute after the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getAfterToolCallbacks() { + return afterToolCallbacks; + } + + /** + * Optional. The callbacks to execute after the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param afterToolCallbacks afterToolCallbacks or {@code null} for none + */ + public Agent setAfterToolCallbacks(java.util.List afterToolCallbacks) { + this.afterToolCallbacks = afterToolCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute before the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getBeforeAgentCallbacks() { + return beforeAgentCallbacks; + } + + /** + * Optional. The callbacks to execute before the agent is called. The provided callbacks are + * executed sequentially in the exact order they are given in the list. If a callback returns an + * overridden response, execution stops and any remaining callbacks are skipped. + * @param beforeAgentCallbacks beforeAgentCallbacks or {@code null} for none + */ + public Agent setBeforeAgentCallbacks(java.util.List beforeAgentCallbacks) { + this.beforeAgentCallbacks = beforeAgentCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getBeforeModelCallbacks() { + return beforeModelCallbacks; + } + + /** + * Optional. The callbacks to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param beforeModelCallbacks beforeModelCallbacks or {@code null} for none + */ + public Agent setBeforeModelCallbacks(java.util.List beforeModelCallbacks) { + this.beforeModelCallbacks = beforeModelCallbacks; + return this; + } + + /** + * Optional. The callbacks to execute before the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @return value or {@code null} for none + */ + public java.util.List getBeforeToolCallbacks() { + return beforeToolCallbacks; + } + + /** + * Optional. The callbacks to execute before the tool is invoked. If there are multiple tool + * invocations, the callback will be executed multiple times. The provided callbacks are executed + * sequentially in the exact order they are given in the list. If a callback returns an overridden + * response, execution stops and any remaining callbacks are skipped. + * @param beforeToolCallbacks beforeToolCallbacks or {@code null} for none + */ + public Agent setBeforeToolCallbacks(java.util.List beforeToolCallbacks) { + this.beforeToolCallbacks = beforeToolCallbacks; + return this; + } + + /** + * Optional. List of child agents in the agent tree. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.util.List getChildAgents() { + return childAgents; + } + + /** + * Optional. List of child agents in the agent tree. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param childAgents childAgents or {@code null} for none + */ + public Agent setChildAgents(java.util.List childAgents) { + this.childAgents = childAgents; + return this; + } + + /** + * Output only. Timestamp when the agent was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the agent was created. + * @param createTime createTime or {@code null} for none + */ + public Agent setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable description of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the agent. + * @param description description or {@code null} for none + */ + public Agent setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public Agent setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Agent setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. If the agent is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSummary() { + return generatedSummary; + } + + /** + * Output only. If the agent is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @param generatedSummary generatedSummary or {@code null} for none + */ + public Agent setGeneratedSummary(java.lang.String generatedSummary) { + this.generatedSummary = generatedSummary; + return this; + } + + /** + * Optional. List of guardrails for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * Optional. List of guardrails for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param guardrails guardrails or {@code null} for none + */ + public Agent setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * Optional. Instructions for the LLM model to guide the agent's behavior. + * @return value or {@code null} for none + */ + public java.lang.String getInstruction() { + return instruction; + } + + /** + * Optional. Instructions for the LLM model to guide the agent's behavior. + * @param instruction instruction or {@code null} for none + */ + public Agent setInstruction(java.lang.String instruction) { + this.instruction = instruction; + return this; + } + + /** + * Optional. The default agent type. + * @return value or {@code null} for none + */ + public AgentLlmAgent getLlmAgent() { + return llmAgent; + } + + /** + * Optional. The default agent type. + * @param llmAgent llmAgent or {@code null} for none + */ + public Agent setLlmAgent(AgentLlmAgent llmAgent) { + this.llmAgent = llmAgent; + return this; + } + + /** + * Optional. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public Agent setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param name name or {@code null} for none + */ + public Agent setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console- + * conversational-agents) agent to be used for the agent execution. If this field is set, all + * other agent level properties will be ignored. Note: If the Dialogflow agent is in a different + * project from the app, you should grant `roles/dialogflow.client` to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public AgentRemoteDialogflowAgent getRemoteDialogflowAgent() { + return remoteDialogflowAgent; + } + + /** + * Optional. The remote [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console- + * conversational-agents) agent to be used for the agent execution. If this field is set, all + * other agent level properties will be ignored. Note: If the Dialogflow agent is in a different + * project from the app, you should grant `roles/dialogflow.client` to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param remoteDialogflowAgent remoteDialogflowAgent or {@code null} for none + */ + public Agent setRemoteDialogflowAgent(AgentRemoteDialogflowAgent remoteDialogflowAgent) { + this.remoteDialogflowAgent = remoteDialogflowAgent; + return this; + } + + /** + * Optional. List of available tools for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * Optional. List of available tools for the agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tools tools or {@code null} for none + */ + public Agent setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + /** + * Optional. List of toolsets for the agent. + * @return value or {@code null} for none + */ + public java.util.List getToolsets() { + return toolsets; + } + + /** + * Optional. List of toolsets for the agent. + * @param toolsets toolsets or {@code null} for none + */ + public Agent setToolsets(java.util.List toolsets) { + this.toolsets = toolsets; + return this; + } + + /** + * Optional. Agent transfer rules. If multiple rules match, the first one in the list will be + * used. + * @return value or {@code null} for none + */ + public java.util.List getTransferRules() { + return transferRules; + } + + /** + * Optional. Agent transfer rules. If multiple rules match, the first one in the list will be + * used. + * @param transferRules transferRules or {@code null} for none + */ + public Agent setTransferRules(java.util.List transferRules) { + this.transferRules = transferRules; + return this; + } + + /** + * Output only. Timestamp when the agent was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the agent was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Agent setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Agent set(String fieldName, Object value) { + return (Agent) super.set(fieldName, value); + } + + @Override + public Agent clone() { + return (Agent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentAgentToolset.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentAgentToolset.java new file mode 100644 index 00000000000..a3b316efefb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentAgentToolset.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A toolset with a selection of its tools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentAgentToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. The tools IDs to filter the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolIds; + + /** + * Required. The resource name of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** + * Optional. The tools IDs to filter the toolset. + * @return value or {@code null} for none + */ + public java.util.List getToolIds() { + return toolIds; + } + + /** + * Optional. The tools IDs to filter the toolset. + * @param toolIds toolIds or {@code null} for none + */ + public AgentAgentToolset setToolIds(java.util.List toolIds) { + this.toolIds = toolIds; + return this; + } + + /** + * Required. The resource name of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @return value or {@code null} for none + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The resource name of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param toolset toolset or {@code null} for none + */ + public AgentAgentToolset setToolset(java.lang.String toolset) { + this.toolset = toolset; + return this; + } + + @Override + public AgentAgentToolset set(String fieldName, Object value) { + return (AgentAgentToolset) super.set(fieldName, value); + } + + @Override + public AgentAgentToolset clone() { + return (AgentAgentToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentLlmAgent.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentLlmAgent.java new file mode 100644 index 00000000000..957cf8733b4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentLlmAgent.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Default agent type. The agent uses instructions and callbacks specified in the agent to perform + * the task using a large language model. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentLlmAgent extends com.google.api.client.json.GenericJson { + + @Override + public AgentLlmAgent set(String fieldName, Object value) { + return (AgentLlmAgent) super.set(fieldName, value); + } + + @Override + public AgentLlmAgent clone() { + return (AgentLlmAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentRemoteDialogflowAgent.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentRemoteDialogflowAgent.java new file mode 100644 index 00000000000..e39aa7f550f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentRemoteDialogflowAgent.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The agent which will transfer execution to a remote [Dialogflow + * CX](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) agent. The Dialogflow agent + * will process subsequent user queries until the session ends or flow ends, and the control is + * transferred back to the parent CES agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentRemoteDialogflowAgent extends com.google.api.client.json.GenericJson { + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environmentId; + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String flowId; + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map inputVariableMapping; + + /** + * Optional. The mapping of the Dialogflow session parameters names to the app variables names to + * be sent back to the CES agent after the Dialogflow agent execution ends. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map outputVariableMapping; + + /** + * Optional. Indicates whether to respect the message-level interruption settings configured in + * the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the + * app-level barge-in settings. * If true: only response messages with [`allow_playback_interrupti + * on`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx. + * v3#text) set to true will be interruptable, all other messages follow the app-level barge-in + * settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean respectResponseInterruptionSettings; + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * Required. The [Dialogflow](https://docs.cloud.google.com/dialogflow/cx/docs/concept/agent) + * agent resource name. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @param agent agent or {@code null} for none + */ + public AgentRemoteDialogflowAgent setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironmentId() { + return environmentId; + } + + /** + * Optional. The environment ID of the Dialogflow agent to be used for the agent execution. If not + * specified, the draft environment will be used. + * @param environmentId environmentId or {@code null} for none + */ + public AgentRemoteDialogflowAgent setEnvironmentId(java.lang.String environmentId) { + this.environmentId = environmentId; + return this; + } + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * @return value or {@code null} for none + */ + public java.lang.String getFlowId() { + return flowId; + } + + /** + * Optional. The flow ID of the flow in the Dialogflow agent. + * @param flowId flowId or {@code null} for none + */ + public AgentRemoteDialogflowAgent setFlowId(java.lang.String flowId) { + this.flowId = flowId; + return this; + } + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * @return value or {@code null} for none + */ + public java.util.Map getInputVariableMapping() { + return inputVariableMapping; + } + + /** + * Optional. The mapping of the app variables names to the Dialogflow session parameters names to + * be sent to the Dialogflow agent as input. + * @param inputVariableMapping inputVariableMapping or {@code null} for none + */ + public AgentRemoteDialogflowAgent setInputVariableMapping(java.util.Map inputVariableMapping) { + this.inputVariableMapping = inputVariableMapping; + return this; + } + + /** + * Optional. The mapping of the Dialogflow session parameters names to the app variables names to + * be sent back to the CES agent after the Dialogflow agent execution ends. + * @return value or {@code null} for none + */ + public java.util.Map getOutputVariableMapping() { + return outputVariableMapping; + } + + /** + * Optional. The mapping of the Dialogflow session parameters names to the app variables names to + * be sent back to the CES agent after the Dialogflow agent execution ends. + * @param outputVariableMapping outputVariableMapping or {@code null} for none + */ + public AgentRemoteDialogflowAgent setOutputVariableMapping(java.util.Map outputVariableMapping) { + this.outputVariableMapping = outputVariableMapping; + return this; + } + + /** + * Optional. Indicates whether to respect the message-level interruption settings configured in + * the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the + * app-level barge-in settings. * If true: only response messages with [`allow_playback_interrupti + * on`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx. + * v3#text) set to true will be interruptable, all other messages follow the app-level barge-in + * settings. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRespectResponseInterruptionSettings() { + return respectResponseInterruptionSettings; + } + + /** + * Optional. Indicates whether to respect the message-level interruption settings configured in + * the Dialogflow agent. * If false: all response messages from the Dialogflow agent follow the + * app-level barge-in settings. * If true: only response messages with [`allow_playback_interrupti + * on`](https://docs.cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx. + * v3#text) set to true will be interruptable, all other messages follow the app-level barge-in + * settings. + * @param respectResponseInterruptionSettings respectResponseInterruptionSettings or {@code null} for none + */ + public AgentRemoteDialogflowAgent setRespectResponseInterruptionSettings(java.lang.Boolean respectResponseInterruptionSettings) { + this.respectResponseInterruptionSettings = respectResponseInterruptionSettings; + return this; + } + + @Override + public AgentRemoteDialogflowAgent set(String fieldName, Object value) { + return (AgentRemoteDialogflowAgent) super.set(fieldName, value); + } + + @Override + public AgentRemoteDialogflowAgent clone() { + return (AgentRemoteDialogflowAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentTransfer.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentTransfer.java new file mode 100644 index 00000000000..7fc69b8caa9 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AgentTransfer.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents an event indicating the transfer of a conversation to a different agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AgentTransfer extends com.google.api.client.json.GenericJson { + + /** + * Output only. Display name of the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String targetAgent; + + /** + * Output only. Display name of the agent. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the agent. + * @param displayName displayName or {@code null} for none + */ + public AgentTransfer setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getTargetAgent() { + return targetAgent; + } + + /** + * Required. The agent to which the conversation is being transferred. The agent will handle the + * conversation from this point forward. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param targetAgent targetAgent or {@code null} for none + */ + public AgentTransfer setTargetAgent(java.lang.String targetAgent) { + this.targetAgent = targetAgent; + return this; + } + + @Override + public AgentTransfer set(String fieldName, Object value) { + return (AgentTransfer) super.set(fieldName, value); + } + + @Override + public AgentTransfer clone() { + return (AgentTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetrics.java new file mode 100644 index 00000000000..ea246225e39 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetrics.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Aggregated metrics for an evaluation or evaluation dataset. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. Aggregated metrics, grouped by app version ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metricsByAppVersion; + + /** + * Output only. Aggregated metrics, grouped by app version ID. + * @return value or {@code null} for none + */ + public java.util.List getMetricsByAppVersion() { + return metricsByAppVersion; + } + + /** + * Output only. Aggregated metrics, grouped by app version ID. + * @param metricsByAppVersion metricsByAppVersion or {@code null} for none + */ + public AggregatedMetrics setMetricsByAppVersion(java.util.List metricsByAppVersion) { + this.metricsByAppVersion = metricsByAppVersion; + return this; + } + + @Override + public AggregatedMetrics set(String fieldName, Object value) { + return (AggregatedMetrics) super.set(fieldName, value); + } + + @Override + public AggregatedMetrics clone() { + return (AggregatedMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsHallucinationMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsHallucinationMetrics.java new file mode 100644 index 00000000000..d5d932207c7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsHallucinationMetrics.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Metrics for hallucination results. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsHallucinationMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The average hallucination score (0 to 1). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float score; + + /** + * Output only. The average hallucination score (0 to 1). + * @return value or {@code null} for none + */ + public java.lang.Float getScore() { + return score; + } + + /** + * Output only. The average hallucination score (0 to 1). + * @param score score or {@code null} for none + */ + public AggregatedMetricsHallucinationMetrics setScore(java.lang.Float score) { + this.score = score; + return this; + } + + @Override + public AggregatedMetricsHallucinationMetrics set(String fieldName, Object value) { + return (AggregatedMetricsHallucinationMetrics) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsHallucinationMetrics clone() { + return (AggregatedMetricsHallucinationMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsMetricsByAppVersion.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsMetricsByAppVersion.java new file mode 100644 index 00000000000..f86d31d9b8b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsMetricsByAppVersion.java @@ -0,0 +1,265 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Metrics aggregated per app version. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsMetricsByAppVersion extends com.google.api.client.json.GenericJson { + + /** + * Output only. The app version ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersionId; + + /** + * Output only. The number of times the evaluation failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failCount; + + /** + * Output only. Metrics for hallucination within this app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List hallucinationMetrics; + + static { + // hack to force ProGuard to consider AggregatedMetricsHallucinationMetrics 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(AggregatedMetricsHallucinationMetrics.class); + } + + /** + * Output only. Metrics aggregated per turn within this app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List metricsByTurn; + + /** + * Output only. The number of times the evaluation passed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer passCount; + + /** + * Output only. Metrics for semantic similarity within this app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List semanticSimilarityMetrics; + + /** + * Output only. Metrics for tool call latency within this app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCallLatencyMetrics; + + /** + * Output only. Metrics for each tool within this app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolMetrics; + + /** + * Output only. Metrics for turn latency within this app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List turnLatencyMetrics; + + /** + * Output only. The app version ID. + * @return value or {@code null} for none + */ + public java.lang.String getAppVersionId() { + return appVersionId; + } + + /** + * Output only. The app version ID. + * @param appVersionId appVersionId or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setAppVersionId(java.lang.String appVersionId) { + this.appVersionId = appVersionId; + return this; + } + + /** + * Output only. The number of times the evaluation failed. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailCount() { + return failCount; + } + + /** + * Output only. The number of times the evaluation failed. + * @param failCount failCount or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setFailCount(java.lang.Integer failCount) { + this.failCount = failCount; + return this; + } + + /** + * Output only. Metrics for hallucination within this app version. + * @return value or {@code null} for none + */ + public java.util.List getHallucinationMetrics() { + return hallucinationMetrics; + } + + /** + * Output only. Metrics for hallucination within this app version. + * @param hallucinationMetrics hallucinationMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setHallucinationMetrics(java.util.List hallucinationMetrics) { + this.hallucinationMetrics = hallucinationMetrics; + return this; + } + + /** + * Output only. Metrics aggregated per turn within this app version. + * @return value or {@code null} for none + */ + public java.util.List getMetricsByTurn() { + return metricsByTurn; + } + + /** + * Output only. Metrics aggregated per turn within this app version. + * @param metricsByTurn metricsByTurn or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setMetricsByTurn(java.util.List metricsByTurn) { + this.metricsByTurn = metricsByTurn; + return this; + } + + /** + * Output only. The number of times the evaluation passed. + * @return value or {@code null} for none + */ + public java.lang.Integer getPassCount() { + return passCount; + } + + /** + * Output only. The number of times the evaluation passed. + * @param passCount passCount or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setPassCount(java.lang.Integer passCount) { + this.passCount = passCount; + return this; + } + + /** + * Output only. Metrics for semantic similarity within this app version. + * @return value or {@code null} for none + */ + public java.util.List getSemanticSimilarityMetrics() { + return semanticSimilarityMetrics; + } + + /** + * Output only. Metrics for semantic similarity within this app version. + * @param semanticSimilarityMetrics semanticSimilarityMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setSemanticSimilarityMetrics(java.util.List semanticSimilarityMetrics) { + this.semanticSimilarityMetrics = semanticSimilarityMetrics; + return this; + } + + /** + * Output only. Metrics for tool call latency within this app version. + * @return value or {@code null} for none + */ + public java.util.List getToolCallLatencyMetrics() { + return toolCallLatencyMetrics; + } + + /** + * Output only. Metrics for tool call latency within this app version. + * @param toolCallLatencyMetrics toolCallLatencyMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setToolCallLatencyMetrics(java.util.List toolCallLatencyMetrics) { + this.toolCallLatencyMetrics = toolCallLatencyMetrics; + return this; + } + + /** + * Output only. Metrics for each tool within this app version. + * @return value or {@code null} for none + */ + public java.util.List getToolMetrics() { + return toolMetrics; + } + + /** + * Output only. Metrics for each tool within this app version. + * @param toolMetrics toolMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setToolMetrics(java.util.List toolMetrics) { + this.toolMetrics = toolMetrics; + return this; + } + + /** + * Output only. Metrics for turn latency within this app version. + * @return value or {@code null} for none + */ + public java.util.List getTurnLatencyMetrics() { + return turnLatencyMetrics; + } + + /** + * Output only. Metrics for turn latency within this app version. + * @param turnLatencyMetrics turnLatencyMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByAppVersion setTurnLatencyMetrics(java.util.List turnLatencyMetrics) { + this.turnLatencyMetrics = turnLatencyMetrics; + return this; + } + + @Override + public AggregatedMetricsMetricsByAppVersion set(String fieldName, Object value) { + return (AggregatedMetricsMetricsByAppVersion) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsMetricsByAppVersion clone() { + return (AggregatedMetricsMetricsByAppVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsMetricsByTurn.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsMetricsByTurn.java new file mode 100644 index 00000000000..c71dbb704ee --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsMetricsByTurn.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Metrics aggregated 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsMetricsByTurn extends com.google.api.client.json.GenericJson { + + /** + * Output only. Metrics for hallucination within this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List hallucinationMetrics; + + static { + // hack to force ProGuard to consider AggregatedMetricsHallucinationMetrics 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(AggregatedMetricsHallucinationMetrics.class); + } + + /** + * Output only. Metrics for semantic similarity within this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List semanticSimilarityMetrics; + + /** + * Output only. Metrics for tool call latency within this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCallLatencyMetrics; + + /** + * Output only. Metrics for each tool within this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolMetrics; + + /** + * Output only. The turn index (0-based). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer turnIndex; + + /** + * Output only. Metrics for turn latency within this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List turnLatencyMetrics; + + /** + * Output only. Metrics for hallucination within this turn. + * @return value or {@code null} for none + */ + public java.util.List getHallucinationMetrics() { + return hallucinationMetrics; + } + + /** + * Output only. Metrics for hallucination within this turn. + * @param hallucinationMetrics hallucinationMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByTurn setHallucinationMetrics(java.util.List hallucinationMetrics) { + this.hallucinationMetrics = hallucinationMetrics; + return this; + } + + /** + * Output only. Metrics for semantic similarity within this turn. + * @return value or {@code null} for none + */ + public java.util.List getSemanticSimilarityMetrics() { + return semanticSimilarityMetrics; + } + + /** + * Output only. Metrics for semantic similarity within this turn. + * @param semanticSimilarityMetrics semanticSimilarityMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByTurn setSemanticSimilarityMetrics(java.util.List semanticSimilarityMetrics) { + this.semanticSimilarityMetrics = semanticSimilarityMetrics; + return this; + } + + /** + * Output only. Metrics for tool call latency within this turn. + * @return value or {@code null} for none + */ + public java.util.List getToolCallLatencyMetrics() { + return toolCallLatencyMetrics; + } + + /** + * Output only. Metrics for tool call latency within this turn. + * @param toolCallLatencyMetrics toolCallLatencyMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByTurn setToolCallLatencyMetrics(java.util.List toolCallLatencyMetrics) { + this.toolCallLatencyMetrics = toolCallLatencyMetrics; + return this; + } + + /** + * Output only. Metrics for each tool within this turn. + * @return value or {@code null} for none + */ + public java.util.List getToolMetrics() { + return toolMetrics; + } + + /** + * Output only. Metrics for each tool within this turn. + * @param toolMetrics toolMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByTurn setToolMetrics(java.util.List toolMetrics) { + this.toolMetrics = toolMetrics; + return this; + } + + /** + * Output only. The turn index (0-based). + * @return value or {@code null} for none + */ + public java.lang.Integer getTurnIndex() { + return turnIndex; + } + + /** + * Output only. The turn index (0-based). + * @param turnIndex turnIndex or {@code null} for none + */ + public AggregatedMetricsMetricsByTurn setTurnIndex(java.lang.Integer turnIndex) { + this.turnIndex = turnIndex; + return this; + } + + /** + * Output only. Metrics for turn latency within this turn. + * @return value or {@code null} for none + */ + public java.util.List getTurnLatencyMetrics() { + return turnLatencyMetrics; + } + + /** + * Output only. Metrics for turn latency within this turn. + * @param turnLatencyMetrics turnLatencyMetrics or {@code null} for none + */ + public AggregatedMetricsMetricsByTurn setTurnLatencyMetrics(java.util.List turnLatencyMetrics) { + this.turnLatencyMetrics = turnLatencyMetrics; + return this; + } + + @Override + public AggregatedMetricsMetricsByTurn set(String fieldName, Object value) { + return (AggregatedMetricsMetricsByTurn) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsMetricsByTurn clone() { + return (AggregatedMetricsMetricsByTurn) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsSemanticSimilarityMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsSemanticSimilarityMetrics.java new file mode 100644 index 00000000000..11b910679fd --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsSemanticSimilarityMetrics.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Metrics for semantic similarity results. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsSemanticSimilarityMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The average semantic similarity score (0-4). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float score; + + /** + * Output only. The average semantic similarity score (0-4). + * @return value or {@code null} for none + */ + public java.lang.Float getScore() { + return score; + } + + /** + * Output only. The average semantic similarity score (0-4). + * @param score score or {@code null} for none + */ + public AggregatedMetricsSemanticSimilarityMetrics setScore(java.lang.Float score) { + this.score = score; + return this; + } + + @Override + public AggregatedMetricsSemanticSimilarityMetrics set(String fieldName, Object value) { + return (AggregatedMetricsSemanticSimilarityMetrics) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsSemanticSimilarityMetrics clone() { + return (AggregatedMetricsSemanticSimilarityMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsToolCallLatencyMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsToolCallLatencyMetrics.java new file mode 100644 index 00000000000..ffb45b5c8c4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsToolCallLatencyMetrics.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.ces.v1beta.model; + +/** + * Metrics for tool call latency. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsToolCallLatencyMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The average latency of the tool calls. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String averageLatency; + + /** + * Output only. The name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Output only. The average latency of the tool calls. + * @return value or {@code null} for none + */ + public String getAverageLatency() { + return averageLatency; + } + + /** + * Output only. The average latency of the tool calls. + * @param averageLatency averageLatency or {@code null} for none + */ + public AggregatedMetricsToolCallLatencyMetrics setAverageLatency(String averageLatency) { + this.averageLatency = averageLatency; + return this; + } + + /** + * Output only. The name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Output only. The name of the tool. + * @param tool tool or {@code null} for none + */ + public AggregatedMetricsToolCallLatencyMetrics setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + @Override + public AggregatedMetricsToolCallLatencyMetrics set(String fieldName, Object value) { + return (AggregatedMetricsToolCallLatencyMetrics) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsToolCallLatencyMetrics clone() { + return (AggregatedMetricsToolCallLatencyMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsToolMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsToolMetrics.java new file mode 100644 index 00000000000..942bdb93773 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsToolMetrics.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Metrics for a single tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsToolMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of times the tool failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failCount; + + /** + * Output only. The number of times the tool passed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer passCount; + + /** + * Output only. The name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Output only. The number of times the tool failed. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailCount() { + return failCount; + } + + /** + * Output only. The number of times the tool failed. + * @param failCount failCount or {@code null} for none + */ + public AggregatedMetricsToolMetrics setFailCount(java.lang.Integer failCount) { + this.failCount = failCount; + return this; + } + + /** + * Output only. The number of times the tool passed. + * @return value or {@code null} for none + */ + public java.lang.Integer getPassCount() { + return passCount; + } + + /** + * Output only. The number of times the tool passed. + * @param passCount passCount or {@code null} for none + */ + public AggregatedMetricsToolMetrics setPassCount(java.lang.Integer passCount) { + this.passCount = passCount; + return this; + } + + /** + * Output only. The name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Output only. The name of the tool. + * @param tool tool or {@code null} for none + */ + public AggregatedMetricsToolMetrics setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + @Override + public AggregatedMetricsToolMetrics set(String fieldName, Object value) { + return (AggregatedMetricsToolMetrics) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsToolMetrics clone() { + return (AggregatedMetricsToolMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsTurnLatencyMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsTurnLatencyMetrics.java new file mode 100644 index 00000000000..c4d510a55e7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AggregatedMetricsTurnLatencyMetrics.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Metrics for turn latency. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AggregatedMetricsTurnLatencyMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The average latency of the turns. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String averageLatency; + + /** + * Output only. The average latency of the turns. + * @return value or {@code null} for none + */ + public String getAverageLatency() { + return averageLatency; + } + + /** + * Output only. The average latency of the turns. + * @param averageLatency averageLatency or {@code null} for none + */ + public AggregatedMetricsTurnLatencyMetrics setAverageLatency(String averageLatency) { + this.averageLatency = averageLatency; + return this; + } + + @Override + public AggregatedMetricsTurnLatencyMetrics set(String fieldName, Object value) { + return (AggregatedMetricsTurnLatencyMetrics) super.set(fieldName, value); + } + + @Override + public AggregatedMetricsTurnLatencyMetrics clone() { + return (AggregatedMetricsTurnLatencyMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AmbientSoundConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AmbientSoundConfig.java new file mode 100644 index 00000000000..855382f6254 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AmbientSoundConfig.java @@ -0,0 +1,173 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for the ambient sound to be played with the synthesized agent response, to enhance + * the naturalness of 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AmbientSoundConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prebuiltAmbientNoise; + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prebuiltAmbientSound; + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double volumeGainDb; + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. Ambient noise as a mono-channel, 16kHz WAV file stored in [Cloud + * Storage](https://cloud.google.com/storage). Note: Please make sure the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com` has `storage.objects.get` permission to the Cloud + * Storage object. + * @param gcsUri gcsUri or {@code null} for none + */ + public AmbientSoundConfig setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * @return value or {@code null} for none + */ + public java.lang.String getPrebuiltAmbientNoise() { + return prebuiltAmbientNoise; + } + + /** + * Optional. Deprecated: `prebuilt_ambient_noise` is deprecated in favor of + * `prebuilt_ambient_sound`. + * @param prebuiltAmbientNoise prebuiltAmbientNoise or {@code null} for none + */ + public AmbientSoundConfig setPrebuiltAmbientNoise(java.lang.String prebuiltAmbientNoise) { + this.prebuiltAmbientNoise = prebuiltAmbientNoise; + return this; + } + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * @return value or {@code null} for none + */ + public java.lang.String getPrebuiltAmbientSound() { + return prebuiltAmbientSound; + } + + /** + * Optional. Name of the prebuilt ambient sound. Valid values are: - "coffee_shop" - "keyboard" - + * "keypad" - "hum" - "office_1" - "office_2" - "office_3" - "room_1" - "room_2" - "room_3" - + * "room_4" - "room_5" - "air_conditioner" + * @param prebuiltAmbientSound prebuiltAmbientSound or {@code null} for none + */ + public AmbientSoundConfig setPrebuiltAmbientSound(java.lang.String prebuiltAmbientSound) { + this.prebuiltAmbientSound = prebuiltAmbientSound; + return this; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * @return value or {@code null} for none + */ + public java.lang.Double getVolumeGainDb() { + return volumeGainDb; + } + + /** + * Optional. Volume gain (in dB) of the normal native volume supported by ambient noise, in the + * range [-96.0, 16.0]. If unset, or set to a value of 0.0 (dB), will play at normal native signal + * amplitude. A value of -6.0 (dB) will play at approximately half the amplitude of the normal + * native signal amplitude. A value of +6.0 (dB) will play at approximately twice the amplitude of + * the normal native signal amplitude. We strongly recommend not to exceed +10 (dB) as there's + * usually no effective increase in loudness for any value greater than that. + * @param volumeGainDb volumeGainDb or {@code null} for none + */ + public AmbientSoundConfig setVolumeGainDb(java.lang.Double volumeGainDb) { + this.volumeGainDb = volumeGainDb; + return this; + } + + @Override + public AmbientSoundConfig set(String fieldName, Object value) { + return (AmbientSoundConfig) super.set(fieldName, value); + } + + @Override + public AmbientSoundConfig clone() { + return (AmbientSoundConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ApiAuthentication.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ApiAuthentication.java new file mode 100644 index 00000000000..873b558fa39 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ApiAuthentication.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Authentication information required for API calls. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiAuthentication extends com.google.api.client.json.GenericJson { + + /** + * Optional. Config for API key auth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiKeyConfig apiKeyConfig; + + /** + * Optional. Config for bearer token auth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BearerTokenConfig bearerTokenConfig; + + /** + * Optional. Config for OAuth. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OAuthConfig oauthConfig; + + /** + * Optional. Config for service account authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAccountAuthConfig serviceAccountAuthConfig; + + /** + * Optional. Config for ID token auth generated from CES service agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig; + + /** + * Optional. Config for API key auth. + * @return value or {@code null} for none + */ + public ApiKeyConfig getApiKeyConfig() { + return apiKeyConfig; + } + + /** + * Optional. Config for API key auth. + * @param apiKeyConfig apiKeyConfig or {@code null} for none + */ + public ApiAuthentication setApiKeyConfig(ApiKeyConfig apiKeyConfig) { + this.apiKeyConfig = apiKeyConfig; + return this; + } + + /** + * Optional. Config for bearer token auth. + * @return value or {@code null} for none + */ + public BearerTokenConfig getBearerTokenConfig() { + return bearerTokenConfig; + } + + /** + * Optional. Config for bearer token auth. + * @param bearerTokenConfig bearerTokenConfig or {@code null} for none + */ + public ApiAuthentication setBearerTokenConfig(BearerTokenConfig bearerTokenConfig) { + this.bearerTokenConfig = bearerTokenConfig; + return this; + } + + /** + * Optional. Config for OAuth. + * @return value or {@code null} for none + */ + public OAuthConfig getOauthConfig() { + return oauthConfig; + } + + /** + * Optional. Config for OAuth. + * @param oauthConfig oauthConfig or {@code null} for none + */ + public ApiAuthentication setOauthConfig(OAuthConfig oauthConfig) { + this.oauthConfig = oauthConfig; + return this; + } + + /** + * Optional. Config for service account authentication. + * @return value or {@code null} for none + */ + public ServiceAccountAuthConfig getServiceAccountAuthConfig() { + return serviceAccountAuthConfig; + } + + /** + * Optional. Config for service account authentication. + * @param serviceAccountAuthConfig serviceAccountAuthConfig or {@code null} for none + */ + public ApiAuthentication setServiceAccountAuthConfig(ServiceAccountAuthConfig serviceAccountAuthConfig) { + this.serviceAccountAuthConfig = serviceAccountAuthConfig; + return this; + } + + /** + * Optional. Config for ID token auth generated from CES service agent. + * @return value or {@code null} for none + */ + public ServiceAgentIdTokenAuthConfig getServiceAgentIdTokenAuthConfig() { + return serviceAgentIdTokenAuthConfig; + } + + /** + * Optional. Config for ID token auth generated from CES service agent. + * @param serviceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig or {@code null} for none + */ + public ApiAuthentication setServiceAgentIdTokenAuthConfig(ServiceAgentIdTokenAuthConfig serviceAgentIdTokenAuthConfig) { + this.serviceAgentIdTokenAuthConfig = serviceAgentIdTokenAuthConfig; + return this; + } + + @Override + public ApiAuthentication set(String fieldName, Object value) { + return (ApiAuthentication) super.set(fieldName, value); + } + + @Override + public ApiAuthentication clone() { + return (ApiAuthentication) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ApiKeyConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ApiKeyConfig.java new file mode 100644 index 00000000000..435de669bbf --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ApiKeyConfig.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configurations for authentication with API key. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ApiKeyConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String apiKeySecretVersion; + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String keyName; + + /** + * Required. Key location in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String requestLocation; + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getApiKeySecretVersion() { + return apiKeySecretVersion; + } + + /** + * Required. The name of the SecretManager secret version resource storing the API key. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param apiKeySecretVersion apiKeySecretVersion or {@code null} for none + */ + public ApiKeyConfig setApiKeySecretVersion(java.lang.String apiKeySecretVersion) { + this.apiKeySecretVersion = apiKeySecretVersion; + return this; + } + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * @return value or {@code null} for none + */ + public java.lang.String getKeyName() { + return keyName; + } + + /** + * Required. The parameter name or the header name of the API key. E.g., If the API request is + * "https://example.com/act?X-Api-Key=", "X-Api-Key" would be the parameter name. + * @param keyName keyName or {@code null} for none + */ + public ApiKeyConfig setKeyName(java.lang.String keyName) { + this.keyName = keyName; + return this; + } + + /** + * Required. Key location in the request. + * @return value or {@code null} for none + */ + public java.lang.String getRequestLocation() { + return requestLocation; + } + + /** + * Required. Key location in the request. + * @param requestLocation requestLocation or {@code null} for none + */ + public ApiKeyConfig setRequestLocation(java.lang.String requestLocation) { + this.requestLocation = requestLocation; + return this; + } + + @Override + public ApiKeyConfig set(String fieldName, Object value) { + return (ApiKeyConfig) super.set(fieldName, value); + } + + @Override + public ApiKeyConfig clone() { + return (ApiKeyConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/App.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/App.java new file mode 100644 index 00000000000..a030bb69c3a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/App.java @@ -0,0 +1,720 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An app serves as a top-level container for a group of agents, including the root agent and its + * sub-agents, along with their associated configurations. These agents work together to achieve + * specific goals within the app's context. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class App extends com.google.api.client.json.GenericJson { + + /** + * Optional. Audio processing configuration of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioProcessingConfig audioProcessingConfig; + + /** + * Optional. The default client certificate settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClientCertificateSettings clientCertificateSettings; + + /** + * Output only. Timestamp when the app was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The data store settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreSettings dataStoreSettings; + + /** + * Optional. The default channel profile used by the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfile defaultChannelProfile; + + /** + * Output only. Number of deployments in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer deploymentCount; + + /** + * Optional. Human-readable description of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The evaluation thresholds for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholds evaluationMetricsThresholds; + + /** + * Optional. The evaluation personas for the app. This field is used to define the personas that + * can be used for evaluation. Maximum of 30 personas can be defined. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationPersonas; + + /** + * Optional. The evaluation settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationSettings evaluationSettings; + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String globalInstruction; + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + /** + * Optional. Language settings of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LanguageSettings languageSettings; + + /** + * Optional. Indicates whether the app is locked for changes. If the app is locked, modifications + * to the app resources will be rejected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean locked; + + /** + * Optional. Logging settings of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LoggingSettings loggingSettings; + + /** + * Optional. Metadata about the app. This field can be used to store additional information + * relevant to the app's details or intended usages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Optional. The default LLM model settings for the app. Individual resources (e.g. agents, + * guardrails) can override these configurations as needed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Whether the app is pinned in the app list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean pinned; + + /** + * Output only. The declarations of predefined variables for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List predefinedVariableDeclarations; + + /** + * Optional. The root agent is the entry point of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rootAgent; + + /** + * Optional. TimeZone settings of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TimeZoneSettings timeZoneSettings; + + /** + * Optional. The tool execution mode for the app. If not provided, will default to PARALLEL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolExecutionMode; + + /** + * Output only. Timestamp when the app was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The declarations of the variables. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List variableDeclarations; + + /** + * Optional. Audio processing configuration of the app. + * @return value or {@code null} for none + */ + public AudioProcessingConfig getAudioProcessingConfig() { + return audioProcessingConfig; + } + + /** + * Optional. Audio processing configuration of the app. + * @param audioProcessingConfig audioProcessingConfig or {@code null} for none + */ + public App setAudioProcessingConfig(AudioProcessingConfig audioProcessingConfig) { + this.audioProcessingConfig = audioProcessingConfig; + return this; + } + + /** + * Optional. The default client certificate settings for the app. + * @return value or {@code null} for none + */ + public ClientCertificateSettings getClientCertificateSettings() { + return clientCertificateSettings; + } + + /** + * Optional. The default client certificate settings for the app. + * @param clientCertificateSettings clientCertificateSettings or {@code null} for none + */ + public App setClientCertificateSettings(ClientCertificateSettings clientCertificateSettings) { + this.clientCertificateSettings = clientCertificateSettings; + return this; + } + + /** + * Output only. Timestamp when the app was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the app was created. + * @param createTime createTime or {@code null} for none + */ + public App setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The data store settings for the app. + * @return value or {@code null} for none + */ + public DataStoreSettings getDataStoreSettings() { + return dataStoreSettings; + } + + /** + * Optional. The data store settings for the app. + * @param dataStoreSettings dataStoreSettings or {@code null} for none + */ + public App setDataStoreSettings(DataStoreSettings dataStoreSettings) { + this.dataStoreSettings = dataStoreSettings; + return this; + } + + /** + * Optional. The default channel profile used by the app. + * @return value or {@code null} for none + */ + public ChannelProfile getDefaultChannelProfile() { + return defaultChannelProfile; + } + + /** + * Optional. The default channel profile used by the app. + * @param defaultChannelProfile defaultChannelProfile or {@code null} for none + */ + public App setDefaultChannelProfile(ChannelProfile defaultChannelProfile) { + this.defaultChannelProfile = defaultChannelProfile; + return this; + } + + /** + * Output only. Number of deployments in the app. + * @return value or {@code null} for none + */ + public java.lang.Integer getDeploymentCount() { + return deploymentCount; + } + + /** + * Output only. Number of deployments in the app. + * @param deploymentCount deploymentCount or {@code null} for none + */ + public App setDeploymentCount(java.lang.Integer deploymentCount) { + this.deploymentCount = deploymentCount; + return this; + } + + /** + * Optional. Human-readable description of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the app. + * @param description description or {@code null} for none + */ + public App setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the app. + * @param displayName displayName or {@code null} for none + */ + public App setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public App setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The evaluation thresholds for the app. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholds getEvaluationMetricsThresholds() { + return evaluationMetricsThresholds; + } + + /** + * Optional. The evaluation thresholds for the app. + * @param evaluationMetricsThresholds evaluationMetricsThresholds or {@code null} for none + */ + public App setEvaluationMetricsThresholds(EvaluationMetricsThresholds evaluationMetricsThresholds) { + this.evaluationMetricsThresholds = evaluationMetricsThresholds; + return this; + } + + /** + * Optional. The evaluation personas for the app. This field is used to define the personas that + * can be used for evaluation. Maximum of 30 personas can be defined. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationPersonas() { + return evaluationPersonas; + } + + /** + * Optional. The evaluation personas for the app. This field is used to define the personas that + * can be used for evaluation. Maximum of 30 personas can be defined. + * @param evaluationPersonas evaluationPersonas or {@code null} for none + */ + public App setEvaluationPersonas(java.util.List evaluationPersonas) { + this.evaluationPersonas = evaluationPersonas; + return this; + } + + /** + * Optional. The evaluation settings for the app. + * @return value or {@code null} for none + */ + public EvaluationSettings getEvaluationSettings() { + return evaluationSettings; + } + + /** + * Optional. The evaluation settings for the app. + * @param evaluationSettings evaluationSettings or {@code null} for none + */ + public App setEvaluationSettings(EvaluationSettings evaluationSettings) { + this.evaluationSettings = evaluationSettings; + return this; + } + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * @return value or {@code null} for none + */ + public java.lang.String getGlobalInstruction() { + return globalInstruction; + } + + /** + * Optional. Instructions for all the agents in the app. You can use this instruction to set up a + * stable identity or personality across all the agents. + * @param globalInstruction globalInstruction or {@code null} for none + */ + public App setGlobalInstruction(java.lang.String globalInstruction) { + this.globalInstruction = globalInstruction; + return this; + } + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * Optional. List of guardrails for the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param guardrails guardrails or {@code null} for none + */ + public App setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * Optional. Language settings of the app. + * @return value or {@code null} for none + */ + public LanguageSettings getLanguageSettings() { + return languageSettings; + } + + /** + * Optional. Language settings of the app. + * @param languageSettings languageSettings or {@code null} for none + */ + public App setLanguageSettings(LanguageSettings languageSettings) { + this.languageSettings = languageSettings; + return this; + } + + /** + * Optional. Indicates whether the app is locked for changes. If the app is locked, modifications + * to the app resources will be rejected. + * @return value or {@code null} for none + */ + public java.lang.Boolean getLocked() { + return locked; + } + + /** + * Optional. Indicates whether the app is locked for changes. If the app is locked, modifications + * to the app resources will be rejected. + * @param locked locked or {@code null} for none + */ + public App setLocked(java.lang.Boolean locked) { + this.locked = locked; + return this; + } + + /** + * Optional. Logging settings of the app. + * @return value or {@code null} for none + */ + public LoggingSettings getLoggingSettings() { + return loggingSettings; + } + + /** + * Optional. Logging settings of the app. + * @param loggingSettings loggingSettings or {@code null} for none + */ + public App setLoggingSettings(LoggingSettings loggingSettings) { + this.loggingSettings = loggingSettings; + return this; + } + + /** + * Optional. Metadata about the app. This field can be used to store additional information + * relevant to the app's details or intended usages. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Metadata about the app. This field can be used to store additional information + * relevant to the app's details or intended usages. + * @param metadata metadata or {@code null} for none + */ + public App setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Optional. The default LLM model settings for the app. Individual resources (e.g. agents, + * guardrails) can override these configurations as needed. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. The default LLM model settings for the app. Individual resources (e.g. agents, + * guardrails) can override these configurations as needed. + * @param modelSettings modelSettings or {@code null} for none + */ + public App setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param name name or {@code null} for none + */ + public App setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Whether the app is pinned in the app list. + * @return value or {@code null} for none + */ + public java.lang.Boolean getPinned() { + return pinned; + } + + /** + * Optional. Whether the app is pinned in the app list. + * @param pinned pinned or {@code null} for none + */ + public App setPinned(java.lang.Boolean pinned) { + this.pinned = pinned; + return this; + } + + /** + * Output only. The declarations of predefined variables for the app. + * @return value or {@code null} for none + */ + public java.util.List getPredefinedVariableDeclarations() { + return predefinedVariableDeclarations; + } + + /** + * Output only. The declarations of predefined variables for the app. + * @param predefinedVariableDeclarations predefinedVariableDeclarations or {@code null} for none + */ + public App setPredefinedVariableDeclarations(java.util.List predefinedVariableDeclarations) { + this.predefinedVariableDeclarations = predefinedVariableDeclarations; + return this; + } + + /** + * Optional. The root agent is the entry point of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getRootAgent() { + return rootAgent; + } + + /** + * Optional. The root agent is the entry point of the app. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param rootAgent rootAgent or {@code null} for none + */ + public App setRootAgent(java.lang.String rootAgent) { + this.rootAgent = rootAgent; + return this; + } + + /** + * Optional. TimeZone settings of the app. + * @return value or {@code null} for none + */ + public TimeZoneSettings getTimeZoneSettings() { + return timeZoneSettings; + } + + /** + * Optional. TimeZone settings of the app. + * @param timeZoneSettings timeZoneSettings or {@code null} for none + */ + public App setTimeZoneSettings(TimeZoneSettings timeZoneSettings) { + this.timeZoneSettings = timeZoneSettings; + return this; + } + + /** + * Optional. The tool execution mode for the app. If not provided, will default to PARALLEL. + * @return value or {@code null} for none + */ + public java.lang.String getToolExecutionMode() { + return toolExecutionMode; + } + + /** + * Optional. The tool execution mode for the app. If not provided, will default to PARALLEL. + * @param toolExecutionMode toolExecutionMode or {@code null} for none + */ + public App setToolExecutionMode(java.lang.String toolExecutionMode) { + this.toolExecutionMode = toolExecutionMode; + return this; + } + + /** + * Output only. Timestamp when the app was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the app was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public App setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. The declarations of the variables. + * @return value or {@code null} for none + */ + public java.util.List getVariableDeclarations() { + return variableDeclarations; + } + + /** + * Optional. The declarations of the variables. + * @param variableDeclarations variableDeclarations or {@code null} for none + */ + public App setVariableDeclarations(java.util.List variableDeclarations) { + this.variableDeclarations = variableDeclarations; + return this; + } + + @Override + public App set(String fieldName, Object value) { + return (App) super.set(fieldName, value); + } + + @Override + public App clone() { + return (App) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppSnapshot.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppSnapshot.java new file mode 100644 index 00000000000..3da505be1f4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppSnapshot.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A snapshot of the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppSnapshot extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of agents in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agents; + + static { + // hack to force ProGuard to consider Agent 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(Agent.class); + } + + /** + * Optional. The basic settings for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private App app; + + /** + * Optional. List of examples in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List examples; + + /** + * Optional. List of guardrails in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + /** + * Optional. List of tools in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Optional. List of toolsets in the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolsets; + + /** + * Optional. List of agents in the app. + * @return value or {@code null} for none + */ + public java.util.List getAgents() { + return agents; + } + + /** + * Optional. List of agents in the app. + * @param agents agents or {@code null} for none + */ + public AppSnapshot setAgents(java.util.List agents) { + this.agents = agents; + return this; + } + + /** + * Optional. The basic settings for the app. + * @return value or {@code null} for none + */ + public App getApp() { + return app; + } + + /** + * Optional. The basic settings for the app. + * @param app app or {@code null} for none + */ + public AppSnapshot setApp(App app) { + this.app = app; + return this; + } + + /** + * Optional. List of examples in the app. + * @return value or {@code null} for none + */ + public java.util.List getExamples() { + return examples; + } + + /** + * Optional. List of examples in the app. + * @param examples examples or {@code null} for none + */ + public AppSnapshot setExamples(java.util.List examples) { + this.examples = examples; + return this; + } + + /** + * Optional. List of guardrails in the app. + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * Optional. List of guardrails in the app. + * @param guardrails guardrails or {@code null} for none + */ + public AppSnapshot setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * Optional. List of tools in the app. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * Optional. List of tools in the app. + * @param tools tools or {@code null} for none + */ + public AppSnapshot setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + /** + * Optional. List of toolsets in the app. + * @return value or {@code null} for none + */ + public java.util.List getToolsets() { + return toolsets; + } + + /** + * Optional. List of toolsets in the app. + * @param toolsets toolsets or {@code null} for none + */ + public AppSnapshot setToolsets(java.util.List toolsets) { + this.toolsets = toolsets; + return this; + } + + @Override + public AppSnapshot set(String fieldName, Object value) { + return (AppSnapshot) super.set(fieldName, value); + } + + @Override + public AppSnapshot clone() { + return (AppSnapshot) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppVariableDeclaration.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppVariableDeclaration.java new file mode 100644 index 00000000000..18e71a3d87b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppVariableDeclaration.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Defines the structure and metadata for a variable. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppVariableDeclaration extends com.google.api.client.json.GenericJson { + + /** + * Required. The description of the variable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The schema of the variable. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema schema; + + /** + * Required. The description of the variable. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Required. The description of the variable. + * @param description description or {@code null} for none + */ + public AppVariableDeclaration setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the variable. The name must start with a letter or underscore and contain + * only letters, numbers, or underscores. + * @param name name or {@code null} for none + */ + public AppVariableDeclaration setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The schema of the variable. + * @return value or {@code null} for none + */ + public Schema getSchema() { + return schema; + } + + /** + * Required. The schema of the variable. + * @param schema schema or {@code null} for none + */ + public AppVariableDeclaration setSchema(Schema schema) { + this.schema = schema; + return this; + } + + @Override + public AppVariableDeclaration set(String fieldName, Object value) { + return (AppVariableDeclaration) super.set(fieldName, value); + } + + @Override + public AppVariableDeclaration clone() { + return (AppVariableDeclaration) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppVersion.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppVersion.java new file mode 100644 index 00000000000..f6e509f6a60 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AppVersion.java @@ -0,0 +1,218 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * In Customer Engagement Suite (CES), an app version is a snapshot of the app at a specific point + * in time. It is immutable and cannot be modified once created. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AppVersion extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the app version was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. Email of the user who created the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String creator; + + /** + * Optional. The description of the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The display name of the app version. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The snapshot of the app when the version is created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppSnapshot snapshot; + + /** + * Output only. Timestamp when the app version was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the app version was created. + * @param createTime createTime or {@code null} for none + */ + public AppVersion setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. Email of the user who created the app version. + * @return value or {@code null} for none + */ + public java.lang.String getCreator() { + return creator; + } + + /** + * Output only. Email of the user who created the app version. + * @param creator creator or {@code null} for none + */ + public AppVersion setCreator(java.lang.String creator) { + this.creator = creator; + return this; + } + + /** + * Optional. The description of the app version. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the app version. + * @param description description or {@code null} for none + */ + public AppVersion setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The display name of the app version. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the app version. + * @param displayName displayName or {@code null} for none + */ + public AppVersion setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public AppVersion setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the app version. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param name name or {@code null} for none + */ + public AppVersion setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The snapshot of the app when the version is created. + * @return value or {@code null} for none + */ + public AppSnapshot getSnapshot() { + return snapshot; + } + + /** + * Output only. The snapshot of the app when the version is created. + * @param snapshot snapshot or {@code null} for none + */ + public AppVersion setSnapshot(AppSnapshot snapshot) { + this.snapshot = snapshot; + return this; + } + + @Override + public AppVersion set(String fieldName, Object value) { + return (AppVersion) super.set(fieldName, value); + } + + @Override + public AppVersion clone() { + return (AppVersion) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AudioProcessingConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AudioProcessingConfig.java new file mode 100644 index 00000000000..fb2ae2fa7dc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AudioProcessingConfig.java @@ -0,0 +1,157 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for how the input and output audio should be processed and delivered. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AudioProcessingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AmbientSoundConfig ambientSoundConfig; + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BargeInConfig bargeInConfig; + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String inactivityTimeout; + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map synthesizeSpeechConfigs; + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * @return value or {@code null} for none + */ + public AmbientSoundConfig getAmbientSoundConfig() { + return ambientSoundConfig; + } + + /** + * Optional. Configuration for the ambient sound to be played with the synthesized agent response, + * to enhance the naturalness of the conversation. + * @param ambientSoundConfig ambientSoundConfig or {@code null} for none + */ + public AudioProcessingConfig setAmbientSoundConfig(AmbientSoundConfig ambientSoundConfig) { + this.ambientSoundConfig = ambientSoundConfig; + return this; + } + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * @return value or {@code null} for none + */ + public BargeInConfig getBargeInConfig() { + return bargeInConfig; + } + + /** + * Optional. Configures the agent behavior for the user barge-in activities. + * @param bargeInConfig bargeInConfig or {@code null} for none + */ + public AudioProcessingConfig setBargeInConfig(BargeInConfig bargeInConfig) { + this.bargeInConfig = bargeInConfig; + return this; + } + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * @return value or {@code null} for none + */ + public String getInactivityTimeout() { + return inactivityTimeout; + } + + /** + * Optional. The duration of user inactivity (no speech or interaction) before the agent prompts + * the user for reengagement. If not set, the agent will not prompt the user for reengagement. + * @param inactivityTimeout inactivityTimeout or {@code null} for none + */ + public AudioProcessingConfig setInactivityTimeout(String inactivityTimeout) { + this.inactivityTimeout = inactivityTimeout; + return this; + } + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * @return value or {@code null} for none + */ + public java.util.Map getSynthesizeSpeechConfigs() { + return synthesizeSpeechConfigs; + } + + /** + * Optional. Configuration of how the agent response should be synthesized, mapping from the + * language code to SynthesizeSpeechConfig. If the configuration for the specified language code + * is not found, the configuration for the root language code will be used. For example, if the + * map contains "en-us" and "en", and the specified language code is "en-gb", then "en" + * configuration will be used. Note: Language code is case-insensitive. + * @param synthesizeSpeechConfigs synthesizeSpeechConfigs or {@code null} for none + */ + public AudioProcessingConfig setSynthesizeSpeechConfigs(java.util.Map synthesizeSpeechConfigs) { + this.synthesizeSpeechConfigs = synthesizeSpeechConfigs; + return this; + } + + @Override + public AudioProcessingConfig set(String fieldName, Object value) { + return (AudioProcessingConfig) super.set(fieldName, value); + } + + @Override + public AudioProcessingConfig clone() { + return (AudioProcessingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AudioRecordingConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AudioRecordingConfig.java new file mode 100644 index 00000000000..8cfa39b8c1a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/AudioRecordingConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for how the audio interactions should be recorded. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class AudioRecordingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsBucket; + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsPathPrefix; + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsBucket() { + return gcsBucket; + } + + /** + * Optional. The [Cloud Storage](https://cloud.google.com/storage) bucket to store the session + * audio recordings. The URI must start with "gs://". Please choose a bucket location that meets + * your data residency requirements. Note: If the Cloud Storage bucket is in a different project + * from the app, you should grant `storage.objects.create` permission to the CES service agent + * `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param gcsBucket gcsBucket or {@code null} for none + */ + public AudioRecordingConfig setGcsBucket(java.lang.String gcsBucket) { + this.gcsBucket = gcsBucket; + return this; + } + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * @return value or {@code null} for none + */ + public java.lang.String getGcsPathPrefix() { + return gcsPathPrefix; + } + + /** + * Optional. The Cloud Storage path prefix for audio recordings. This prefix can include the + * following placeholders, which will be dynamically substituted at serving time: - $project: + * project ID - $location: app location - $app: app ID - $date: session date in YYYY-MM-DD format + * - $session: session ID If the path prefix is not specified, the default prefix + * `$project/$location/$app/$date/$session/` will be used. + * @param gcsPathPrefix gcsPathPrefix or {@code null} for none + */ + public AudioRecordingConfig setGcsPathPrefix(java.lang.String gcsPathPrefix) { + this.gcsPathPrefix = gcsPathPrefix; + return this; + } + + @Override + public AudioRecordingConfig set(String fieldName, Object value) { + return (AudioRecordingConfig) super.set(fieldName, value); + } + + @Override + public AudioRecordingConfig clone() { + return (AudioRecordingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BargeInConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BargeInConfig.java new file mode 100644 index 00000000000..4174eb6afff --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BargeInConfig.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.ces.v1beta.model; + +/** + * Configuration for how the user barge-in activities should be handled. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BargeInConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean bargeInAwareness; + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableBargeIn; + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * @return value or {@code null} for none + */ + public java.lang.Boolean getBargeInAwareness() { + return bargeInAwareness; + } + + /** + * Optional. If enabled, the agent will adapt its next response based on the assumption that the + * user hasn't heard the full preceding agent message. This should not be used in scenarios where + * agent responses are displayed visually. + * @param bargeInAwareness bargeInAwareness or {@code null} for none + */ + public BargeInConfig setBargeInAwareness(java.lang.Boolean bargeInAwareness) { + this.bargeInAwareness = bargeInAwareness; + return this; + } + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableBargeIn() { + return disableBargeIn; + } + + /** + * Optional. Disables user barge-in while the agent is speaking. If true, user input during agent + * response playback will be ignored. Deprecated: `disable_barge_in` is deprecated in favor of + * `disable_barge_in_control` in ChannelProfile. + * @param disableBargeIn disableBargeIn or {@code null} for none + */ + public BargeInConfig setDisableBargeIn(java.lang.Boolean disableBargeIn) { + this.disableBargeIn = disableBargeIn; + return this; + } + + @Override + public BargeInConfig set(String fieldName, Object value) { + return (BargeInConfig) super.set(fieldName, value); + } + + @Override + public BargeInConfig clone() { + return (BargeInConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BatchDeleteConversationsRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BatchDeleteConversationsRequest.java new file mode 100644 index 00000000000..8384d7b05a0 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BatchDeleteConversationsRequest.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for AgentService.BatchDeleteConversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchDeleteConversationsRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource names of the conversations to delete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conversations; + + /** + * Required. The resource names of the conversations to delete. + * @return value or {@code null} for none + */ + public java.util.List getConversations() { + return conversations; + } + + /** + * Required. The resource names of the conversations to delete. + * @param conversations conversations or {@code null} for none + */ + public BatchDeleteConversationsRequest setConversations(java.util.List conversations) { + this.conversations = conversations; + return this; + } + + @Override + public BatchDeleteConversationsRequest set(String fieldName, Object value) { + return (BatchDeleteConversationsRequest) super.set(fieldName, value); + } + + @Override + public BatchDeleteConversationsRequest clone() { + return (BatchDeleteConversationsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BatchDeleteConversationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BatchDeleteConversationsResponse.java new file mode 100644 index 00000000000..aa26ac90cc5 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BatchDeleteConversationsResponse.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.BatchDeleteConversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BatchDeleteConversationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of conversations that were successfully deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deletedConversations; + + /** + * Optional. A list of error messages associated with conversations that failed to be deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorMessages; + + /** + * The list of conversations that failed to be deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List failedConversations; + + /** + * The list of conversations that were successfully deleted. + * @return value or {@code null} for none + */ + public java.util.List getDeletedConversations() { + return deletedConversations; + } + + /** + * The list of conversations that were successfully deleted. + * @param deletedConversations deletedConversations or {@code null} for none + */ + public BatchDeleteConversationsResponse setDeletedConversations(java.util.List deletedConversations) { + this.deletedConversations = deletedConversations; + return this; + } + + /** + * Optional. A list of error messages associated with conversations that failed to be deleted. + * @return value or {@code null} for none + */ + public java.util.List getErrorMessages() { + return errorMessages; + } + + /** + * Optional. A list of error messages associated with conversations that failed to be deleted. + * @param errorMessages errorMessages or {@code null} for none + */ + public BatchDeleteConversationsResponse setErrorMessages(java.util.List errorMessages) { + this.errorMessages = errorMessages; + return this; + } + + /** + * The list of conversations that failed to be deleted. + * @return value or {@code null} for none + */ + public java.util.List getFailedConversations() { + return failedConversations; + } + + /** + * The list of conversations that failed to be deleted. + * @param failedConversations failedConversations or {@code null} for none + */ + public BatchDeleteConversationsResponse setFailedConversations(java.util.List failedConversations) { + this.failedConversations = failedConversations; + return this; + } + + @Override + public BatchDeleteConversationsResponse set(String fieldName, Object value) { + return (BatchDeleteConversationsResponse) super.set(fieldName, value); + } + + @Override + public BatchDeleteConversationsResponse clone() { + return (BatchDeleteConversationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BearerTokenConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BearerTokenConfig.java new file mode 100644 index 00000000000..1ceab90cd64 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BearerTokenConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configurations for authentication with a bearer token. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BearerTokenConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getToken() { + return token; + } + + /** + * Required. The bearer token. Must be in the format `$context.variables.`. + * @param token token or {@code null} for none + */ + public BearerTokenConfig setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public BearerTokenConfig set(String fieldName, Object value) { + return (BearerTokenConfig) super.set(fieldName, value); + } + + @Override + public BearerTokenConfig clone() { + return (BearerTokenConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java new file mode 100644 index 00000000000..6650c5b9a66 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/BigQueryExportSettings.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Settings to describe the BigQuery export behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class BigQueryExportSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The BigQuery dataset to export the data to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataset; + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String project; + + /** + * Optional. The BigQuery dataset to export the data to. + * @return value or {@code null} for none + */ + public java.lang.String getDataset() { + return dataset; + } + + /** + * Optional. The BigQuery dataset to export the data to. + * @param dataset dataset or {@code null} for none + */ + public BigQueryExportSettings setDataset(java.lang.String dataset) { + this.dataset = dataset; + return this; + } + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Indicates whether the BigQuery export is enabled. + * @param enabled enabled or {@code null} for none + */ + public BigQueryExportSettings setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getProject() { + return project; + } + + /** + * Optional. The project ID of the BigQuery dataset to export the data to. Note: If the BigQuery + * dataset is in a different project from the app, you should grant `roles/bigquery.admin` role to + * the CES service agent `service-@gcp-sa-ces.iam.gserviceaccount.com`. + * @param project project or {@code null} for none + */ + public BigQueryExportSettings setProject(java.lang.String project) { + this.project = project; + return this; + } + + @Override + public BigQueryExportSettings set(String fieldName, Object value) { + return (BigQueryExportSettings) super.set(fieldName, value); + } + + @Override + public BigQueryExportSettings clone() { + return (BigQueryExportSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Blob.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Blob.java new file mode 100644 index 00000000000..7e752066981 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Blob.java @@ -0,0 +1,119 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a blob input or output 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Blob extends com.google.api.client.json.GenericJson { + + /** + * Required. Raw bytes of the blob. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Required. The IANA standard MIME type of the source data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Required. Raw bytes of the blob. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * Required. Raw bytes of the blob. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * Required. Raw bytes of the blob. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public Blob setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * Required. Raw bytes of the blob. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Blob encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Required. The IANA standard MIME type of the source data. + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Required. The IANA standard MIME type of the source data. + * @param mimeType mimeType or {@code null} for none + */ + public Blob setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public Blob set(String fieldName, Object value) { + return (Blob) super.set(fieldName, value); + } + + @Override + public Blob clone() { + return (Blob) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Callback.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Callback.java new file mode 100644 index 00000000000..b88d1dd01e2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Callback.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A callback defines the custom logic to be executed at various stages of agent interaction. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Callback extends com.google.api.client.json.GenericJson { + + /** + * Optional. Human-readable description of the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. The python code to execute for the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Optional. Human-readable description of the callback. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the callback. + * @param description description or {@code null} for none + */ + public Callback setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the callback is disabled. Disabled callbacks are ignored by the agent. + * @param disabled disabled or {@code null} for none + */ + public Callback setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. The python code to execute for the callback. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. The python code to execute for the callback. + * @param pythonCode pythonCode or {@code null} for none + */ + public Callback setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public Callback set(String fieldName, Object value) { + return (Callback) super.set(fieldName, value); + } + + @Override + public Callback clone() { + return (Callback) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CancelOperationRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CancelOperationRequest.java new file mode 100644 index 00000000000..3ed210bfc29 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CancelOperationRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The request message for Operations.CancelOperation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CancelOperationRequest extends com.google.api.client.json.GenericJson { + + @Override + public CancelOperationRequest set(String fieldName, Object value) { + return (CancelOperationRequest) super.set(fieldName, value); + } + + @Override + public CancelOperationRequest clone() { + return (CancelOperationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Changelog.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Changelog.java new file mode 100644 index 00000000000..05fbe338fde --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Changelog.java @@ -0,0 +1,340 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Changelogs represent a change made to the app or to an resource within the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Changelog extends com.google.api.client.json.GenericJson { + + /** + * Output only. The action that was performed on the resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String action; + + /** + * Output only. Email address of the change author. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String author; + + /** + * Output only. The time when the change was made. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The dependent resources that were changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> dependentResources; + + /** + * Output only. Description of the change. which typically captures the changed fields in the + * resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Output only. Display name of the change. It typically should be the display name of the + * resource that was changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The unique identifier of the changelog. Format: + * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The new resource after the change. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map newResource; + + /** + * Output only. The original resource before the change. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map originalResource; + + /** + * Output only. The resource that was changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** + * Output only. The type of the resource that was changed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resourceType; + + /** + * Output only. The monotonically increasing sequence number of the changelog. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long sequenceNumber; + + /** + * Output only. The action that was performed on the resource. + * @return value or {@code null} for none + */ + public java.lang.String getAction() { + return action; + } + + /** + * Output only. The action that was performed on the resource. + * @param action action or {@code null} for none + */ + public Changelog setAction(java.lang.String action) { + this.action = action; + return this; + } + + /** + * Output only. Email address of the change author. + * @return value or {@code null} for none + */ + public java.lang.String getAuthor() { + return author; + } + + /** + * Output only. Email address of the change author. + * @param author author or {@code null} for none + */ + public Changelog setAuthor(java.lang.String author) { + this.author = author; + return this; + } + + /** + * Output only. The time when the change was made. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time when the change was made. + * @param createTime createTime or {@code null} for none + */ + public Changelog setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The dependent resources that were changed. + * @return value or {@code null} for none + */ + public java.util.List> getDependentResources() { + return dependentResources; + } + + /** + * Output only. The dependent resources that were changed. + * @param dependentResources dependentResources or {@code null} for none + */ + public Changelog setDependentResources(java.util.List> dependentResources) { + this.dependentResources = dependentResources; + return this; + } + + /** + * Output only. Description of the change. which typically captures the changed fields in the + * resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. Description of the change. which typically captures the changed fields in the + * resource. + * @param description description or {@code null} for none + */ + public Changelog setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Output only. Display name of the change. It typically should be the display name of the + * resource that was changed. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the change. It typically should be the display name of the + * resource that was changed. + * @param displayName displayName or {@code null} for none + */ + public Changelog setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The unique identifier of the changelog. Format: + * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the changelog. Format: + * `projects/{project}/locations/{location}/apps/{app}/changelogs/{changelog}` + * @param name name or {@code null} for none + */ + public Changelog setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The new resource after the change. + * @return value or {@code null} for none + */ + public java.util.Map getNewResource() { + return newResource; + } + + /** + * Output only. The new resource after the change. + * @param newResource newResource or {@code null} for none + */ + public Changelog setNewResource(java.util.Map newResource) { + this.newResource = newResource; + return this; + } + + /** + * Output only. The original resource before the change. + * @return value or {@code null} for none + */ + public java.util.Map getOriginalResource() { + return originalResource; + } + + /** + * Output only. The original resource before the change. + * @param originalResource originalResource or {@code null} for none + */ + public Changelog setOriginalResource(java.util.Map originalResource) { + this.originalResource = originalResource; + return this; + } + + /** + * Output only. The resource that was changed. + * @return value or {@code null} for none + */ + public java.lang.String getResource() { + return resource; + } + + /** + * Output only. The resource that was changed. + * @param resource resource or {@code null} for none + */ + public Changelog setResource(java.lang.String resource) { + this.resource = resource; + return this; + } + + /** + * Output only. The type of the resource that was changed. + * @return value or {@code null} for none + */ + public java.lang.String getResourceType() { + return resourceType; + } + + /** + * Output only. The type of the resource that was changed. + * @param resourceType resourceType or {@code null} for none + */ + public Changelog setResourceType(java.lang.String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Output only. The monotonically increasing sequence number of the changelog. + * @return value or {@code null} for none + */ + public java.lang.Long getSequenceNumber() { + return sequenceNumber; + } + + /** + * Output only. The monotonically increasing sequence number of the changelog. + * @param sequenceNumber sequenceNumber or {@code null} for none + */ + public Changelog setSequenceNumber(java.lang.Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + @Override + public Changelog set(String fieldName, Object value) { + return (Changelog) super.set(fieldName, value); + } + + @Override + public Changelog clone() { + return (Changelog) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfile.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfile.java new file mode 100644 index 00000000000..ea39112d18c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfile.java @@ -0,0 +1,221 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A ChannelProfile configures the agent's behavior for a specific communication channel, such as + * web UI or telephony. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfile extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelType; + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableBargeInControl; + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableDtmf; + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String noiseSuppressionLevel; + + /** + * Optional. The persona property of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfilePersonaProperty personaProperty; + + /** + * Optional. The unique identifier of the channel profile. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String profileId; + + /** + * Optional. The configuration for the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfileWebWidgetConfig webWidgetConfig; + + /** + * Optional. The type of the channel profile. + * @return value or {@code null} for none + */ + public java.lang.String getChannelType() { + return channelType; + } + + /** + * Optional. The type of the channel profile. + * @param channelType channelType or {@code null} for none + */ + public ChannelProfile setChannelType(java.lang.String channelType) { + this.channelType = channelType; + return this; + } + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableBargeInControl() { + return disableBargeInControl; + } + + /** + * Optional. Whether to disable user barge-in control in the conversation. - **true**: User + * interruptions are disabled while the agent is speaking. - **false**: The agent retains + * automatic control over when the user can interrupt. + * @param disableBargeInControl disableBargeInControl or {@code null} for none + */ + public ChannelProfile setDisableBargeInControl(java.lang.Boolean disableBargeInControl) { + this.disableBargeInControl = disableBargeInControl; + return this; + } + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableDtmf() { + return disableDtmf; + } + + /** + * Optional. Whether to disable DTMF (dual-tone multi-frequency). + * @param disableDtmf disableDtmf or {@code null} for none + */ + public ChannelProfile setDisableDtmf(java.lang.Boolean disableDtmf) { + this.disableDtmf = disableDtmf; + return this; + } + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * @return value or {@code null} for none + */ + public java.lang.String getNoiseSuppressionLevel() { + return noiseSuppressionLevel; + } + + /** + * Optional. The noise suppression level of the channel profile. Available values are "low", + * "moderate", "high", "very_high". + * @param noiseSuppressionLevel noiseSuppressionLevel or {@code null} for none + */ + public ChannelProfile setNoiseSuppressionLevel(java.lang.String noiseSuppressionLevel) { + this.noiseSuppressionLevel = noiseSuppressionLevel; + return this; + } + + /** + * Optional. The persona property of the channel profile. + * @return value or {@code null} for none + */ + public ChannelProfilePersonaProperty getPersonaProperty() { + return personaProperty; + } + + /** + * Optional. The persona property of the channel profile. + * @param personaProperty personaProperty or {@code null} for none + */ + public ChannelProfile setPersonaProperty(ChannelProfilePersonaProperty personaProperty) { + this.personaProperty = personaProperty; + return this; + } + + /** + * Optional. The unique identifier of the channel profile. + * @return value or {@code null} for none + */ + public java.lang.String getProfileId() { + return profileId; + } + + /** + * Optional. The unique identifier of the channel profile. + * @param profileId profileId or {@code null} for none + */ + public ChannelProfile setProfileId(java.lang.String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Optional. The configuration for the web widget. + * @return value or {@code null} for none + */ + public ChannelProfileWebWidgetConfig getWebWidgetConfig() { + return webWidgetConfig; + } + + /** + * Optional. The configuration for the web widget. + * @param webWidgetConfig webWidgetConfig or {@code null} for none + */ + public ChannelProfile setWebWidgetConfig(ChannelProfileWebWidgetConfig webWidgetConfig) { + this.webWidgetConfig = webWidgetConfig; + return this; + } + + @Override + public ChannelProfile set(String fieldName, Object value) { + return (ChannelProfile) super.set(fieldName, value); + } + + @Override + public ChannelProfile clone() { + return (ChannelProfile) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfilePersonaProperty.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfilePersonaProperty.java new file mode 100644 index 00000000000..bc941b00fe8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfilePersonaProperty.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents the persona property of a channel. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfilePersonaProperty extends com.google.api.client.json.GenericJson { + + /** + * Optional. The persona of the channel. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String persona; + + /** + * Optional. The persona of the channel. + * @return value or {@code null} for none + */ + public java.lang.String getPersona() { + return persona; + } + + /** + * Optional. The persona of the channel. + * @param persona persona or {@code null} for none + */ + public ChannelProfilePersonaProperty setPersona(java.lang.String persona) { + this.persona = persona; + return this; + } + + @Override + public ChannelProfilePersonaProperty set(String fieldName, Object value) { + return (ChannelProfilePersonaProperty) super.set(fieldName, value); + } + + @Override + public ChannelProfilePersonaProperty clone() { + return (ChannelProfilePersonaProperty) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfileWebWidgetConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfileWebWidgetConfig.java new file mode 100644 index 00000000000..bc8938b2cd7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfileWebWidgetConfig.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Message for configuration for the web widget. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfileWebWidgetConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The modality of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modality; + + /** + * Optional. The security settings of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfileWebWidgetConfigSecuritySettings securitySettings; + + /** + * Optional. The theme of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String theme; + + /** + * Optional. The title of the web widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String webWidgetTitle; + + /** + * Optional. The modality of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getModality() { + return modality; + } + + /** + * Optional. The modality of the web widget. + * @param modality modality or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setModality(java.lang.String modality) { + this.modality = modality; + return this; + } + + /** + * Optional. The security settings of the web widget. + * @return value or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings getSecuritySettings() { + return securitySettings; + } + + /** + * Optional. The security settings of the web widget. + * @param securitySettings securitySettings or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setSecuritySettings(ChannelProfileWebWidgetConfigSecuritySettings securitySettings) { + this.securitySettings = securitySettings; + return this; + } + + /** + * Optional. The theme of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getTheme() { + return theme; + } + + /** + * Optional. The theme of the web widget. + * @param theme theme or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setTheme(java.lang.String theme) { + this.theme = theme; + return this; + } + + /** + * Optional. The title of the web widget. + * @return value or {@code null} for none + */ + public java.lang.String getWebWidgetTitle() { + return webWidgetTitle; + } + + /** + * Optional. The title of the web widget. + * @param webWidgetTitle webWidgetTitle or {@code null} for none + */ + public ChannelProfileWebWidgetConfig setWebWidgetTitle(java.lang.String webWidgetTitle) { + this.webWidgetTitle = webWidgetTitle; + return this; + } + + @Override + public ChannelProfileWebWidgetConfig set(String fieldName, Object value) { + return (ChannelProfileWebWidgetConfig) super.set(fieldName, value); + } + + @Override + public ChannelProfileWebWidgetConfig clone() { + return (ChannelProfileWebWidgetConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfileWebWidgetConfigSecuritySettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfileWebWidgetConfigSecuritySettings.java new file mode 100644 index 00000000000..987cbe63fc2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ChannelProfileWebWidgetConfigSecuritySettings.java @@ -0,0 +1,160 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Security settings for the web widget. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ChannelProfileWebWidgetConfigSecuritySettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List allowedOrigins; + + /** + * Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web + * widget will check the origin of the website that loads the web widget and only allow it to be + * loaded in the same origin or any of the allowed origins. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableOriginCheck; + + /** + * Optional. Indicates whether public access to the web widget is enabled. If `true`, the web + * widget will be publicly accessible. If `false`, the web widget must be integrated with your own + * authentication and authorization system to return valid credentials for accessing the CES + * agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enablePublicAccess; + + /** + * Optional. Indicates whether reCAPTCHA verification for the web widget is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableRecaptcha; + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * @return value or {@code null} for none + */ + public java.util.List getAllowedOrigins() { + return allowedOrigins; + } + + /** + * Optional. The origins that are allowed to host the web widget. An origin is defined by RFC + * 6454. If empty, all origins are allowed. A maximum of 100 origins is allowed. Example: + * "https://example.com" + * @param allowedOrigins allowedOrigins or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setAllowedOrigins(java.util.List allowedOrigins) { + this.allowedOrigins = allowedOrigins; + return this; + } + + /** + * Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web + * widget will check the origin of the website that loads the web widget and only allow it to be + * loaded in the same origin or any of the allowed origins. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableOriginCheck() { + return enableOriginCheck; + } + + /** + * Optional. Indicates whether origin check for the web widget is enabled. If `true`, the web + * widget will check the origin of the website that loads the web widget and only allow it to be + * loaded in the same origin or any of the allowed origins. + * @param enableOriginCheck enableOriginCheck or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setEnableOriginCheck(java.lang.Boolean enableOriginCheck) { + this.enableOriginCheck = enableOriginCheck; + return this; + } + + /** + * Optional. Indicates whether public access to the web widget is enabled. If `true`, the web + * widget will be publicly accessible. If `false`, the web widget must be integrated with your own + * authentication and authorization system to return valid credentials for accessing the CES + * agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnablePublicAccess() { + return enablePublicAccess; + } + + /** + * Optional. Indicates whether public access to the web widget is enabled. If `true`, the web + * widget will be publicly accessible. If `false`, the web widget must be integrated with your own + * authentication and authorization system to return valid credentials for accessing the CES + * agent. + * @param enablePublicAccess enablePublicAccess or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setEnablePublicAccess(java.lang.Boolean enablePublicAccess) { + this.enablePublicAccess = enablePublicAccess; + return this; + } + + /** + * Optional. Indicates whether reCAPTCHA verification for the web widget is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableRecaptcha() { + return enableRecaptcha; + } + + /** + * Optional. Indicates whether reCAPTCHA verification for the web widget is enabled. + * @param enableRecaptcha enableRecaptcha or {@code null} for none + */ + public ChannelProfileWebWidgetConfigSecuritySettings setEnableRecaptcha(java.lang.Boolean enableRecaptcha) { + this.enableRecaptcha = enableRecaptcha; + return this; + } + + @Override + public ChannelProfileWebWidgetConfigSecuritySettings set(String fieldName, Object value) { + return (ChannelProfileWebWidgetConfigSecuritySettings) super.set(fieldName, value); + } + + @Override + public ChannelProfileWebWidgetConfigSecuritySettings clone() { + return (ChannelProfileWebWidgetConfigSecuritySettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Chunk.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Chunk.java new file mode 100644 index 00000000000..230241cc6f2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Chunk.java @@ -0,0 +1,262 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A chunk of content within a 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Chunk extends com.google.api.client.json.GenericJson { + + /** + * Optional. Agent transfer event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentTransfer agentTransfer; + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map defaultVariables; + + /** + * Optional. Image data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * Optional. Custom payload data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map payload; + + /** + * Optional. Text data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Tool execution request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCall toolCall; + + /** + * Optional. Tool execution response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse toolResponse; + + /** + * Optional. Transcript associated with the audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String transcript; + + /** + * A struct represents variables that were updated in the conversation, keyed by variable names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map updatedVariables; + + /** + * Optional. Agent transfer event. + * @return value or {@code null} for none + */ + public AgentTransfer getAgentTransfer() { + return agentTransfer; + } + + /** + * Optional. Agent transfer event. + * @param agentTransfer agentTransfer or {@code null} for none + */ + public Chunk setAgentTransfer(AgentTransfer agentTransfer) { + this.agentTransfer = agentTransfer; + return this; + } + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * @return value or {@code null} for none + */ + public java.util.Map getDefaultVariables() { + return defaultVariables; + } + + /** + * A struct represents default variables at the start of the conversation, keyed by variable + * names. + * @param defaultVariables defaultVariables or {@code null} for none + */ + public Chunk setDefaultVariables(java.util.Map defaultVariables) { + this.defaultVariables = defaultVariables; + return this; + } + + /** + * Optional. Image data. + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * Optional. Image data. + * @param image image or {@code null} for none + */ + public Chunk setImage(Image image) { + this.image = image; + return this; + } + + /** + * Optional. Custom payload data. + * @return value or {@code null} for none + */ + public java.util.Map getPayload() { + return payload; + } + + /** + * Optional. Custom payload data. + * @param payload payload or {@code null} for none + */ + public Chunk setPayload(java.util.Map payload) { + this.payload = payload; + return this; + } + + /** + * Optional. Text data. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Optional. Text data. + * @param text text or {@code null} for none + */ + public Chunk setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Optional. Tool execution request. + * @return value or {@code null} for none + */ + public ToolCall getToolCall() { + return toolCall; + } + + /** + * Optional. Tool execution request. + * @param toolCall toolCall or {@code null} for none + */ + public Chunk setToolCall(ToolCall toolCall) { + this.toolCall = toolCall; + return this; + } + + /** + * Optional. Tool execution response. + * @return value or {@code null} for none + */ + public ToolResponse getToolResponse() { + return toolResponse; + } + + /** + * Optional. Tool execution response. + * @param toolResponse toolResponse or {@code null} for none + */ + public Chunk setToolResponse(ToolResponse toolResponse) { + this.toolResponse = toolResponse; + return this; + } + + /** + * Optional. Transcript associated with the audio. + * @return value or {@code null} for none + */ + public java.lang.String getTranscript() { + return transcript; + } + + /** + * Optional. Transcript associated with the audio. + * @param transcript transcript or {@code null} for none + */ + public Chunk setTranscript(java.lang.String transcript) { + this.transcript = transcript; + return this; + } + + /** + * A struct represents variables that were updated in the conversation, keyed by variable names. + * @return value or {@code null} for none + */ + public java.util.Map getUpdatedVariables() { + return updatedVariables; + } + + /** + * A struct represents variables that were updated in the conversation, keyed by variable names. + * @param updatedVariables updatedVariables or {@code null} for none + */ + public Chunk setUpdatedVariables(java.util.Map updatedVariables) { + this.updatedVariables = updatedVariables; + return this; + } + + @Override + public Chunk set(String fieldName, Object value) { + return (Chunk) super.set(fieldName, value); + } + + @Override + public Chunk clone() { + return (Chunk) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Citations.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Citations.java new file mode 100644 index 00000000000..5eab42a869a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Citations.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Citations associated with the agent response. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Citations extends com.google.api.client.json.GenericJson { + + /** + * List of cited pieces of information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List citedChunks; + + /** + * List of cited pieces of information. + * @return value or {@code null} for none + */ + public java.util.List getCitedChunks() { + return citedChunks; + } + + /** + * List of cited pieces of information. + * @param citedChunks citedChunks or {@code null} for none + */ + public Citations setCitedChunks(java.util.List citedChunks) { + this.citedChunks = citedChunks; + return this; + } + + @Override + public Citations set(String fieldName, Object value) { + return (Citations) super.set(fieldName, value); + } + + @Override + public Citations clone() { + return (Citations) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CitationsCitedChunk.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CitationsCitedChunk.java new file mode 100644 index 00000000000..79a956c006b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CitationsCitedChunk.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Piece of cited information. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CitationsCitedChunk extends com.google.api.client.json.GenericJson { + + /** + * Text used for citaiton. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Title of the cited document. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * URI used for citation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * Text used for citaiton. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Text used for citaiton. + * @param text text or {@code null} for none + */ + public CitationsCitedChunk setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Title of the cited document. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Title of the cited document. + * @param title title or {@code null} for none + */ + public CitationsCitedChunk setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * URI used for citation. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * URI used for citation. + * @param uri uri or {@code null} for none + */ + public CitationsCitedChunk setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public CitationsCitedChunk set(String fieldName, Object value) { + return (CitationsCitedChunk) super.set(fieldName, value); + } + + @Override + public CitationsCitedChunk clone() { + return (CitationsCitedChunk) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ClientCertificateSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ClientCertificateSettings.java new file mode 100644 index 00000000000..49a6e481d08 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ClientCertificateSettings.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Settings for custom client certificates. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ClientCertificateSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String passphrase; + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String privateKey; + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tlsCertificate; + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getPassphrase() { + return passphrase; + } + + /** + * Optional. The name of the SecretManager secret version resource storing the passphrase to + * decrypt the private key. Should be left unset if the private key is not encrypted. Format: + * `projects/{project}/secrets/{secret}/versions/{version}` + * @param passphrase passphrase or {@code null} for none + */ + public ClientCertificateSettings setPassphrase(java.lang.String passphrase) { + this.passphrase = passphrase; + return this; + } + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getPrivateKey() { + return privateKey; + } + + /** + * Required. The name of the SecretManager secret version resource storing the private key encoded + * in PEM format. Format: `projects/{project}/secrets/{secret}/versions/{version}` + * @param privateKey privateKey or {@code null} for none + */ + public ClientCertificateSettings setPrivateKey(java.lang.String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * @return value or {@code null} for none + */ + public java.lang.String getTlsCertificate() { + return tlsCertificate; + } + + /** + * Required. The TLS certificate encoded in PEM format. This string must include the begin header + * and end footer lines. + * @param tlsCertificate tlsCertificate or {@code null} for none + */ + public ClientCertificateSettings setTlsCertificate(java.lang.String tlsCertificate) { + this.tlsCertificate = tlsCertificate; + return this; + } + + @Override + public ClientCertificateSettings set(String fieldName, Object value) { + return (ClientCertificateSettings) super.set(fieldName, value); + } + + @Override + public ClientCertificateSettings clone() { + return (ClientCertificateSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ClientFunction.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ClientFunction.java new file mode 100644 index 00000000000..7e758a40c8a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ClientFunction.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a client-side function that the agent can invoke. When the tool is chosen by the + * agent, control is handed off to the client. The client is responsible for executing the function + * and returning the result as a ToolResponse to continue the interaction with the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ClientFunction extends com.google.api.client.json.GenericJson { + + /** + * Optional. The function description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The function name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The schema of the function parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema parameters; + + /** + * Optional. The schema of the function response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema response; + + /** + * Optional. The function description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The function description. + * @param description description or {@code null} for none + */ + public ClientFunction setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The function name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The function name. + * @param name name or {@code null} for none + */ + public ClientFunction setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The schema of the function parameters. + * @return value or {@code null} for none + */ + public Schema getParameters() { + return parameters; + } + + /** + * Optional. The schema of the function parameters. + * @param parameters parameters or {@code null} for none + */ + public ClientFunction setParameters(Schema parameters) { + this.parameters = parameters; + return this; + } + + /** + * Optional. The schema of the function response. + * @return value or {@code null} for none + */ + public Schema getResponse() { + return response; + } + + /** + * Optional. The schema of the function response. + * @param response response or {@code null} for none + */ + public ClientFunction setResponse(Schema response) { + this.response = response; + return this; + } + + @Override + public ClientFunction set(String fieldName, Object value) { + return (ClientFunction) super.set(fieldName, value); + } + + @Override + public ClientFunction clone() { + return (ClientFunction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CloudLoggingSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CloudLoggingSettings.java new file mode 100644 index 00000000000..b08bd84f3b8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CloudLoggingSettings.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Settings to describe the Cloud Logging behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CloudLoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableCloudLogging; + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableCloudLogging() { + return enableCloudLogging; + } + + /** + * Optional. Whether to enable Cloud Logging for the sessions. + * @param enableCloudLogging enableCloudLogging or {@code null} for none + */ + public CloudLoggingSettings setEnableCloudLogging(java.lang.Boolean enableCloudLogging) { + this.enableCloudLogging = enableCloudLogging; + return this; + } + + @Override + public CloudLoggingSettings set(String fieldName, Object value) { + return (CloudLoggingSettings) super.set(fieldName, value); + } + + @Override + public CloudLoggingSettings clone() { + return (CloudLoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CodeBlock.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CodeBlock.java new file mode 100644 index 00000000000..312fd869442 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/CodeBlock.java @@ -0,0 +1,79 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A code block to be executed instead of a real tool call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class CodeBlock extends com.google.api.client.json.GenericJson { + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. Python code which will be invoked in tool fake mode. Expected Python function + * signature - To catch all tool calls: def fake_tool_call(tool: Tool, input: dict[str, Any], + * callback_context: CallbackContext) -> Optional[dict[str, Any]]: To catch a specific tool call: + * def fake_{tool_id}(tool: Tool, input: dict[str, Any], callback_context: CallbackContext) -> + * Optional[dict[str, Any]]: If the function returns None, the real tool will be invoked instead. + * @param pythonCode pythonCode or {@code null} for none + */ + public CodeBlock setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public CodeBlock set(String fieldName, Object value) { + return (CodeBlock) super.set(fieldName, value); + } + + @Override + public CodeBlock clone() { + return (CodeBlock) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConnectorTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConnectorTool.java new file mode 100644 index 00000000000..0c50a2aa79d --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConnectorTool.java @@ -0,0 +1,188 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A ConnectorTool allows connections to different integrations. See: + * https://cloud.google.com/integration-connectors/docs/overview. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectorTool extends com.google.api.client.json.GenericJson { + + /** + * Required. Action for the tool to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Action action; + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfig authConfig; + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connection; + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. Action for the tool to use. + * @return value or {@code null} for none + */ + public Action getAction() { + return action; + } + + /** + * Required. Action for the tool to use. + * @param action action or {@code null} for none + */ + public ConnectorTool setAction(Action action) { + this.action = action; + return this; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * @return value or {@code null} for none + */ + public EndUserAuthConfig getAuthConfig() { + return authConfig; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * ConnectorTool creation will fail. See https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override for details. + * @param authConfig authConfig or {@code null} for none + */ + public ConnectorTool setAuthConfig(EndUserAuthConfig authConfig) { + this.authConfig = authConfig; + return this; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @return value or {@code null} for none + */ + public java.lang.String getConnection() { + return connection; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @param connection connection or {@code null} for none + */ + public ConnectorTool setConnection(java.lang.String connection) { + this.connection = connection; + return this; + } + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the tool that can be used by the Agent to decide whether to call + * this ConnectorTool. + * @param description description or {@code null} for none + */ + public ConnectorTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the tool that can be used by the Agent to decide whether to call this + * ConnectorTool. + * @param name name or {@code null} for none + */ + public ConnectorTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public ConnectorTool set(String fieldName, Object value) { + return (ConnectorTool) super.set(fieldName, value); + } + + @Override + public ConnectorTool clone() { + return (ConnectorTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConnectorToolset.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConnectorToolset.java new file mode 100644 index 00000000000..1a11104dad7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConnectorToolset.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A toolset that generates tools from an Integration Connectors Connection. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConnectorToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfig authConfig; + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String connection; + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List connectorActions; + + static { + // hack to force ProGuard to consider Action 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(Action.class); + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * @return value or {@code null} for none + */ + public EndUserAuthConfig getAuthConfig() { + return authConfig; + } + + /** + * Optional. Configures how authentication is handled in Integration Connectors. By default, an + * admin authentication is passed in the Integration Connectors API requests. You can override it + * with a different end-user authentication config. **Note**: The Connection must have + * authentication override enabled in order to specify an EUC configuration here - otherwise, the + * Toolset creation will fail. See: https://cloud.google.com/application- + * integration/docs/configure-connectors-task#configure-authentication-override + * @param authConfig authConfig or {@code null} for none + */ + public ConnectorToolset setAuthConfig(EndUserAuthConfig authConfig) { + this.authConfig = authConfig; + return this; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @return value or {@code null} for none + */ + public java.lang.String getConnection() { + return connection; + } + + /** + * Required. The full resource name of the referenced Integration Connectors Connection. Format: + * `projects/{project}/locations/{location}/connections/{connection}` + * @param connection connection or {@code null} for none + */ + public ConnectorToolset setConnection(java.lang.String connection) { + this.connection = connection; + return this; + } + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * @return value or {@code null} for none + */ + public java.util.List getConnectorActions() { + return connectorActions; + } + + /** + * Required. The list of connector actions/entity operations to generate tools for. + * @param connectorActions connectorActions or {@code null} for none + */ + public ConnectorToolset setConnectorActions(java.util.List connectorActions) { + this.connectorActions = connectorActions; + return this; + } + + @Override + public ConnectorToolset set(String fieldName, Object value) { + return (ConnectorToolset) super.set(fieldName, value); + } + + @Override + public ConnectorToolset clone() { + return (ConnectorToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Conversation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Conversation.java new file mode 100644 index 00000000000..eab2437a6ed --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Conversation.java @@ -0,0 +1,370 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A conversation represents an interaction between an end user and the CES app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Conversation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * DEPRECATED. Please use input_types instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String channelType; + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Output only. Timestamp when the conversation was completed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Output only. The input types of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputTypes; + + /** + * Output only. The language code of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Deprecated. Use turns instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Identifier. The unique identifier of the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Indicate the source of the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Output only. Timestamp when the conversation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The number of turns in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer turnCount; + + /** + * Required. The turns in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List turns; + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Output only. The version of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param appVersion appVersion or {@code null} for none + */ + public Conversation setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * DEPRECATED. Please use input_types instead. + * @return value or {@code null} for none + */ + public java.lang.String getChannelType() { + return channelType; + } + + /** + * DEPRECATED. Please use input_types instead. + * @param channelType channelType or {@code null} for none + */ + public Conversation setChannelType(java.lang.String channelType) { + this.channelType = channelType; + return this; + } + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Output only. The deployment of the app used for processing the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @param deployment deployment or {@code null} for none + */ + public Conversation setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Output only. Timestamp when the conversation was completed. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. Timestamp when the conversation was completed. + * @param endTime endTime or {@code null} for none + */ + public Conversation setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getEntryAgent() { + return entryAgent; + } + + /** + * Output only. The agent that initially handles the conversation. If not specified, the + * conversation is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param entryAgent entryAgent or {@code null} for none + */ + public Conversation setEntryAgent(java.lang.String entryAgent) { + this.entryAgent = entryAgent; + return this; + } + + /** + * Output only. The input types of the conversation. + * @return value or {@code null} for none + */ + public java.util.List getInputTypes() { + return inputTypes; + } + + /** + * Output only. The input types of the conversation. + * @param inputTypes inputTypes or {@code null} for none + */ + public Conversation setInputTypes(java.util.List inputTypes) { + this.inputTypes = inputTypes; + return this; + } + + /** + * Output only. The language code of the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Output only. The language code of the conversation. + * @param languageCode languageCode or {@code null} for none + */ + public Conversation setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Deprecated. Use turns instead. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Deprecated. Use turns instead. + * @param messages messages or {@code null} for none + */ + public Conversation setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Identifier. The unique identifier of the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the conversation. Format: + * `projects/{project}/locations/{location}/apps/{app}/conversations/{conversation}` + * @param name name or {@code null} for none + */ + public Conversation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Indicate the source of the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Output only. Indicate the source of the conversation. + * @param source source or {@code null} for none + */ + public Conversation setSource(java.lang.String source) { + this.source = source; + return this; + } + + /** + * Output only. Timestamp when the conversation was created. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. Timestamp when the conversation was created. + * @param startTime startTime or {@code null} for none + */ + public Conversation setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The number of turns in the conversation. + * @return value or {@code null} for none + */ + public java.lang.Integer getTurnCount() { + return turnCount; + } + + /** + * Output only. The number of turns in the conversation. + * @param turnCount turnCount or {@code null} for none + */ + public Conversation setTurnCount(java.lang.Integer turnCount) { + this.turnCount = turnCount; + return this; + } + + /** + * Required. The turns in the conversation. + * @return value or {@code null} for none + */ + public java.util.List getTurns() { + return turns; + } + + /** + * Required. The turns in the conversation. + * @param turns turns or {@code null} for none + */ + public Conversation setTurns(java.util.List turns) { + this.turns = turns; + return this; + } + + @Override + public Conversation set(String fieldName, Object value) { + return (Conversation) super.set(fieldName, value); + } + + @Override + public Conversation clone() { + return (Conversation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConversationLoggingSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConversationLoggingSettings.java new file mode 100644 index 00000000000..85fe87df606 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConversationLoggingSettings.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Settings to describe the conversation logging behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConversationLoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to disable conversation logging for the sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disableConversationLogging; + + /** + * Optional. Whether to disable conversation logging for the sessions. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisableConversationLogging() { + return disableConversationLogging; + } + + /** + * Optional. Whether to disable conversation logging for the sessions. + * @param disableConversationLogging disableConversationLogging or {@code null} for none + */ + public ConversationLoggingSettings setDisableConversationLogging(java.lang.Boolean disableConversationLogging) { + this.disableConversationLogging = disableConversationLogging; + return this; + } + + @Override + public ConversationLoggingSettings set(String fieldName, Object value) { + return (ConversationLoggingSettings) super.set(fieldName, value); + } + + @Override + public ConversationLoggingSettings clone() { + return (ConversationLoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConversationTurn.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConversationTurn.java new file mode 100644 index 00000000000..498089a7bb5 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ConversationTurn.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * All information about a single turn 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ConversationTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Optional. The root span of the action processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Span rootSpan; + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Optional. List of messages in the conversation turn, including user input, agent responses and + * intermediate events during the processing. + * @param messages messages or {@code null} for none + */ + public ConversationTurn setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Optional. The root span of the action processing. + * @return value or {@code null} for none + */ + public Span getRootSpan() { + return rootSpan; + } + + /** + * Optional. The root span of the action processing. + * @param rootSpan rootSpan or {@code null} for none + */ + public ConversationTurn setRootSpan(Span rootSpan) { + this.rootSpan = rootSpan; + return this; + } + + @Override + public ConversationTurn set(String fieldName, Object value) { + return (ConversationTurn) super.set(fieldName, value); + } + + @Override + public ConversationTurn clone() { + return (ConversationTurn) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStore.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStore.java new file mode 100644 index 00000000000..978440ff195 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStore.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A DataStore resource in Vertex AI Search. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStore extends com.google.api.client.json.GenericJson { + + /** + * Output only. The connector config for the data store connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreConnectorConfig connectorConfig; + + /** + * Output only. Timestamp when the data store was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The display name of the data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String documentProcessingMode; + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The connector config for the data store connection. + * @return value or {@code null} for none + */ + public DataStoreConnectorConfig getConnectorConfig() { + return connectorConfig; + } + + /** + * Output only. The connector config for the data store connection. + * @param connectorConfig connectorConfig or {@code null} for none + */ + public DataStore setConnectorConfig(DataStoreConnectorConfig connectorConfig) { + this.connectorConfig = connectorConfig; + return this; + } + + /** + * Output only. Timestamp when the data store was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the data store was created. + * @param createTime createTime or {@code null} for none + */ + public DataStore setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The display name of the data store. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the data store. + * @param displayName displayName or {@code null} for none + */ + public DataStore setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * @return value or {@code null} for none + */ + public java.lang.String getDocumentProcessingMode() { + return documentProcessingMode; + } + + /** + * Output only. The document processing mode for the data store connection. Only set for + * PUBLIC_WEB and UNSTRUCTURED data stores. + * @param documentProcessingMode documentProcessingMode or {@code null} for none + */ + public DataStore setDocumentProcessingMode(java.lang.String documentProcessingMode) { + this.documentProcessingMode = documentProcessingMode; + return this; + } + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. Full resource name of the DataStore. Format: + * `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}` + * @param name name or {@code null} for none + */ + public DataStore setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the data store. This field is readonly and populated by the server. + * @param type type or {@code null} for none + */ + public DataStore setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public DataStore set(String fieldName, Object value) { + return (DataStore) super.set(fieldName, value); + } + + @Override + public DataStore clone() { + return (DataStore) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreConnectorConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreConnectorConfig.java new file mode 100644 index 00000000000..f5144a9bdbb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreConnectorConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The connector config for the data store connection. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreConnectorConfig extends com.google.api.client.json.GenericJson { + + /** + * Resource name of the collection the data store belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collection; + + /** + * Display name of the collection the data store belongs to. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String collectionDisplayName; + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dataSource; + + /** + * Resource name of the collection the data store belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getCollection() { + return collection; + } + + /** + * Resource name of the collection the data store belongs to. + * @param collection collection or {@code null} for none + */ + public DataStoreConnectorConfig setCollection(java.lang.String collection) { + this.collection = collection; + return this; + } + + /** + * Display name of the collection the data store belongs to. + * @return value or {@code null} for none + */ + public java.lang.String getCollectionDisplayName() { + return collectionDisplayName; + } + + /** + * Display name of the collection the data store belongs to. + * @param collectionDisplayName collectionDisplayName or {@code null} for none + */ + public DataStoreConnectorConfig setCollectionDisplayName(java.lang.String collectionDisplayName) { + this.collectionDisplayName = collectionDisplayName; + return this; + } + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * @return value or {@code null} for none + */ + public java.lang.String getDataSource() { + return dataSource; + } + + /** + * The name of the data source. Example: `salesforce`, `jira`, `confluence`, `bigquery`. + * @param dataSource dataSource or {@code null} for none + */ + public DataStoreConnectorConfig setDataSource(java.lang.String dataSource) { + this.dataSource = dataSource; + return this; + } + + @Override + public DataStoreConnectorConfig set(String fieldName, Object value) { + return (DataStoreConnectorConfig) super.set(fieldName, value); + } + + @Override + public DataStoreConnectorConfig clone() { + return (DataStoreConnectorConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreSettings.java new file mode 100644 index 00000000000..1639daa1e71 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreSettings.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Data store related settings for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreSettings extends com.google.api.client.json.GenericJson { + + /** + * Output only. The engines for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List engines; + + /** + * Output only. The engines for the app. + * @return value or {@code null} for none + */ + public java.util.List getEngines() { + return engines; + } + + /** + * Output only. The engines for the app. + * @param engines engines or {@code null} for none + */ + public DataStoreSettings setEngines(java.util.List engines) { + this.engines = engines; + return this; + } + + @Override + public DataStoreSettings set(String fieldName, Object value) { + return (DataStoreSettings) super.set(fieldName, value); + } + + @Override + public DataStoreSettings clone() { + return (DataStoreSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreSettingsEngine.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreSettingsEngine.java new file mode 100644 index 00000000000..f4ed20f0a02 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreSettingsEngine.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An engine to which the data stores are connected. See Vertex AI Search: + * https://cloud.google.com/generative-ai-app-builder/docs/enterprise-search-introduction. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreSettingsEngine extends com.google.api.client.json.GenericJson { + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The type of the engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The resource name of the engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param name name or {@code null} for none + */ + public DataStoreSettingsEngine setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The type of the engine. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of the engine. + * @param type type or {@code null} for none + */ + public DataStoreSettingsEngine setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public DataStoreSettingsEngine set(String fieldName, Object value) { + return (DataStoreSettingsEngine) super.set(fieldName, value); + } + + @Override + public DataStoreSettingsEngine clone() { + return (DataStoreSettingsEngine) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreTool.java new file mode 100644 index 00000000000..905723e2fbd --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreTool.java @@ -0,0 +1,213 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Tool to retrieve from Vertex AI Search datastore or engine for grounding. Accepts either a + * datastore or an engine, but not both. See Vertex AI Search: https://cloud.google.com/generative- + * ai-app-builder/docs/enterprise-search-introduction. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Boost specification to boost certain documents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List boostSpecs; + + /** + * Optional. Search within a single specific DataStore. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolDataStoreSource dataStoreSource; + + /** + * Optional. The tool description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Search within an Engine (potentially across multiple DataStores). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolEngineSource engineSource; + + /** + * Optional. The filter parameter behavior. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filterParameterBehavior; + + /** + * Optional. The modality configs for the data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List modalityConfigs; + + /** + * Required. The data store tool name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Boost specification to boost certain documents. + * @return value or {@code null} for none + */ + public java.util.List getBoostSpecs() { + return boostSpecs; + } + + /** + * Optional. Boost specification to boost certain documents. + * @param boostSpecs boostSpecs or {@code null} for none + */ + public DataStoreTool setBoostSpecs(java.util.List boostSpecs) { + this.boostSpecs = boostSpecs; + return this; + } + + /** + * Optional. Search within a single specific DataStore. + * @return value or {@code null} for none + */ + public DataStoreToolDataStoreSource getDataStoreSource() { + return dataStoreSource; + } + + /** + * Optional. Search within a single specific DataStore. + * @param dataStoreSource dataStoreSource or {@code null} for none + */ + public DataStoreTool setDataStoreSource(DataStoreToolDataStoreSource dataStoreSource) { + this.dataStoreSource = dataStoreSource; + return this; + } + + /** + * Optional. The tool description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The tool description. + * @param description description or {@code null} for none + */ + public DataStoreTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Search within an Engine (potentially across multiple DataStores). + * @return value or {@code null} for none + */ + public DataStoreToolEngineSource getEngineSource() { + return engineSource; + } + + /** + * Optional. Search within an Engine (potentially across multiple DataStores). + * @param engineSource engineSource or {@code null} for none + */ + public DataStoreTool setEngineSource(DataStoreToolEngineSource engineSource) { + this.engineSource = engineSource; + return this; + } + + /** + * Optional. The filter parameter behavior. + * @return value or {@code null} for none + */ + public java.lang.String getFilterParameterBehavior() { + return filterParameterBehavior; + } + + /** + * Optional. The filter parameter behavior. + * @param filterParameterBehavior filterParameterBehavior or {@code null} for none + */ + public DataStoreTool setFilterParameterBehavior(java.lang.String filterParameterBehavior) { + this.filterParameterBehavior = filterParameterBehavior; + return this; + } + + /** + * Optional. The modality configs for the data store. + * @return value or {@code null} for none + */ + public java.util.List getModalityConfigs() { + return modalityConfigs; + } + + /** + * Optional. The modality configs for the data store. + * @param modalityConfigs modalityConfigs or {@code null} for none + */ + public DataStoreTool setModalityConfigs(java.util.List modalityConfigs) { + this.modalityConfigs = modalityConfigs; + return this; + } + + /** + * Required. The data store tool name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The data store tool name. + * @param name name or {@code null} for none + */ + public DataStoreTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public DataStoreTool set(String fieldName, Object value) { + return (DataStoreTool) super.set(fieldName, value); + } + + @Override + public DataStoreTool clone() { + return (DataStoreTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpec.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpec.java new file mode 100644 index 00000000000..6d909cd5bf5 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpec.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Boost specification to boost certain documents. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpec extends com.google.api.client.json.GenericJson { + + /** + * Required. A list of boosting specifications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conditionBoostSpecs; + + /** + * Required. A list of boosting specifications. + * @return value or {@code null} for none + */ + public java.util.List getConditionBoostSpecs() { + return conditionBoostSpecs; + } + + /** + * Required. A list of boosting specifications. + * @param conditionBoostSpecs conditionBoostSpecs or {@code null} for none + */ + public DataStoreToolBoostSpec setConditionBoostSpecs(java.util.List conditionBoostSpecs) { + this.conditionBoostSpecs = conditionBoostSpecs; + return this; + } + + @Override + public DataStoreToolBoostSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpec clone() { + return (DataStoreToolBoostSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpec.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpec.java new file mode 100644 index 00000000000..055b61bebcd --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpec.java @@ -0,0 +1,133 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Boost specification for a condition. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float boost; + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec boostControlSpec; + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String condition; + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * @return value or {@code null} for none + */ + public java.lang.Float getBoost() { + return boost; + } + + /** + * Optional. Strength of the boost, which should be in [-1, 1]. Negative boost means demotion. + * Default is 0.0. Setting to 1.0 gives the suggestions a big promotion. However, it does not + * necessarily mean that the top result will be a boosted suggestion. Setting to -1.0 gives the + * suggestions a big demotion. However, other suggestions that are relevant might still be shown. + * Setting to 0.0 means no boost applied. The boosting condition is ignored. + * @param boost boost or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setBoost(java.lang.Float boost) { + this.boost = boost; + return this; + } + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * @return value or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec getBoostControlSpec() { + return boostControlSpec; + } + + /** + * Optional. Complex specification for custom ranking based on customer defined attribute value. + * @param boostControlSpec boostControlSpec or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setBoostControlSpec(DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec boostControlSpec) { + this.boostControlSpec = boostControlSpec; + return this; + } + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * @return value or {@code null} for none + */ + public java.lang.String getCondition() { + return condition; + } + + /** + * Required. An expression which specifies a boost condition. The syntax is the same as filter + * expression syntax. Currently, the only supported condition is a list of BCP-47 lang codes. + * Example: To boost suggestions in languages en or fr: (lang_code: ANY("en", "fr")) + * @param condition condition or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpec setCondition(java.lang.String condition) { + this.condition = condition; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpec clone() { + return (DataStoreToolBoostSpecConditionBoostSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java new file mode 100644 index 00000000000..359d80ec980 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.java @@ -0,0 +1,152 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Specification for custom ranking based on customer specified attribute value. It provides more + * controls for customized ranking than the simple (condition, boost) combination above. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec extends com.google.api.client.json.GenericJson { + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributeType; + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List controlPoints; + + /** + * Optional. The name of the field whose value will be used to determine the boost amount. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fieldName; + + /** + * Optional. The interpolation type to be applied to connect the control points listed below. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String interpolationType; + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * @return value or {@code null} for none + */ + public java.lang.String getAttributeType() { + return attributeType; + } + + /** + * Optional. The attribute type to be used to determine the boost amount. The attribute value can + * be derived from the field value of the specified field_name. In the case of numerical it is + * straightforward i.e. attribute_value = numerical_field_value. In the case of freshness however, + * attribute_value = (time.now() - datetime_field_value). + * @param attributeType attributeType or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setAttributeType(java.lang.String attributeType) { + this.attributeType = attributeType; + return this; + } + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * @return value or {@code null} for none + */ + public java.util.List getControlPoints() { + return controlPoints; + } + + /** + * Optional. The control points used to define the curve. The monotonic function (defined through + * the interpolation_type above) passes through the control points listed here. + * @param controlPoints controlPoints or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setControlPoints(java.util.List controlPoints) { + this.controlPoints = controlPoints; + return this; + } + + /** + * Optional. The name of the field whose value will be used to determine the boost amount. + * @return value or {@code null} for none + */ + public java.lang.String getFieldName() { + return fieldName; + } + + /** + * Optional. The name of the field whose value will be used to determine the boost amount. + * @param fieldName fieldName or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setFieldName(java.lang.String fieldName) { + this.fieldName = fieldName; + return this; + } + + /** + * Optional. The interpolation type to be applied to connect the control points listed below. + * @return value or {@code null} for none + */ + public java.lang.String getInterpolationType() { + return interpolationType; + } + + /** + * Optional. The interpolation type to be applied to connect the control points listed below. + * @param interpolationType interpolationType or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec setInterpolationType(java.lang.String interpolationType) { + this.interpolationType = interpolationType; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec clone() { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.java new file mode 100644 index 00000000000..534292afafc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.java @@ -0,0 +1,101 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The control points used to define the curve. The curve defined through these control points can + * only be monotonically increasing or decreasing(constant values are acceptable). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint extends com.google.api.client.json.GenericJson { + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String attributeValue; + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float boostAmount; + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * @return value or {@code null} for none + */ + public java.lang.String getAttributeValue() { + return attributeValue; + } + + /** + * Optional. Can be one of: 1. The numerical field value. 2. The duration spec for freshness: The + * value must be formatted as an XSD `dayTimeDuration` value (a restricted subset of an ISO 8601 + * duration value). The pattern for this is: `nDnM]`. + * @param attributeValue attributeValue or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint setAttributeValue(java.lang.String attributeValue) { + this.attributeValue = attributeValue; + return this; + } + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * @return value or {@code null} for none + */ + public java.lang.Float getBoostAmount() { + return boostAmount; + } + + /** + * Optional. The value between -1 to 1 by which to boost the score if the attribute_value + * evaluates to the value specified above. + * @param boostAmount boostAmount or {@code null} for none + */ + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint setBoostAmount(java.lang.Float boostAmount) { + this.boostAmount = boostAmount; + return this; + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint set(String fieldName, Object value) { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint clone() { + return (DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecs.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecs.java new file mode 100644 index 00000000000..3e3949f44a1 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolBoostSpecs.java @@ -0,0 +1,104 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Boost specifications to boost certain documents. For more information, please refer to + * https://cloud.google.com/generative-ai-app-builder/docs/boosting. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolBoostSpecs extends com.google.api.client.json.GenericJson { + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataStores; + + /** + * Required. A list of boosting specifications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List spec; + + static { + // hack to force ProGuard to consider DataStoreToolBoostSpec 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(DataStoreToolBoostSpec.class); + } + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * @return value or {@code null} for none + */ + public java.util.List getDataStores() { + return dataStores; + } + + /** + * Required. The Data Store where the boosting configuration is applied. Full resource name of + * DataStore, such as + * projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}. + * @param dataStores dataStores or {@code null} for none + */ + public DataStoreToolBoostSpecs setDataStores(java.util.List dataStores) { + this.dataStores = dataStores; + return this; + } + + /** + * Required. A list of boosting specifications. + * @return value or {@code null} for none + */ + public java.util.List getSpec() { + return spec; + } + + /** + * Required. A list of boosting specifications. + * @param spec spec or {@code null} for none + */ + public DataStoreToolBoostSpecs setSpec(java.util.List spec) { + this.spec = spec; + return this; + } + + @Override + public DataStoreToolBoostSpecs set(String fieldName, Object value) { + return (DataStoreToolBoostSpecs) super.set(fieldName, value); + } + + @Override + public DataStoreToolBoostSpecs clone() { + return (DataStoreToolBoostSpecs) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolDataStoreSource.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolDataStoreSource.java new file mode 100644 index 00000000000..2bfa4236968 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolDataStoreSource.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for searching within a specific DataStore. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolDataStoreSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. The data store. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStore dataStore; + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. The data store. + * @return value or {@code null} for none + */ + public DataStore getDataStore() { + return dataStore; + } + + /** + * Optional. The data store. + * @param dataStore dataStore or {@code null} for none + */ + public DataStoreToolDataStoreSource setDataStore(DataStore dataStore) { + this.dataStore = dataStore; + return this; + } + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. Filter specification for the DataStore. See: https://cloud.google.com/generative-ai- + * app-builder/docs/filter-search-metadata + * @param filter filter or {@code null} for none + */ + public DataStoreToolDataStoreSource setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public DataStoreToolDataStoreSource set(String fieldName, Object value) { + return (DataStoreToolDataStoreSource) super.set(fieldName, value); + } + + @Override + public DataStoreToolDataStoreSource clone() { + return (DataStoreToolDataStoreSource) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolEngineSource.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolEngineSource.java new file mode 100644 index 00000000000..f538ffaf3cb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolEngineSource.java @@ -0,0 +1,133 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for searching within an Engine, potentially targeting specific DataStores. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolEngineSource extends com.google.api.client.json.GenericJson { + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List dataStoreSources; + + static { + // hack to force ProGuard to consider DataStoreToolDataStoreSource 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(DataStoreToolDataStoreSource.class); + } + + /** + * Required. Full resource name of the Engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String engine; + + /** + * Optional. A filter applied to the search across the Engine. Not relevant and not used if + * 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app- + * builder/docs/filter-search-metadata + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * @return value or {@code null} for none + */ + public java.util.List getDataStoreSources() { + return dataStoreSources; + } + + /** + * Optional. Use to target specific DataStores within the Engine. If empty, the search applies to + * all DataStores associated with the Engine. + * @param dataStoreSources dataStoreSources or {@code null} for none + */ + public DataStoreToolEngineSource setDataStoreSources(java.util.List dataStoreSources) { + this.dataStoreSources = dataStoreSources; + return this; + } + + /** + * Required. Full resource name of the Engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @return value or {@code null} for none + */ + public java.lang.String getEngine() { + return engine; + } + + /** + * Required. Full resource name of the Engine. Format: + * `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}` + * @param engine engine or {@code null} for none + */ + public DataStoreToolEngineSource setEngine(java.lang.String engine) { + this.engine = engine; + return this; + } + + /** + * Optional. A filter applied to the search across the Engine. Not relevant and not used if + * 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app- + * builder/docs/filter-search-metadata + * @return value or {@code null} for none + */ + public java.lang.String getFilter() { + return filter; + } + + /** + * Optional. A filter applied to the search across the Engine. Not relevant and not used if + * 'data_store_sources' is provided. See: https://cloud.google.com/generative-ai-app- + * builder/docs/filter-search-metadata + * @param filter filter or {@code null} for none + */ + public DataStoreToolEngineSource setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + @Override + public DataStoreToolEngineSource set(String fieldName, Object value) { + return (DataStoreToolEngineSource) super.set(fieldName, value); + } + + @Override + public DataStoreToolEngineSource clone() { + return (DataStoreToolEngineSource) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolGroundingConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolGroundingConfig.java new file mode 100644 index 00000000000..a61db56cfd5 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolGroundingConfig.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.ces.v1beta.model; + +/** + * Grounding 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolGroundingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether grounding is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float groundingLevel; + + /** + * Optional. Whether grounding is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether grounding is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolGroundingConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * @return value or {@code null} for none + */ + public java.lang.Float getGroundingLevel() { + return groundingLevel; + } + + /** + * Optional. The groundedness threshold of the answer based on the retrieved sources. The value + * has a configurable range of [1, 5]. The level is used to threshold the groundedness of the + * answer, meaning that all responses with a groundedness score below the threshold will fall back + * to returning relevant snippets only. For example, a level of 3 means that the groundedness + * score must be 3 or higher for the response to be returned. + * @param groundingLevel groundingLevel or {@code null} for none + */ + public DataStoreToolGroundingConfig setGroundingLevel(java.lang.Float groundingLevel) { + this.groundingLevel = groundingLevel; + return this; + } + + @Override + public DataStoreToolGroundingConfig set(String fieldName, Object value) { + return (DataStoreToolGroundingConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolGroundingConfig clone() { + return (DataStoreToolGroundingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolModalityConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolModalityConfig.java new file mode 100644 index 00000000000..8e35c0d8aad --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolModalityConfig.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * If specified, will apply the given configuration for the specified modality. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolModalityConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The grounding configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolGroundingConfig groundingConfig; + + /** + * Required. The modality type. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String modalityType; + + /** + * Optional. The rewriter config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolRewriterConfig rewriterConfig; + + /** + * Optional. The summarization config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreToolSummarizationConfig summarizationConfig; + + /** + * Optional. The grounding configuration. + * @return value or {@code null} for none + */ + public DataStoreToolGroundingConfig getGroundingConfig() { + return groundingConfig; + } + + /** + * Optional. The grounding configuration. + * @param groundingConfig groundingConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setGroundingConfig(DataStoreToolGroundingConfig groundingConfig) { + this.groundingConfig = groundingConfig; + return this; + } + + /** + * Required. The modality type. + * @return value or {@code null} for none + */ + public java.lang.String getModalityType() { + return modalityType; + } + + /** + * Required. The modality type. + * @param modalityType modalityType or {@code null} for none + */ + public DataStoreToolModalityConfig setModalityType(java.lang.String modalityType) { + this.modalityType = modalityType; + return this; + } + + /** + * Optional. The rewriter config. + * @return value or {@code null} for none + */ + public DataStoreToolRewriterConfig getRewriterConfig() { + return rewriterConfig; + } + + /** + * Optional. The rewriter config. + * @param rewriterConfig rewriterConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setRewriterConfig(DataStoreToolRewriterConfig rewriterConfig) { + this.rewriterConfig = rewriterConfig; + return this; + } + + /** + * Optional. The summarization config. + * @return value or {@code null} for none + */ + public DataStoreToolSummarizationConfig getSummarizationConfig() { + return summarizationConfig; + } + + /** + * Optional. The summarization config. + * @param summarizationConfig summarizationConfig or {@code null} for none + */ + public DataStoreToolModalityConfig setSummarizationConfig(DataStoreToolSummarizationConfig summarizationConfig) { + this.summarizationConfig = summarizationConfig; + return this; + } + + @Override + public DataStoreToolModalityConfig set(String fieldName, Object value) { + return (DataStoreToolModalityConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolModalityConfig clone() { + return (DataStoreToolModalityConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolRewriterConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolRewriterConfig.java new file mode 100644 index 00000000000..09d4f84f5fe --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolRewriterConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Rewriter 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolRewriterConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the rewriter is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. Whether the rewriter is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the rewriter is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolRewriterConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Required. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public DataStoreToolRewriterConfig setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @param prompt prompt or {@code null} for none + */ + public DataStoreToolRewriterConfig setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public DataStoreToolRewriterConfig set(String fieldName, Object value) { + return (DataStoreToolRewriterConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolRewriterConfig clone() { + return (DataStoreToolRewriterConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolSummarizationConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolSummarizationConfig.java new file mode 100644 index 00000000000..ada997fc479 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DataStoreToolSummarizationConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Summarization 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DataStoreToolSummarizationConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether summarization is disabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Optional. Configurations for the LLM model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. Whether summarization is disabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether summarization is disabled. + * @param disabled disabled or {@code null} for none + */ + public DataStoreToolSummarizationConfig setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Optional. Configurations for the LLM model. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Configurations for the LLM model. + * @param modelSettings modelSettings or {@code null} for none + */ + public DataStoreToolSummarizationConfig setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Optional. The prompt definition. If not set, default prompt will be used. + * @param prompt prompt or {@code null} for none + */ + public DataStoreToolSummarizationConfig setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public DataStoreToolSummarizationConfig set(String fieldName, Object value) { + return (DataStoreToolSummarizationConfig) super.set(fieldName, value); + } + + @Override + public DataStoreToolSummarizationConfig clone() { + return (DataStoreToolSummarizationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DeleteEvaluationRunOperationMetadata.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DeleteEvaluationRunOperationMetadata.java new file mode 100644 index 00000000000..d15f1490ff7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/DeleteEvaluationRunOperationMetadata.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Operation metadata for EvaluationService.DeleteEvaluationRun. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class DeleteEvaluationRunOperationMetadata extends com.google.api.client.json.GenericJson { + + @Override + public DeleteEvaluationRunOperationMetadata set(String fieldName, Object value) { + return (DeleteEvaluationRunOperationMetadata) super.set(fieldName, value); + } + + @Override + public DeleteEvaluationRunOperationMetadata clone() { + return (DeleteEvaluationRunOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Deployment.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Deployment.java new file mode 100644 index 00000000000..ea2f6c411c0 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Deployment.java @@ -0,0 +1,221 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A deployment represents an immutable, queryable version of the app. It is used to deploy an app + * version with a specific channel profile. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Deployment extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * Required. The channel profile used in the deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ChannelProfile channelProfile; + + /** + * Output only. Timestamp when this deployment was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. Display name of the deployment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when this deployment was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Required. The resource name of the app version to deploy. Format: + * projects/{project}/locations/{location}/apps/{app}/versions/{version} + * @param appVersion appVersion or {@code null} for none + */ + public Deployment setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * Required. The channel profile used in the deployment. + * @return value or {@code null} for none + */ + public ChannelProfile getChannelProfile() { + return channelProfile; + } + + /** + * Required. The channel profile used in the deployment. + * @param channelProfile channelProfile or {@code null} for none + */ + public Deployment setChannelProfile(ChannelProfile channelProfile) { + this.channelProfile = channelProfile; + return this; + } + + /** + * Output only. Timestamp when this deployment was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when this deployment was created. + * @param createTime createTime or {@code null} for none + */ + public Deployment setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. Display name of the deployment. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the deployment. + * @param displayName displayName or {@code null} for none + */ + public Deployment setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Deployment setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the deployment. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param name name or {@code null} for none + */ + public Deployment setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when this deployment was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when this deployment was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Deployment setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Deployment set(String fieldName, Object value) { + return (Deployment) super.set(fieldName, value); + } + + @Override + public Deployment clone() { + return (Deployment) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Empty.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Empty.java new file mode 100644 index 00000000000..addb841a9c8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Empty.java @@ -0,0 +1,45 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A generic empty message that you can re-use to avoid defining duplicated empty messages in your + * APIs. A typical example is to use it as the request or the response type of an API method. For + * instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Empty extends com.google.api.client.json.GenericJson { + + @Override + public Empty set(String fieldName, Object value) { + return (Empty) super.set(fieldName, value); + } + + @Override + public Empty clone() { + return (Empty) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndSession.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndSession.java new file mode 100644 index 00000000000..2163842fb96 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndSession.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.ces.v1beta.model; + +/** + * Indicates the session has terminated, due to either successful completion (e.g. user says "Good + * bye!" ) or an agent escalation. The agent will not process any further inputs after session is + * terminated and the client should half-close and disconnect after receiving all remaining + * responses from the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndSession extends com.google.api.client.json.GenericJson { + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Optional. Provides additional information about the end session signal, such as the reason for + * ending the session. + * @param metadata metadata or {@code null} for none + */ + public EndSession setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + @Override + public EndSession set(String fieldName, Object value) { + return (EndSession) super.set(fieldName, value); + } + + @Override + public EndSession clone() { + return (EndSession) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfig.java new file mode 100644 index 00000000000..3af9af1dbf8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfig.java @@ -0,0 +1,92 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * End-user authentication configuration used for Connection calls. The field values must be the + * names of context variables in the format `$context.variables.`. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Oauth 2.0 Authorization Code authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfigOauth2AuthCodeConfig oauth2AuthCodeConfig; + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndUserAuthConfigOauth2JwtBearerConfig oauth2JwtBearerConfig; + + /** + * Oauth 2.0 Authorization Code authentication. + * @return value or {@code null} for none + */ + public EndUserAuthConfigOauth2AuthCodeConfig getOauth2AuthCodeConfig() { + return oauth2AuthCodeConfig; + } + + /** + * Oauth 2.0 Authorization Code authentication. + * @param oauth2AuthCodeConfig oauth2AuthCodeConfig or {@code null} for none + */ + public EndUserAuthConfig setOauth2AuthCodeConfig(EndUserAuthConfigOauth2AuthCodeConfig oauth2AuthCodeConfig) { + this.oauth2AuthCodeConfig = oauth2AuthCodeConfig; + return this; + } + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * @return value or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig getOauth2JwtBearerConfig() { + return oauth2JwtBearerConfig; + } + + /** + * JWT Profile Oauth 2.0 Authorization Grant authentication. + * @param oauth2JwtBearerConfig oauth2JwtBearerConfig or {@code null} for none + */ + public EndUserAuthConfig setOauth2JwtBearerConfig(EndUserAuthConfigOauth2JwtBearerConfig oauth2JwtBearerConfig) { + this.oauth2JwtBearerConfig = oauth2JwtBearerConfig; + return this; + } + + @Override + public EndUserAuthConfig set(String fieldName, Object value) { + return (EndUserAuthConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfig clone() { + return (EndUserAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfigOauth2AuthCodeConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfigOauth2AuthCodeConfig.java new file mode 100644 index 00000000000..62cc97e27f8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfigOauth2AuthCodeConfig.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Oauth 2.0 Authorization Code authentication 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfigOauth2AuthCodeConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauthToken; + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getOauthToken() { + return oauthToken; + } + + /** + * Required. Oauth token parameter name to pass through. Must be in the format + * `$context.variables.`. + * @param oauthToken oauthToken or {@code null} for none + */ + public EndUserAuthConfigOauth2AuthCodeConfig setOauthToken(java.lang.String oauthToken) { + this.oauthToken = oauthToken; + return this; + } + + @Override + public EndUserAuthConfigOauth2AuthCodeConfig set(String fieldName, Object value) { + return (EndUserAuthConfigOauth2AuthCodeConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfigOauth2AuthCodeConfig clone() { + return (EndUserAuthConfigOauth2AuthCodeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfigOauth2JwtBearerConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfigOauth2JwtBearerConfig.java new file mode 100644 index 00000000000..d9aa403055b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EndUserAuthConfigOauth2JwtBearerConfig.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * JWT Profile Oauth 2.0 Authorization Grant authentication 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EndUserAuthConfigOauth2JwtBearerConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientKey; + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String issuer; + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subject; + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getClientKey() { + return clientKey; + } + + /** + * Required. Client parameter name to pass through. Must be in the format `$context.variables.`. + * @param clientKey clientKey or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setClientKey(java.lang.String clientKey) { + this.clientKey = clientKey; + return this; + } + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getIssuer() { + return issuer; + } + + /** + * Required. Issuer parameter name to pass through. Must be in the format `$context.variables.`. + * @param issuer issuer or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setIssuer(java.lang.String issuer) { + this.issuer = issuer; + return this; + } + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * @return value or {@code null} for none + */ + public java.lang.String getSubject() { + return subject; + } + + /** + * Required. Subject parameter name to pass through. Must be in the format `$context.variables.`. + * @param subject subject or {@code null} for none + */ + public EndUserAuthConfigOauth2JwtBearerConfig setSubject(java.lang.String subject) { + this.subject = subject; + return this; + } + + @Override + public EndUserAuthConfigOauth2JwtBearerConfig set(String fieldName, Object value) { + return (EndUserAuthConfigOauth2JwtBearerConfig) super.set(fieldName, value); + } + + @Override + public EndUserAuthConfigOauth2JwtBearerConfig clone() { + return (EndUserAuthConfigOauth2JwtBearerConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Evaluation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Evaluation.java new file mode 100644 index 00000000000..3e018b7ae4e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Evaluation.java @@ -0,0 +1,466 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An evaluation represents all of the information needed to simulate and evaluate an agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Evaluation extends com.google.api.client.json.GenericJson { + + /** + * Output only. The aggregated metrics for this evaluation across all runs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AggregatedMetrics aggregatedMetrics; + + /** + * Output only. Timestamp when the evaluation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The user who created the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String createdBy; + + /** + * Optional. User-defined description of the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. User-defined display name of the evaluation. Unique within an App. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. List of evaluation datasets the evaluation belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationDatasets; + + /** + * Output only. The EvaluationRuns that this Evaluation is associated with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationRuns; + + /** + * Optional. The golden steps to be evaluated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationGolden golden; + + /** + * Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing + * a tool, toolset, or agent that has since been deleted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean invalid; + + /** + * Output only. The latest evaluation result for this evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResult lastCompletedResult; + + /** + * Output only. The last 10 evaluation results for this evaluation. This is only populated if + * include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List lastTenResults; + + /** + * Output only. The user who last updated the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastUpdatedBy; + + /** + * Identifier. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The config for a scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationScenario scenario; + + /** + * Optional. User defined tags to categorize the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * Output only. Timestamp when the evaluation was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The aggregated metrics for this evaluation across all runs. + * @return value or {@code null} for none + */ + public AggregatedMetrics getAggregatedMetrics() { + return aggregatedMetrics; + } + + /** + * Output only. The aggregated metrics for this evaluation across all runs. + * @param aggregatedMetrics aggregatedMetrics or {@code null} for none + */ + public Evaluation setAggregatedMetrics(AggregatedMetrics aggregatedMetrics) { + this.aggregatedMetrics = aggregatedMetrics; + return this; + } + + /** + * Output only. Timestamp when the evaluation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the evaluation was created. + * @param createTime createTime or {@code null} for none + */ + public Evaluation setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The user who created the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getCreatedBy() { + return createdBy; + } + + /** + * Output only. The user who created the evaluation. + * @param createdBy createdBy or {@code null} for none + */ + public Evaluation setCreatedBy(java.lang.String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Optional. User-defined description of the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. User-defined description of the evaluation. + * @param description description or {@code null} for none + */ + public Evaluation setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. User-defined display name of the evaluation. Unique within an App. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. User-defined display name of the evaluation. Unique within an App. + * @param displayName displayName or {@code null} for none + */ + public Evaluation setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Evaluation setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. List of evaluation datasets the evaluation belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @return value or {@code null} for none + */ + public java.util.List getEvaluationDatasets() { + return evaluationDatasets; + } + + /** + * Output only. List of evaluation datasets the evaluation belongs to. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @param evaluationDatasets evaluationDatasets or {@code null} for none + */ + public Evaluation setEvaluationDatasets(java.util.List evaluationDatasets) { + this.evaluationDatasets = evaluationDatasets; + return this; + } + + /** + * Output only. The EvaluationRuns that this Evaluation is associated with. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationRuns() { + return evaluationRuns; + } + + /** + * Output only. The EvaluationRuns that this Evaluation is associated with. + * @param evaluationRuns evaluationRuns or {@code null} for none + */ + public Evaluation setEvaluationRuns(java.util.List evaluationRuns) { + this.evaluationRuns = evaluationRuns; + return this; + } + + /** + * Optional. The golden steps to be evaluated. + * @return value or {@code null} for none + */ + public EvaluationGolden getGolden() { + return golden; + } + + /** + * Optional. The golden steps to be evaluated. + * @param golden golden or {@code null} for none + */ + public Evaluation setGolden(EvaluationGolden golden) { + this.golden = golden; + return this; + } + + /** + * Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing + * a tool, toolset, or agent that has since been deleted. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInvalid() { + return invalid; + } + + /** + * Output only. Whether the evaluation is invalid. This can happen if an evaluation is referencing + * a tool, toolset, or agent that has since been deleted. + * @param invalid invalid or {@code null} for none + */ + public Evaluation setInvalid(java.lang.Boolean invalid) { + this.invalid = invalid; + return this; + } + + /** + * Output only. The latest evaluation result for this evaluation. + * @return value or {@code null} for none + */ + public EvaluationResult getLastCompletedResult() { + return lastCompletedResult; + } + + /** + * Output only. The latest evaluation result for this evaluation. + * @param lastCompletedResult lastCompletedResult or {@code null} for none + */ + public Evaluation setLastCompletedResult(EvaluationResult lastCompletedResult) { + this.lastCompletedResult = lastCompletedResult; + return this; + } + + /** + * Output only. The last 10 evaluation results for this evaluation. This is only populated if + * include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest. + * @return value or {@code null} for none + */ + public java.util.List getLastTenResults() { + return lastTenResults; + } + + /** + * Output only. The last 10 evaluation results for this evaluation. This is only populated if + * include_last_ten_results is set to true in the ListEvaluationsRequest or GetEvaluationRequest. + * @param lastTenResults lastTenResults or {@code null} for none + */ + public Evaluation setLastTenResults(java.util.List lastTenResults) { + this.lastTenResults = lastTenResults; + return this; + } + + /** + * Output only. The user who last updated the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getLastUpdatedBy() { + return lastUpdatedBy; + } + + /** + * Output only. The user who last updated the evaluation. + * @param lastUpdatedBy lastUpdatedBy or {@code null} for none + */ + public Evaluation setLastUpdatedBy(java.lang.String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Identifier. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of this evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @param name name or {@code null} for none + */ + public Evaluation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The config for a scenario. + * @return value or {@code null} for none + */ + public EvaluationScenario getScenario() { + return scenario; + } + + /** + * Optional. The config for a scenario. + * @param scenario scenario or {@code null} for none + */ + public Evaluation setScenario(EvaluationScenario scenario) { + this.scenario = scenario; + return this; + } + + /** + * Optional. User defined tags to categorize the evaluation. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * Optional. User defined tags to categorize the evaluation. + * @param tags tags or {@code null} for none + */ + public Evaluation setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + /** + * Output only. Timestamp when the evaluation was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the evaluation was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Evaluation setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Evaluation set(String fieldName, Object value) { + return (Evaluation) super.set(fieldName, value); + } + + @Override + public Evaluation clone() { + return (Evaluation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationConfig.java new file mode 100644 index 00000000000..874fe2ec800 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationConfig.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * EvaluationConfig configures settings for running the evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The channel to evaluate. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationChannel; + + /** + * Optional. Configuration for processing the input audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InputAudioConfig inputAudioConfig; + + /** + * Optional. Configuration for generating the output audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OutputAudioConfig outputAudioConfig; + + /** + * Optional. Specifies whether the evaluation should use real tool calls or fake tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolCallBehaviour; + + /** + * Optional. The channel to evaluate. + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationChannel() { + return evaluationChannel; + } + + /** + * Optional. The channel to evaluate. + * @param evaluationChannel evaluationChannel or {@code null} for none + */ + public EvaluationConfig setEvaluationChannel(java.lang.String evaluationChannel) { + this.evaluationChannel = evaluationChannel; + return this; + } + + /** + * Optional. Configuration for processing the input audio. + * @return value or {@code null} for none + */ + public InputAudioConfig getInputAudioConfig() { + return inputAudioConfig; + } + + /** + * Optional. Configuration for processing the input audio. + * @param inputAudioConfig inputAudioConfig or {@code null} for none + */ + public EvaluationConfig setInputAudioConfig(InputAudioConfig inputAudioConfig) { + this.inputAudioConfig = inputAudioConfig; + return this; + } + + /** + * Optional. Configuration for generating the output audio. + * @return value or {@code null} for none + */ + public OutputAudioConfig getOutputAudioConfig() { + return outputAudioConfig; + } + + /** + * Optional. Configuration for generating the output audio. + * @param outputAudioConfig outputAudioConfig or {@code null} for none + */ + public EvaluationConfig setOutputAudioConfig(OutputAudioConfig outputAudioConfig) { + this.outputAudioConfig = outputAudioConfig; + return this; + } + + /** + * Optional. Specifies whether the evaluation should use real tool calls or fake tools. + * @return value or {@code null} for none + */ + public java.lang.String getToolCallBehaviour() { + return toolCallBehaviour; + } + + /** + * Optional. Specifies whether the evaluation should use real tool calls or fake tools. + * @param toolCallBehaviour toolCallBehaviour or {@code null} for none + */ + public EvaluationConfig setToolCallBehaviour(java.lang.String toolCallBehaviour) { + this.toolCallBehaviour = toolCallBehaviour; + return this; + } + + @Override + public EvaluationConfig set(String fieldName, Object value) { + return (EvaluationConfig) super.set(fieldName, value); + } + + @Override + public EvaluationConfig clone() { + return (EvaluationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationDataset.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationDataset.java new file mode 100644 index 00000000000..b99f8f3d344 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationDataset.java @@ -0,0 +1,266 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An evaluation dataset represents a set of evaluations that are grouped together basaed on shared + * tags. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationDataset extends com.google.api.client.json.GenericJson { + + /** + * Output only. The aggregated metrics for this evaluation dataset across all runs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AggregatedMetrics aggregatedMetrics; + + /** + * Output only. Timestamp when the evaluation dataset was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The user who created the evaluation dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String createdBy; + + /** + * Required. User-defined display name of the evaluation dataset. Unique within an App. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Evaluations that are included in this dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + /** + * Output only. The user who last updated the evaluation dataset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastUpdatedBy; + + /** + * Identifier. The unique identifier of this evaluation dataset. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the evaluation dataset was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. The aggregated metrics for this evaluation dataset across all runs. + * @return value or {@code null} for none + */ + public AggregatedMetrics getAggregatedMetrics() { + return aggregatedMetrics; + } + + /** + * Output only. The aggregated metrics for this evaluation dataset across all runs. + * @param aggregatedMetrics aggregatedMetrics or {@code null} for none + */ + public EvaluationDataset setAggregatedMetrics(AggregatedMetrics aggregatedMetrics) { + this.aggregatedMetrics = aggregatedMetrics; + return this; + } + + /** + * Output only. Timestamp when the evaluation dataset was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the evaluation dataset was created. + * @param createTime createTime or {@code null} for none + */ + public EvaluationDataset setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The user who created the evaluation dataset. + * @return value or {@code null} for none + */ + public java.lang.String getCreatedBy() { + return createdBy; + } + + /** + * Output only. The user who created the evaluation dataset. + * @param createdBy createdBy or {@code null} for none + */ + public EvaluationDataset setCreatedBy(java.lang.String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Required. User-defined display name of the evaluation dataset. Unique within an App. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. User-defined display name of the evaluation dataset. Unique within an App. + * @param displayName displayName or {@code null} for none + */ + public EvaluationDataset setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public EvaluationDataset setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Evaluations that are included in this dataset. + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * Optional. Evaluations that are included in this dataset. + * @param evaluations evaluations or {@code null} for none + */ + public EvaluationDataset setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + /** + * Output only. The user who last updated the evaluation dataset. + * @return value or {@code null} for none + */ + public java.lang.String getLastUpdatedBy() { + return lastUpdatedBy; + } + + /** + * Output only. The user who last updated the evaluation dataset. + * @param lastUpdatedBy lastUpdatedBy or {@code null} for none + */ + public EvaluationDataset setLastUpdatedBy(java.lang.String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Identifier. The unique identifier of this evaluation dataset. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of this evaluation dataset. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @param name name or {@code null} for none + */ + public EvaluationDataset setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the evaluation dataset was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the evaluation dataset was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public EvaluationDataset setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public EvaluationDataset set(String fieldName, Object value) { + return (EvaluationDataset) super.set(fieldName, value); + } + + @Override + public EvaluationDataset clone() { + return (EvaluationDataset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationErrorInfo.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationErrorInfo.java new file mode 100644 index 00000000000..d786286cebc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationErrorInfo.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Information about an error encountered during an evaluation execution. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationErrorInfo extends com.google.api.client.json.GenericJson { + + /** + * Output only. The error message. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Output only. The type of error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorType; + + /** + * Output only. The session ID for the conversation that caused the error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String sessionId; + + /** + * Output only. The error message. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. The error message. + * @param errorMessage errorMessage or {@code null} for none + */ + public EvaluationErrorInfo setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Output only. The type of error. + * @return value or {@code null} for none + */ + public java.lang.String getErrorType() { + return errorType; + } + + /** + * Output only. The type of error. + * @param errorType errorType or {@code null} for none + */ + public EvaluationErrorInfo setErrorType(java.lang.String errorType) { + this.errorType = errorType; + return this; + } + + /** + * Output only. The session ID for the conversation that caused the error. + * @return value or {@code null} for none + */ + public java.lang.String getSessionId() { + return sessionId; + } + + /** + * Output only. The session ID for the conversation that caused the error. + * @param sessionId sessionId or {@code null} for none + */ + public EvaluationErrorInfo setSessionId(java.lang.String sessionId) { + this.sessionId = sessionId; + return this; + } + + @Override + public EvaluationErrorInfo set(String fieldName, Object value) { + return (EvaluationErrorInfo) super.set(fieldName, value); + } + + @Override + public EvaluationErrorInfo clone() { + return (EvaluationErrorInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationExpectation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationExpectation.java new file mode 100644 index 00000000000..b7f305d7e93 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationExpectation.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An evaluation expectation represents a specific criteria to evaluate against. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationExpectation extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the evaluation expectation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. User-defined display name. Must be unique within the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Evaluation criteria based on an LLM prompt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationExpectationLlmCriteria llmCriteria; + + /** + * Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/l + * ocations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. User-defined tags for expectations. Can be used to filter expectations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tags; + + /** + * Output only. Timestamp when the evaluation expectation was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Timestamp when the evaluation expectation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the evaluation expectation was created. + * @param createTime createTime or {@code null} for none + */ + public EvaluationExpectation setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. User-defined display name. Must be unique within the app. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. User-defined display name. Must be unique within the app. + * @param displayName displayName or {@code null} for none + */ + public EvaluationExpectation setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public EvaluationExpectation setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Evaluation criteria based on an LLM prompt. + * @return value or {@code null} for none + */ + public EvaluationExpectationLlmCriteria getLlmCriteria() { + return llmCriteria; + } + + /** + * Optional. Evaluation criteria based on an LLM prompt. + * @param llmCriteria llmCriteria or {@code null} for none + */ + public EvaluationExpectation setLlmCriteria(EvaluationExpectationLlmCriteria llmCriteria) { + this.llmCriteria = llmCriteria; + return this; + } + + /** + * Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/l + * ocations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of this evaluation expectation. Format: `projects/{project}/l + * ocations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}` + * @param name name or {@code null} for none + */ + public EvaluationExpectation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. User-defined tags for expectations. Can be used to filter expectations. + * @return value or {@code null} for none + */ + public java.util.List getTags() { + return tags; + } + + /** + * Optional. User-defined tags for expectations. Can be used to filter expectations. + * @param tags tags or {@code null} for none + */ + public EvaluationExpectation setTags(java.util.List tags) { + this.tags = tags; + return this; + } + + /** + * Output only. Timestamp when the evaluation expectation was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the evaluation expectation was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public EvaluationExpectation setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public EvaluationExpectation set(String fieldName, Object value) { + return (EvaluationExpectation) super.set(fieldName, value); + } + + @Override + public EvaluationExpectation clone() { + return (EvaluationExpectation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationExpectationLlmCriteria.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationExpectationLlmCriteria.java new file mode 100644 index 00000000000..e6d67245079 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationExpectationLlmCriteria.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for LLM-based evaluation criteria. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationExpectationLlmCriteria extends com.google.api.client.json.GenericJson { + + /** + * Required. The prompt/instructions provided to the LLM judge. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Required. The prompt/instructions provided to the LLM judge. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Required. The prompt/instructions provided to the LLM judge. + * @param prompt prompt or {@code null} for none + */ + public EvaluationExpectationLlmCriteria setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public EvaluationExpectationLlmCriteria set(String fieldName, Object value) { + return (EvaluationExpectationLlmCriteria) super.set(fieldName, value); + } + + @Override + public EvaluationExpectationLlmCriteria clone() { + return (EvaluationExpectationLlmCriteria) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGolden.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGolden.java new file mode 100644 index 00000000000..7a78727bb82 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGolden.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The steps required to replay a golden 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationGolden extends com.google.api.client.json.GenericJson { + + /** + * Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `p + * rojects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation + * }` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationExpectations; + + /** + * Required. The golden turns required to replay a golden conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List turns; + + /** + * Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `p + * rojects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation + * }` + * @return value or {@code null} for none + */ + public java.util.List getEvaluationExpectations() { + return evaluationExpectations; + } + + /** + * Optional. The evaluation expectations to evaluate the replayed conversation against. Format: `p + * rojects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evaluationExpectation + * }` + * @param evaluationExpectations evaluationExpectations or {@code null} for none + */ + public EvaluationGolden setEvaluationExpectations(java.util.List evaluationExpectations) { + this.evaluationExpectations = evaluationExpectations; + return this; + } + + /** + * Required. The golden turns required to replay a golden conversation. + * @return value or {@code null} for none + */ + public java.util.List getTurns() { + return turns; + } + + /** + * Required. The golden turns required to replay a golden conversation. + * @param turns turns or {@code null} for none + */ + public EvaluationGolden setTurns(java.util.List turns) { + this.turns = turns; + return this; + } + + @Override + public EvaluationGolden set(String fieldName, Object value) { + return (EvaluationGolden) super.set(fieldName, value); + } + + @Override + public EvaluationGolden clone() { + return (EvaluationGolden) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGoldenExpectation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGoldenExpectation.java new file mode 100644 index 00000000000..341e378759b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGoldenExpectation.java @@ -0,0 +1,223 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a single, checkable requirement. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationGoldenExpectation extends com.google.api.client.json.GenericJson { + + /** + * Optional. Check that the agent responded with the correct response. The role "agent" is + * implied. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Message agentResponse; + + /** + * Optional. Check that the agent transferred the conversation to a different agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentTransfer agentTransfer; + + /** + * Optional. The tool response to mock, with the parameters of interest specified. Any parameters + * not specified will be hallucinated by the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse mockToolResponse; + + /** + * Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., + * "Check_Payment_Tool_Called". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String note; + + /** + * Optional. Check that a specific tool was called with the parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCall toolCall; + + /** + * Optional. Check that a specific tool had the expected response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse toolResponse; + + /** + * Optional. Check that the agent updated the session variables to the expected values. Used to + * also capture agent variable updates for golden evals. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map updatedVariables; + + /** + * Optional. Check that the agent responded with the correct response. The role "agent" is + * implied. + * @return value or {@code null} for none + */ + public Message getAgentResponse() { + return agentResponse; + } + + /** + * Optional. Check that the agent responded with the correct response. The role "agent" is + * implied. + * @param agentResponse agentResponse or {@code null} for none + */ + public EvaluationGoldenExpectation setAgentResponse(Message agentResponse) { + this.agentResponse = agentResponse; + return this; + } + + /** + * Optional. Check that the agent transferred the conversation to a different agent. + * @return value or {@code null} for none + */ + public AgentTransfer getAgentTransfer() { + return agentTransfer; + } + + /** + * Optional. Check that the agent transferred the conversation to a different agent. + * @param agentTransfer agentTransfer or {@code null} for none + */ + public EvaluationGoldenExpectation setAgentTransfer(AgentTransfer agentTransfer) { + this.agentTransfer = agentTransfer; + return this; + } + + /** + * Optional. The tool response to mock, with the parameters of interest specified. Any parameters + * not specified will be hallucinated by the LLM. + * @return value or {@code null} for none + */ + public ToolResponse getMockToolResponse() { + return mockToolResponse; + } + + /** + * Optional. The tool response to mock, with the parameters of interest specified. Any parameters + * not specified will be hallucinated by the LLM. + * @param mockToolResponse mockToolResponse or {@code null} for none + */ + public EvaluationGoldenExpectation setMockToolResponse(ToolResponse mockToolResponse) { + this.mockToolResponse = mockToolResponse; + return this; + } + + /** + * Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., + * "Check_Payment_Tool_Called". + * @return value or {@code null} for none + */ + public java.lang.String getNote() { + return note; + } + + /** + * Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., + * "Check_Payment_Tool_Called". + * @param note note or {@code null} for none + */ + public EvaluationGoldenExpectation setNote(java.lang.String note) { + this.note = note; + return this; + } + + /** + * Optional. Check that a specific tool was called with the parameters. + * @return value or {@code null} for none + */ + public ToolCall getToolCall() { + return toolCall; + } + + /** + * Optional. Check that a specific tool was called with the parameters. + * @param toolCall toolCall or {@code null} for none + */ + public EvaluationGoldenExpectation setToolCall(ToolCall toolCall) { + this.toolCall = toolCall; + return this; + } + + /** + * Optional. Check that a specific tool had the expected response. + * @return value or {@code null} for none + */ + public ToolResponse getToolResponse() { + return toolResponse; + } + + /** + * Optional. Check that a specific tool had the expected response. + * @param toolResponse toolResponse or {@code null} for none + */ + public EvaluationGoldenExpectation setToolResponse(ToolResponse toolResponse) { + this.toolResponse = toolResponse; + return this; + } + + /** + * Optional. Check that the agent updated the session variables to the expected values. Used to + * also capture agent variable updates for golden evals. + * @return value or {@code null} for none + */ + public java.util.Map getUpdatedVariables() { + return updatedVariables; + } + + /** + * Optional. Check that the agent updated the session variables to the expected values. Used to + * also capture agent variable updates for golden evals. + * @param updatedVariables updatedVariables or {@code null} for none + */ + public EvaluationGoldenExpectation setUpdatedVariables(java.util.Map updatedVariables) { + this.updatedVariables = updatedVariables; + return this; + } + + @Override + public EvaluationGoldenExpectation set(String fieldName, Object value) { + return (EvaluationGoldenExpectation) super.set(fieldName, value); + } + + @Override + public EvaluationGoldenExpectation clone() { + return (EvaluationGoldenExpectation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGoldenTurn.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGoldenTurn.java new file mode 100644 index 00000000000..554be2087be --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationGoldenTurn.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.ces.v1beta.model; + +/** + * A golden turn defines a single turn in a golden 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationGoldenTurn extends com.google.api.client.json.GenericJson { + + /** + * Optional. The root span of the golden turn for processing and maintaining audio information. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Span rootSpan; + + /** + * Required. The steps required to replay a golden conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List steps; + + /** + * Optional. The root span of the golden turn for processing and maintaining audio information. + * @return value or {@code null} for none + */ + public Span getRootSpan() { + return rootSpan; + } + + /** + * Optional. The root span of the golden turn for processing and maintaining audio information. + * @param rootSpan rootSpan or {@code null} for none + */ + public EvaluationGoldenTurn setRootSpan(Span rootSpan) { + this.rootSpan = rootSpan; + return this; + } + + /** + * Required. The steps required to replay a golden conversation. + * @return value or {@code null} for none + */ + public java.util.List getSteps() { + return steps; + } + + /** + * Required. The steps required to replay a golden conversation. + * @param steps steps or {@code null} for none + */ + public EvaluationGoldenTurn setSteps(java.util.List steps) { + this.steps = steps; + return this; + } + + @Override + public EvaluationGoldenTurn set(String fieldName, Object value) { + return (EvaluationGoldenTurn) super.set(fieldName, value); + } + + @Override + public EvaluationGoldenTurn clone() { + return (EvaluationGoldenTurn) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholds.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholds.java new file mode 100644 index 00000000000..4153fd51283 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholds.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.ces.v1beta.model; + +/** + * Threshold settings for metrics in an Evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The golden evaluation metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds; + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenHallucinationMetricBehavior; + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String hallucinationMetricBehavior; + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scenarioHallucinationMetricBehavior; + + /** + * Optional. The golden evaluation metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds getGoldenEvaluationMetricsThresholds() { + return goldenEvaluationMetricsThresholds; + } + + /** + * Optional. The golden evaluation metrics thresholds. + * @param goldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholds setGoldenEvaluationMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds goldenEvaluationMetricsThresholds) { + this.goldenEvaluationMetricsThresholds = goldenEvaluationMetricsThresholds; + return this; + } + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenHallucinationMetricBehavior() { + return goldenHallucinationMetricBehavior; + } + + /** + * Optional. The hallucination metric behavior for golden evaluations. + * @param goldenHallucinationMetricBehavior goldenHallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setGoldenHallucinationMetricBehavior(java.lang.String goldenHallucinationMetricBehavior) { + this.goldenHallucinationMetricBehavior = goldenHallucinationMetricBehavior; + return this; + } + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getHallucinationMetricBehavior() { + return hallucinationMetricBehavior; + } + + /** + * Optional. Deprecated: Use `golden_hallucination_metric_behavior` instead. The hallucination + * metric behavior is currently used for golden evaluations. + * @param hallucinationMetricBehavior hallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setHallucinationMetricBehavior(java.lang.String hallucinationMetricBehavior) { + this.hallucinationMetricBehavior = hallucinationMetricBehavior; + return this; + } + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getScenarioHallucinationMetricBehavior() { + return scenarioHallucinationMetricBehavior; + } + + /** + * Optional. The hallucination metric behavior for scenario evaluations. + * @param scenarioHallucinationMetricBehavior scenarioHallucinationMetricBehavior or {@code null} for none + */ + public EvaluationMetricsThresholds setScenarioHallucinationMetricBehavior(java.lang.String scenarioHallucinationMetricBehavior) { + this.scenarioHallucinationMetricBehavior = scenarioHallucinationMetricBehavior; + return this; + } + + @Override + public EvaluationMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholds clone() { + return (EvaluationMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.java new file mode 100644 index 00000000000..78636a72573 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.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.ces.v1beta.model; + +/** + * Settings for golden evaluations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The expectation level metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds expectationLevelMetricsThresholds; + + /** + * Optional. The turn level metrics thresholds. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds turnLevelMetricsThresholds; + + /** + * Optional. The expectation level metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds getExpectationLevelMetricsThresholds() { + return expectationLevelMetricsThresholds; + } + + /** + * Optional. The expectation level metrics thresholds. + * @param expectationLevelMetricsThresholds expectationLevelMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds setExpectationLevelMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds expectationLevelMetricsThresholds) { + this.expectationLevelMetricsThresholds = expectationLevelMetricsThresholds; + return this; + } + + /** + * Optional. The turn level metrics thresholds. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds getTurnLevelMetricsThresholds() { + return turnLevelMetricsThresholds; + } + + /** + * Optional. The turn level metrics thresholds. + * @param turnLevelMetricsThresholds turnLevelMetricsThresholds or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds setTurnLevelMetricsThresholds(EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds turnLevelMetricsThresholds) { + this.turnLevelMetricsThresholds = turnLevelMetricsThresholds; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java new file mode 100644 index 00000000000..8077e9c516f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Expectation level metrics thresholds. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float toolInvocationParameterCorrectnessThreshold; + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getToolInvocationParameterCorrectnessThreshold() { + return toolInvocationParameterCorrectnessThreshold; + } + + /** + * Optional. The success threshold for individual tool invocation parameter correctness. Must be a + * float between 0 and 1. Default is 1.0. + * @param toolInvocationParameterCorrectnessThreshold toolInvocationParameterCorrectnessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds setToolInvocationParameterCorrectnessThreshold(java.lang.Float toolInvocationParameterCorrectnessThreshold) { + this.toolInvocationParameterCorrectnessThreshold = toolInvocationParameterCorrectnessThreshold; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java new file mode 100644 index 00000000000..40fb1c1a7cc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Turn level metrics thresholds. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds extends com.google.api.client.json.GenericJson { + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float overallToolInvocationCorrectnessThreshold; + + /** + * Optional. The semantic similarity channel to use for evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String semanticSimilarityChannel; + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer semanticSimilaritySuccessThreshold; + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * @return value or {@code null} for none + */ + public java.lang.Float getOverallToolInvocationCorrectnessThreshold() { + return overallToolInvocationCorrectnessThreshold; + } + + /** + * Optional. The success threshold for overall tool invocation correctness. Must be a float + * between 0 and 1. Default is 1.0. + * @param overallToolInvocationCorrectnessThreshold overallToolInvocationCorrectnessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setOverallToolInvocationCorrectnessThreshold(java.lang.Float overallToolInvocationCorrectnessThreshold) { + this.overallToolInvocationCorrectnessThreshold = overallToolInvocationCorrectnessThreshold; + return this; + } + + /** + * Optional. The semantic similarity channel to use for evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getSemanticSimilarityChannel() { + return semanticSimilarityChannel; + } + + /** + * Optional. The semantic similarity channel to use for evaluation. + * @param semanticSimilarityChannel semanticSimilarityChannel or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setSemanticSimilarityChannel(java.lang.String semanticSimilarityChannel) { + this.semanticSimilarityChannel = semanticSimilarityChannel; + return this; + } + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * @return value or {@code null} for none + */ + public java.lang.Integer getSemanticSimilaritySuccessThreshold() { + return semanticSimilaritySuccessThreshold; + } + + /** + * Optional. The success threshold for semantic similarity. Must be an integer between 0 and 4. + * Default is >= 3. + * @param semanticSimilaritySuccessThreshold semanticSimilaritySuccessThreshold or {@code null} for none + */ + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds setSemanticSimilaritySuccessThreshold(java.lang.Integer semanticSimilaritySuccessThreshold) { + this.semanticSimilaritySuccessThreshold = semanticSimilaritySuccessThreshold; + return this; + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds set(String fieldName, Object value) { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) super.set(fieldName, value); + } + + @Override + public EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds clone() { + return (EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationPersona.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationPersona.java new file mode 100644 index 00000000000..737a2051a00 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationPersona.java @@ -0,0 +1,166 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A persona represents an end user in an evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationPersona extends com.google.api.client.json.GenericJson { + + /** + * Optional. The description of the persona. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The display name of the persona. Unique within an app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The unique identifier of the persona. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. An instruction for the agent on how to behave in the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String personality; + + /** + * Optional. Configuration for how the persona sounds (TTS settings). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationPersonaSpeechConfig speechConfig; + + /** + * Optional. The description of the persona. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the persona. + * @param description description or {@code null} for none + */ + public EvaluationPersona setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The display name of the persona. Unique within an app. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The display name of the persona. Unique within an app. + * @param displayName displayName or {@code null} for none + */ + public EvaluationPersona setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. The unique identifier of the persona. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The unique identifier of the persona. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` + * @param name name or {@code null} for none + */ + public EvaluationPersona setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. An instruction for the agent on how to behave in the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getPersonality() { + return personality; + } + + /** + * Required. An instruction for the agent on how to behave in the evaluation. + * @param personality personality or {@code null} for none + */ + public EvaluationPersona setPersonality(java.lang.String personality) { + this.personality = personality; + return this; + } + + /** + * Optional. Configuration for how the persona sounds (TTS settings). + * @return value or {@code null} for none + */ + public EvaluationPersonaSpeechConfig getSpeechConfig() { + return speechConfig; + } + + /** + * Optional. Configuration for how the persona sounds (TTS settings). + * @param speechConfig speechConfig or {@code null} for none + */ + public EvaluationPersona setSpeechConfig(EvaluationPersonaSpeechConfig speechConfig) { + this.speechConfig = speechConfig; + return this; + } + + @Override + public EvaluationPersona set(String fieldName, Object value) { + return (EvaluationPersona) super.set(fieldName, value); + } + + @Override + public EvaluationPersona clone() { + return (EvaluationPersona) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationPersonaSpeechConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationPersonaSpeechConfig.java new file mode 100644 index 00000000000..6b18da9025e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationPersonaSpeechConfig.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for Text-to-Speech generation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationPersonaSpeechConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The simulated audio environment. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String environment; + + /** + * Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster + * (e.g., 1.5). Useful for testing how the agent handles fast talkers. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double speakingRate; + + /** + * Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB- + * Standard-A" + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String voiceId; + + /** + * Optional. The simulated audio environment. + * @return value or {@code null} for none + */ + public java.lang.String getEnvironment() { + return environment; + } + + /** + * Optional. The simulated audio environment. + * @param environment environment or {@code null} for none + */ + public EvaluationPersonaSpeechConfig setEnvironment(java.lang.String environment) { + this.environment = environment; + return this; + } + + /** + * Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster + * (e.g., 1.5). Useful for testing how the agent handles fast talkers. + * @return value or {@code null} for none + */ + public java.lang.Double getSpeakingRate() { + return speakingRate; + } + + /** + * Optional. The speaking rate. 1.0 is normal. Lower is slower (e.g., 0.8), higher is faster + * (e.g., 1.5). Useful for testing how the agent handles fast talkers. + * @param speakingRate speakingRate or {@code null} for none + */ + public EvaluationPersonaSpeechConfig setSpeakingRate(java.lang.Double speakingRate) { + this.speakingRate = speakingRate; + return this; + } + + /** + * Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB- + * Standard-A" + * @return value or {@code null} for none + */ + public java.lang.String getVoiceId() { + return voiceId; + } + + /** + * Optional. The specific voice identifier/accent to use. Example: "en-US-Wavenet-D" or "en-GB- + * Standard-A" + * @param voiceId voiceId or {@code null} for none + */ + public EvaluationPersonaSpeechConfig setVoiceId(java.lang.String voiceId) { + this.voiceId = voiceId; + return this; + } + + @Override + public EvaluationPersonaSpeechConfig set(String fieldName, Object value) { + return (EvaluationPersonaSpeechConfig) super.set(fieldName, value); + } + + @Override + public EvaluationPersonaSpeechConfig clone() { + return (EvaluationPersonaSpeechConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResult.java new file mode 100644 index 00000000000..b921fc79f53 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResult.java @@ -0,0 +1,517 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An evaluation result represents the output of running an Evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The app version used to generate the conversation that resulted in this result. + * Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * Output only. The display name of the `app_version` that the evaluation ran against. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersionDisplayName; + + /** + * Output only. The changelog of the app version that the evaluation ran against. This is + * populated if user runs evaluation on latest/draft. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String changelog; + + /** + * Output only. The create time of the changelog of the app version that the evaluation ran + * against. This is populated if user runs evaluation on latest/draft. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String changelogCreateTime; + + /** + * Output only. The configuration used in the evaluation run that resulted in this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationConfig config; + + /** + * Output only. Timestamp when the evaluation result was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it + * has the following format: " result - ". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Deprecated: Use `error_info` instead. Errors encountered during execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. Error information for the evaluation result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationErrorInfo errorInfo; + + /** + * Output only. The evaluation thresholds for the result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationMetricsThresholds evaluationMetricsThresholds; + + /** + * Output only. The evaluation run that produced this result. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationRun; + + /** + * Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationStatus; + + /** + * Output only. The state of the evaluation result execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String executionState; + + /** + * Output only. The outcome of a golden evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultGoldenResult goldenResult; + + /** + * Output only. The method used to run the golden evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenRunMethod; + + /** + * Output only. The user who initiated the evaluation run that resulted in this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String initiatedBy; + + /** + * Identifier. The unique identifier of the evaluation result. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The persona used to generate the conversation for the evaluation result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationPersona persona; + + /** + * Output only. The outcome of a scenario evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultScenarioResult scenarioResult; + + /** + * Output only. The app version used to generate the conversation that resulted in this result. + * Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Output only. The app version used to generate the conversation that resulted in this result. + * Format: `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param appVersion appVersion or {@code null} for none + */ + public EvaluationResult setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * Output only. The display name of the `app_version` that the evaluation ran against. + * @return value or {@code null} for none + */ + public java.lang.String getAppVersionDisplayName() { + return appVersionDisplayName; + } + + /** + * Output only. The display name of the `app_version` that the evaluation ran against. + * @param appVersionDisplayName appVersionDisplayName or {@code null} for none + */ + public EvaluationResult setAppVersionDisplayName(java.lang.String appVersionDisplayName) { + this.appVersionDisplayName = appVersionDisplayName; + return this; + } + + /** + * Output only. The changelog of the app version that the evaluation ran against. This is + * populated if user runs evaluation on latest/draft. + * @return value or {@code null} for none + */ + public java.lang.String getChangelog() { + return changelog; + } + + /** + * Output only. The changelog of the app version that the evaluation ran against. This is + * populated if user runs evaluation on latest/draft. + * @param changelog changelog or {@code null} for none + */ + public EvaluationResult setChangelog(java.lang.String changelog) { + this.changelog = changelog; + return this; + } + + /** + * Output only. The create time of the changelog of the app version that the evaluation ran + * against. This is populated if user runs evaluation on latest/draft. + * @return value or {@code null} for none + */ + public String getChangelogCreateTime() { + return changelogCreateTime; + } + + /** + * Output only. The create time of the changelog of the app version that the evaluation ran + * against. This is populated if user runs evaluation on latest/draft. + * @param changelogCreateTime changelogCreateTime or {@code null} for none + */ + public EvaluationResult setChangelogCreateTime(String changelogCreateTime) { + this.changelogCreateTime = changelogCreateTime; + return this; + } + + /** + * Output only. The configuration used in the evaluation run that resulted in this result. + * @return value or {@code null} for none + */ + public EvaluationConfig getConfig() { + return config; + } + + /** + * Output only. The configuration used in the evaluation run that resulted in this result. + * @param config config or {@code null} for none + */ + public EvaluationResult setConfig(EvaluationConfig config) { + this.config = config; + return this; + } + + /** + * Output only. Timestamp when the evaluation result was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the evaluation result was created. + * @param createTime createTime or {@code null} for none + */ + public EvaluationResult setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it + * has the following format: " result - ". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the Evaluation Result. Unique within an Evaluation. By default, it + * has the following format: " result - ". + * @param displayName displayName or {@code null} for none + */ + public EvaluationResult setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Deprecated: Use `error_info` instead. Errors encountered during execution. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Deprecated: Use `error_info` instead. Errors encountered during execution. + * @param error error or {@code null} for none + */ + public EvaluationResult setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. Error information for the evaluation result. + * @return value or {@code null} for none + */ + public EvaluationErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Output only. Error information for the evaluation result. + * @param errorInfo errorInfo or {@code null} for none + */ + public EvaluationResult setErrorInfo(EvaluationErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Output only. The evaluation thresholds for the result. + * @return value or {@code null} for none + */ + public EvaluationMetricsThresholds getEvaluationMetricsThresholds() { + return evaluationMetricsThresholds; + } + + /** + * Output only. The evaluation thresholds for the result. + * @param evaluationMetricsThresholds evaluationMetricsThresholds or {@code null} for none + */ + public EvaluationResult setEvaluationMetricsThresholds(EvaluationMetricsThresholds evaluationMetricsThresholds) { + this.evaluationMetricsThresholds = evaluationMetricsThresholds; + return this; + } + + /** + * Output only. The evaluation run that produced this result. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationRun() { + return evaluationRun; + } + + /** + * Output only. The evaluation run that produced this result. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * @param evaluationRun evaluationRun or {@code null} for none + */ + public EvaluationResult setEvaluationRun(java.lang.String evaluationRun) { + this.evaluationRun = evaluationRun; + return this; + } + + /** + * Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE. + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationStatus() { + return evaluationStatus; + } + + /** + * Output only. The outcome of the evaluation. Only populated if execution_state is COMPLETE. + * @param evaluationStatus evaluationStatus or {@code null} for none + */ + public EvaluationResult setEvaluationStatus(java.lang.String evaluationStatus) { + this.evaluationStatus = evaluationStatus; + return this; + } + + /** + * Output only. The state of the evaluation result execution. + * @return value or {@code null} for none + */ + public java.lang.String getExecutionState() { + return executionState; + } + + /** + * Output only. The state of the evaluation result execution. + * @param executionState executionState or {@code null} for none + */ + public EvaluationResult setExecutionState(java.lang.String executionState) { + this.executionState = executionState; + return this; + } + + /** + * Output only. The outcome of a golden evaluation. + * @return value or {@code null} for none + */ + public EvaluationResultGoldenResult getGoldenResult() { + return goldenResult; + } + + /** + * Output only. The outcome of a golden evaluation. + * @param goldenResult goldenResult or {@code null} for none + */ + public EvaluationResult setGoldenResult(EvaluationResultGoldenResult goldenResult) { + this.goldenResult = goldenResult; + return this; + } + + /** + * Output only. The method used to run the golden evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenRunMethod() { + return goldenRunMethod; + } + + /** + * Output only. The method used to run the golden evaluation. + * @param goldenRunMethod goldenRunMethod or {@code null} for none + */ + public EvaluationResult setGoldenRunMethod(java.lang.String goldenRunMethod) { + this.goldenRunMethod = goldenRunMethod; + return this; + } + + /** + * Output only. The user who initiated the evaluation run that resulted in this result. + * @return value or {@code null} for none + */ + public java.lang.String getInitiatedBy() { + return initiatedBy; + } + + /** + * Output only. The user who initiated the evaluation run that resulted in this result. + * @param initiatedBy initiatedBy or {@code null} for none + */ + public EvaluationResult setInitiatedBy(java.lang.String initiatedBy) { + this.initiatedBy = initiatedBy; + return this; + } + + /** + * Identifier. The unique identifier of the evaluation result. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the evaluation result. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` + * @param name name or {@code null} for none + */ + public EvaluationResult setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The persona used to generate the conversation for the evaluation result. + * @return value or {@code null} for none + */ + public EvaluationPersona getPersona() { + return persona; + } + + /** + * Output only. The persona used to generate the conversation for the evaluation result. + * @param persona persona or {@code null} for none + */ + public EvaluationResult setPersona(EvaluationPersona persona) { + this.persona = persona; + return this; + } + + /** + * Output only. The outcome of a scenario evaluation. + * @return value or {@code null} for none + */ + public EvaluationResultScenarioResult getScenarioResult() { + return scenarioResult; + } + + /** + * Output only. The outcome of a scenario evaluation. + * @param scenarioResult scenarioResult or {@code null} for none + */ + public EvaluationResult setScenarioResult(EvaluationResultScenarioResult scenarioResult) { + this.scenarioResult = scenarioResult; + return this; + } + + @Override + public EvaluationResult set(String fieldName, Object value) { + return (EvaluationResult) super.set(fieldName, value); + } + + @Override + public EvaluationResult clone() { + return (EvaluationResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultEvaluationExpectationResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultEvaluationExpectationResult.java new file mode 100644 index 00000000000..2d237e7fc69 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultEvaluationExpectationResult.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.ces.v1beta.model; + +/** + * The result of a single evaluation expectation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultEvaluationExpectationResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/ + * {app}/evaluationExpectations/{evaluation_expectation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationExpectation; + + /** + * Output only. The explanation for the result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. The outcome of the evaluation expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outcome; + + /** + * Output only. The prompt that was used for the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/ + * {app}/evaluationExpectations/{evaluation_expectation}` + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationExpectation() { + return evaluationExpectation; + } + + /** + * Output only. The evaluation expectation. Format: `projects/{project}/locations/{location}/apps/ + * {app}/evaluationExpectations/{evaluation_expectation}` + * @param evaluationExpectation evaluationExpectation or {@code null} for none + */ + public EvaluationResultEvaluationExpectationResult setEvaluationExpectation(java.lang.String evaluationExpectation) { + this.evaluationExpectation = evaluationExpectation; + return this; + } + + /** + * Output only. The explanation for the result. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. The explanation for the result. + * @param explanation explanation or {@code null} for none + */ + public EvaluationResultEvaluationExpectationResult setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. The outcome of the evaluation expectation. + * @return value or {@code null} for none + */ + public java.lang.String getOutcome() { + return outcome; + } + + /** + * Output only. The outcome of the evaluation expectation. + * @param outcome outcome or {@code null} for none + */ + public EvaluationResultEvaluationExpectationResult setOutcome(java.lang.String outcome) { + this.outcome = outcome; + return this; + } + + /** + * Output only. The prompt that was used for the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Output only. The prompt that was used for the evaluation. + * @param prompt prompt or {@code null} for none + */ + public EvaluationResultEvaluationExpectationResult setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public EvaluationResultEvaluationExpectationResult set(String fieldName, Object value) { + return (EvaluationResultEvaluationExpectationResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultEvaluationExpectationResult clone() { + return (EvaluationResultEvaluationExpectationResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenExpectationOutcome.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenExpectationOutcome.java new file mode 100644 index 00000000000..a9442a78a5d --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenExpectationOutcome.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.ces.v1beta.model; + +/** + * Specifies the expectation and the result of that expectation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultGoldenExpectationOutcome extends com.google.api.client.json.GenericJson { + + /** + * Output only. The expectation that was evaluated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationGoldenExpectation expectation; + + /** + * Output only. The result of the agent response expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Message observedAgentResponse; + + /** + * Output only. The result of the agent transfer expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentTransfer observedAgentTransfer; + + /** + * Output only. The result of the tool call expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCall observedToolCall; + + /** + * Output only. The result of the tool response expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse observedToolResponse; + + /** + * Output only. The outcome of the expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outcome; + + /** + * Output only. The result of the semantic similarity check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultSemanticSimilarityResult semanticSimilarityResult; + + /** + * Output only. The result of the tool invocation check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultGoldenExpectationOutcomeToolInvocationResult toolInvocationResult; + + /** + * Output only. The expectation that was evaluated. + * @return value or {@code null} for none + */ + public EvaluationGoldenExpectation getExpectation() { + return expectation; + } + + /** + * Output only. The expectation that was evaluated. + * @param expectation expectation or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setExpectation(EvaluationGoldenExpectation expectation) { + this.expectation = expectation; + return this; + } + + /** + * Output only. The result of the agent response expectation. + * @return value or {@code null} for none + */ + public Message getObservedAgentResponse() { + return observedAgentResponse; + } + + /** + * Output only. The result of the agent response expectation. + * @param observedAgentResponse observedAgentResponse or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setObservedAgentResponse(Message observedAgentResponse) { + this.observedAgentResponse = observedAgentResponse; + return this; + } + + /** + * Output only. The result of the agent transfer expectation. + * @return value or {@code null} for none + */ + public AgentTransfer getObservedAgentTransfer() { + return observedAgentTransfer; + } + + /** + * Output only. The result of the agent transfer expectation. + * @param observedAgentTransfer observedAgentTransfer or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setObservedAgentTransfer(AgentTransfer observedAgentTransfer) { + this.observedAgentTransfer = observedAgentTransfer; + return this; + } + + /** + * Output only. The result of the tool call expectation. + * @return value or {@code null} for none + */ + public ToolCall getObservedToolCall() { + return observedToolCall; + } + + /** + * Output only. The result of the tool call expectation. + * @param observedToolCall observedToolCall or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setObservedToolCall(ToolCall observedToolCall) { + this.observedToolCall = observedToolCall; + return this; + } + + /** + * Output only. The result of the tool response expectation. + * @return value or {@code null} for none + */ + public ToolResponse getObservedToolResponse() { + return observedToolResponse; + } + + /** + * Output only. The result of the tool response expectation. + * @param observedToolResponse observedToolResponse or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setObservedToolResponse(ToolResponse observedToolResponse) { + this.observedToolResponse = observedToolResponse; + return this; + } + + /** + * Output only. The outcome of the expectation. + * @return value or {@code null} for none + */ + public java.lang.String getOutcome() { + return outcome; + } + + /** + * Output only. The outcome of the expectation. + * @param outcome outcome or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setOutcome(java.lang.String outcome) { + this.outcome = outcome; + return this; + } + + /** + * Output only. The result of the semantic similarity check. + * @return value or {@code null} for none + */ + public EvaluationResultSemanticSimilarityResult getSemanticSimilarityResult() { + return semanticSimilarityResult; + } + + /** + * Output only. The result of the semantic similarity check. + * @param semanticSimilarityResult semanticSimilarityResult or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setSemanticSimilarityResult(EvaluationResultSemanticSimilarityResult semanticSimilarityResult) { + this.semanticSimilarityResult = semanticSimilarityResult; + return this; + } + + /** + * Output only. The result of the tool invocation check. + * @return value or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcomeToolInvocationResult getToolInvocationResult() { + return toolInvocationResult; + } + + /** + * Output only. The result of the tool invocation check. + * @param toolInvocationResult toolInvocationResult or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcome setToolInvocationResult(EvaluationResultGoldenExpectationOutcomeToolInvocationResult toolInvocationResult) { + this.toolInvocationResult = toolInvocationResult; + return this; + } + + @Override + public EvaluationResultGoldenExpectationOutcome set(String fieldName, Object value) { + return (EvaluationResultGoldenExpectationOutcome) super.set(fieldName, value); + } + + @Override + public EvaluationResultGoldenExpectationOutcome clone() { + return (EvaluationResultGoldenExpectationOutcome) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenExpectationOutcomeToolInvocationResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenExpectationOutcomeToolInvocationResult.java new file mode 100644 index 00000000000..b8665103f04 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenExpectationOutcomeToolInvocationResult.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of the tool invocation check. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultGoldenExpectationOutcomeToolInvocationResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. A free text explanation for the tool invocation result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. The outcome of the tool invocation check. This is determined by comparing the + * parameter_correctness_score to the threshold. If the score is equal to or above the threshold, + * the outcome will be PASS. Otherwise, the outcome will be FAIL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outcome; + + /** + * Output only. The tool invocation parameter correctness score. This indicates the percent of + * parameters from the expected tool call that were also present in the actual tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float parameterCorrectnessScore; + + /** + * Output only. A free text explanation for the tool invocation result. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. A free text explanation for the tool invocation result. + * @param explanation explanation or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcomeToolInvocationResult setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. The outcome of the tool invocation check. This is determined by comparing the + * parameter_correctness_score to the threshold. If the score is equal to or above the threshold, + * the outcome will be PASS. Otherwise, the outcome will be FAIL. + * @return value or {@code null} for none + */ + public java.lang.String getOutcome() { + return outcome; + } + + /** + * Output only. The outcome of the tool invocation check. This is determined by comparing the + * parameter_correctness_score to the threshold. If the score is equal to or above the threshold, + * the outcome will be PASS. Otherwise, the outcome will be FAIL. + * @param outcome outcome or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcomeToolInvocationResult setOutcome(java.lang.String outcome) { + this.outcome = outcome; + return this; + } + + /** + * Output only. The tool invocation parameter correctness score. This indicates the percent of + * parameters from the expected tool call that were also present in the actual tool call. + * @return value or {@code null} for none + */ + public java.lang.Float getParameterCorrectnessScore() { + return parameterCorrectnessScore; + } + + /** + * Output only. The tool invocation parameter correctness score. This indicates the percent of + * parameters from the expected tool call that were also present in the actual tool call. + * @param parameterCorrectnessScore parameterCorrectnessScore or {@code null} for none + */ + public EvaluationResultGoldenExpectationOutcomeToolInvocationResult setParameterCorrectnessScore(java.lang.Float parameterCorrectnessScore) { + this.parameterCorrectnessScore = parameterCorrectnessScore; + return this; + } + + @Override + public EvaluationResultGoldenExpectationOutcomeToolInvocationResult set(String fieldName, Object value) { + return (EvaluationResultGoldenExpectationOutcomeToolInvocationResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultGoldenExpectationOutcomeToolInvocationResult clone() { + return (EvaluationResultGoldenExpectationOutcomeToolInvocationResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenResult.java new file mode 100644 index 00000000000..b7a1136b668 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenResult.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of a golden evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultGoldenResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The results of the evaluation expectations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationExpectationResults; + + static { + // hack to force ProGuard to consider EvaluationResultEvaluationExpectationResult 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(EvaluationResultEvaluationExpectationResult.class); + } + + /** + * Output only. The result of running each turn of the golden conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List turnReplayResults; + + /** + * Output only. The results of the evaluation expectations. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationExpectationResults() { + return evaluationExpectationResults; + } + + /** + * Output only. The results of the evaluation expectations. + * @param evaluationExpectationResults evaluationExpectationResults or {@code null} for none + */ + public EvaluationResultGoldenResult setEvaluationExpectationResults(java.util.List evaluationExpectationResults) { + this.evaluationExpectationResults = evaluationExpectationResults; + return this; + } + + /** + * Output only. The result of running each turn of the golden conversation. + * @return value or {@code null} for none + */ + public java.util.List getTurnReplayResults() { + return turnReplayResults; + } + + /** + * Output only. The result of running each turn of the golden conversation. + * @param turnReplayResults turnReplayResults or {@code null} for none + */ + public EvaluationResultGoldenResult setTurnReplayResults(java.util.List turnReplayResults) { + this.turnReplayResults = turnReplayResults; + return this; + } + + @Override + public EvaluationResultGoldenResult set(String fieldName, Object value) { + return (EvaluationResultGoldenResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultGoldenResult clone() { + return (EvaluationResultGoldenResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenResultTurnReplayResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenResultTurnReplayResult.java new file mode 100644 index 00000000000..a1bbfb8db0c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultGoldenResultTurnReplayResult.java @@ -0,0 +1,319 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of running a single turn of the golden 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultGoldenResultTurnReplayResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The conversation that was generated for this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** + * Output only. Information about the error that occurred during this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationErrorInfo errorInfo; + + /** + * Output only. The outcome of each expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List expectationOutcome; + + static { + // hack to force ProGuard to consider EvaluationResultGoldenExpectationOutcome 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(EvaluationResultGoldenExpectationOutcome.class); + } + + /** + * Output only. The result of the hallucination check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultHallucinationResult hallucinationResult; + + /** + * Output only. The result of the overall tool invocation check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultOverallToolInvocationResult overallToolInvocationResult; + + /** + * Output only. The result of the semantic similarity check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultSemanticSimilarityResult semanticSimilarityResult; + + /** + * Output only. The latency of spans in the turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List spanLatencies; + + /** + * Output only. The latency of each tool call in the turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCallLatencies; + + /** + * Output only. Deprecated. Use OverallToolInvocationResult instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float toolInvocationScore; + + /** + * Output only. The overall tool ordered invocation score for this turn. This indicates the + * overall percent of tools from the expected turn that were actually invoked in the expected + * order. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float toolOrderedInvocationScore; + + /** + * Output only. Duration of the turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String turnLatency; + + /** + * Output only. The conversation that was generated for this turn. + * @return value or {@code null} for none + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * Output only. The conversation that was generated for this turn. + * @param conversation conversation or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setConversation(java.lang.String conversation) { + this.conversation = conversation; + return this; + } + + /** + * Output only. Information about the error that occurred during this turn. + * @return value or {@code null} for none + */ + public EvaluationErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Output only. Information about the error that occurred during this turn. + * @param errorInfo errorInfo or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setErrorInfo(EvaluationErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Output only. The outcome of each expectation. + * @return value or {@code null} for none + */ + public java.util.List getExpectationOutcome() { + return expectationOutcome; + } + + /** + * Output only. The outcome of each expectation. + * @param expectationOutcome expectationOutcome or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setExpectationOutcome(java.util.List expectationOutcome) { + this.expectationOutcome = expectationOutcome; + return this; + } + + /** + * Output only. The result of the hallucination check. + * @return value or {@code null} for none + */ + public EvaluationResultHallucinationResult getHallucinationResult() { + return hallucinationResult; + } + + /** + * Output only. The result of the hallucination check. + * @param hallucinationResult hallucinationResult or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setHallucinationResult(EvaluationResultHallucinationResult hallucinationResult) { + this.hallucinationResult = hallucinationResult; + return this; + } + + /** + * Output only. The result of the overall tool invocation check. + * @return value or {@code null} for none + */ + public EvaluationResultOverallToolInvocationResult getOverallToolInvocationResult() { + return overallToolInvocationResult; + } + + /** + * Output only. The result of the overall tool invocation check. + * @param overallToolInvocationResult overallToolInvocationResult or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setOverallToolInvocationResult(EvaluationResultOverallToolInvocationResult overallToolInvocationResult) { + this.overallToolInvocationResult = overallToolInvocationResult; + return this; + } + + /** + * Output only. The result of the semantic similarity check. + * @return value or {@code null} for none + */ + public EvaluationResultSemanticSimilarityResult getSemanticSimilarityResult() { + return semanticSimilarityResult; + } + + /** + * Output only. The result of the semantic similarity check. + * @param semanticSimilarityResult semanticSimilarityResult or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setSemanticSimilarityResult(EvaluationResultSemanticSimilarityResult semanticSimilarityResult) { + this.semanticSimilarityResult = semanticSimilarityResult; + return this; + } + + /** + * Output only. The latency of spans in the turn. + * @return value or {@code null} for none + */ + public java.util.List getSpanLatencies() { + return spanLatencies; + } + + /** + * Output only. The latency of spans in the turn. + * @param spanLatencies spanLatencies or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setSpanLatencies(java.util.List spanLatencies) { + this.spanLatencies = spanLatencies; + return this; + } + + /** + * Output only. The latency of each tool call in the turn. + * @return value or {@code null} for none + */ + public java.util.List getToolCallLatencies() { + return toolCallLatencies; + } + + /** + * Output only. The latency of each tool call in the turn. + * @param toolCallLatencies toolCallLatencies or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setToolCallLatencies(java.util.List toolCallLatencies) { + this.toolCallLatencies = toolCallLatencies; + return this; + } + + /** + * Output only. Deprecated. Use OverallToolInvocationResult instead. + * @return value or {@code null} for none + */ + public java.lang.Float getToolInvocationScore() { + return toolInvocationScore; + } + + /** + * Output only. Deprecated. Use OverallToolInvocationResult instead. + * @param toolInvocationScore toolInvocationScore or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setToolInvocationScore(java.lang.Float toolInvocationScore) { + this.toolInvocationScore = toolInvocationScore; + return this; + } + + /** + * Output only. The overall tool ordered invocation score for this turn. This indicates the + * overall percent of tools from the expected turn that were actually invoked in the expected + * order. + * @return value or {@code null} for none + */ + public java.lang.Float getToolOrderedInvocationScore() { + return toolOrderedInvocationScore; + } + + /** + * Output only. The overall tool ordered invocation score for this turn. This indicates the + * overall percent of tools from the expected turn that were actually invoked in the expected + * order. + * @param toolOrderedInvocationScore toolOrderedInvocationScore or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setToolOrderedInvocationScore(java.lang.Float toolOrderedInvocationScore) { + this.toolOrderedInvocationScore = toolOrderedInvocationScore; + return this; + } + + /** + * Output only. Duration of the turn. + * @return value or {@code null} for none + */ + public String getTurnLatency() { + return turnLatency; + } + + /** + * Output only. Duration of the turn. + * @param turnLatency turnLatency or {@code null} for none + */ + public EvaluationResultGoldenResultTurnReplayResult setTurnLatency(String turnLatency) { + this.turnLatency = turnLatency; + return this; + } + + @Override + public EvaluationResultGoldenResultTurnReplayResult set(String fieldName, Object value) { + return (EvaluationResultGoldenResultTurnReplayResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultGoldenResultTurnReplayResult clone() { + return (EvaluationResultGoldenResultTurnReplayResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultHallucinationResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultHallucinationResult.java new file mode 100644 index 00000000000..51fd3bc2af2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultHallucinationResult.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of the hallucination check for a single 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultHallucinationResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The explanation for the hallucination score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified + * Score -1: No Claim To Assess + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Output only. The hallucination score. Can be -1, 0, 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer score; + + /** + * Output only. The explanation for the hallucination score. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. The explanation for the hallucination score. + * @param explanation explanation or {@code null} for none + */ + public EvaluationResultHallucinationResult setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified + * Score -1: No Claim To Assess + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * Output only. The label associated with each score. Score 1: Justified Score 0: Not Justified + * Score -1: No Claim To Assess + * @param label label or {@code null} for none + */ + public EvaluationResultHallucinationResult setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Output only. The hallucination score. Can be -1, 0, 1. + * @return value or {@code null} for none + */ + public java.lang.Integer getScore() { + return score; + } + + /** + * Output only. The hallucination score. Can be -1, 0, 1. + * @param score score or {@code null} for none + */ + public EvaluationResultHallucinationResult setScore(java.lang.Integer score) { + this.score = score; + return this; + } + + @Override + public EvaluationResultHallucinationResult set(String fieldName, Object value) { + return (EvaluationResultHallucinationResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultHallucinationResult clone() { + return (EvaluationResultHallucinationResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultOverallToolInvocationResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultOverallToolInvocationResult.java new file mode 100644 index 00000000000..f32edea6911 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultOverallToolInvocationResult.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of the overall tool invocation check. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultOverallToolInvocationResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The outcome of the tool invocation check. This is determined by comparing the + * tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is + * equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outcome; + + /** + * The overall tool invocation score for this turn. This indicates the overall percent of tools + * from the expected turn that were actually invoked. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float toolInvocationScore; + + /** + * Output only. The outcome of the tool invocation check. This is determined by comparing the + * tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is + * equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL. + * @return value or {@code null} for none + */ + public java.lang.String getOutcome() { + return outcome; + } + + /** + * Output only. The outcome of the tool invocation check. This is determined by comparing the + * tool_invocation_score to the overall_tool_invocation_correctness_threshold. If the score is + * equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL. + * @param outcome outcome or {@code null} for none + */ + public EvaluationResultOverallToolInvocationResult setOutcome(java.lang.String outcome) { + this.outcome = outcome; + return this; + } + + /** + * The overall tool invocation score for this turn. This indicates the overall percent of tools + * from the expected turn that were actually invoked. + * @return value or {@code null} for none + */ + public java.lang.Float getToolInvocationScore() { + return toolInvocationScore; + } + + /** + * The overall tool invocation score for this turn. This indicates the overall percent of tools + * from the expected turn that were actually invoked. + * @param toolInvocationScore toolInvocationScore or {@code null} for none + */ + public EvaluationResultOverallToolInvocationResult setToolInvocationScore(java.lang.Float toolInvocationScore) { + this.toolInvocationScore = toolInvocationScore; + return this; + } + + @Override + public EvaluationResultOverallToolInvocationResult set(String fieldName, Object value) { + return (EvaluationResultOverallToolInvocationResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultOverallToolInvocationResult clone() { + return (EvaluationResultOverallToolInvocationResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioExpectationOutcome.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioExpectationOutcome.java new file mode 100644 index 00000000000..bf3840ea12c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioExpectationOutcome.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The outcome of a scenario expectation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultScenarioExpectationOutcome extends com.google.api.client.json.GenericJson { + + /** + * Output only. The expectation that was evaluated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationScenarioExpectation expectation; + + /** + * Output only. The observed agent response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Message observedAgentResponse; + + /** + * Output only. The observed tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultScenarioExpectationOutcomeObservedToolCall observedToolCall; + + /** + * Output only. The outcome of the ScenarioExpectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outcome; + + /** + * Output only. The expectation that was evaluated. + * @return value or {@code null} for none + */ + public EvaluationScenarioExpectation getExpectation() { + return expectation; + } + + /** + * Output only. The expectation that was evaluated. + * @param expectation expectation or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcome setExpectation(EvaluationScenarioExpectation expectation) { + this.expectation = expectation; + return this; + } + + /** + * Output only. The observed agent response. + * @return value or {@code null} for none + */ + public Message getObservedAgentResponse() { + return observedAgentResponse; + } + + /** + * Output only. The observed agent response. + * @param observedAgentResponse observedAgentResponse or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcome setObservedAgentResponse(Message observedAgentResponse) { + this.observedAgentResponse = observedAgentResponse; + return this; + } + + /** + * Output only. The observed tool call. + * @return value or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcomeObservedToolCall getObservedToolCall() { + return observedToolCall; + } + + /** + * Output only. The observed tool call. + * @param observedToolCall observedToolCall or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcome setObservedToolCall(EvaluationResultScenarioExpectationOutcomeObservedToolCall observedToolCall) { + this.observedToolCall = observedToolCall; + return this; + } + + /** + * Output only. The outcome of the ScenarioExpectation. + * @return value or {@code null} for none + */ + public java.lang.String getOutcome() { + return outcome; + } + + /** + * Output only. The outcome of the ScenarioExpectation. + * @param outcome outcome or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcome setOutcome(java.lang.String outcome) { + this.outcome = outcome; + return this; + } + + @Override + public EvaluationResultScenarioExpectationOutcome set(String fieldName, Object value) { + return (EvaluationResultScenarioExpectationOutcome) super.set(fieldName, value); + } + + @Override + public EvaluationResultScenarioExpectationOutcome clone() { + return (EvaluationResultScenarioExpectationOutcome) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioExpectationOutcomeObservedToolCall.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioExpectationOutcomeObservedToolCall.java new file mode 100644 index 00000000000..177cba6a808 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioExpectationOutcomeObservedToolCall.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.ces.v1beta.model; + +/** + * The observed tool call and response. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultScenarioExpectationOutcomeObservedToolCall extends com.google.api.client.json.GenericJson { + + /** + * Output only. The observed tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCall toolCall; + + /** + * Output only. The observed tool response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse toolResponse; + + /** + * Output only. The observed tool call. + * @return value or {@code null} for none + */ + public ToolCall getToolCall() { + return toolCall; + } + + /** + * Output only. The observed tool call. + * @param toolCall toolCall or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcomeObservedToolCall setToolCall(ToolCall toolCall) { + this.toolCall = toolCall; + return this; + } + + /** + * Output only. The observed tool response. + * @return value or {@code null} for none + */ + public ToolResponse getToolResponse() { + return toolResponse; + } + + /** + * Output only. The observed tool response. + * @param toolResponse toolResponse or {@code null} for none + */ + public EvaluationResultScenarioExpectationOutcomeObservedToolCall setToolResponse(ToolResponse toolResponse) { + this.toolResponse = toolResponse; + return this; + } + + @Override + public EvaluationResultScenarioExpectationOutcomeObservedToolCall set(String fieldName, Object value) { + return (EvaluationResultScenarioExpectationOutcomeObservedToolCall) super.set(fieldName, value); + } + + @Override + public EvaluationResultScenarioExpectationOutcomeObservedToolCall clone() { + return (EvaluationResultScenarioExpectationOutcomeObservedToolCall) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioResult.java new file mode 100644 index 00000000000..242573e8cfc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioResult.java @@ -0,0 +1,379 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The outcome of a scenario evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultScenarioResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. Whether all expectations were satisfied for this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allExpectationsSatisfied; + + /** + * Output only. The conversation that was generated in the scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conversation; + + /** + * Output only. The results of the evaluation expectations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationExpectationResults; + + static { + // hack to force ProGuard to consider EvaluationResultEvaluationExpectationResult 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(EvaluationResultEvaluationExpectationResult.class); + } + + /** + * Output only. The outcome of each expectation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List expectationOutcomes; + + static { + // hack to force ProGuard to consider EvaluationResultScenarioExpectationOutcome 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(EvaluationResultScenarioExpectationOutcome.class); + } + + /** + * Output only. The result of the hallucination check. There will be one hallucination result for + * each turn in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List hallucinationResult; + + static { + // hack to force ProGuard to consider EvaluationResultHallucinationResult 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(EvaluationResultHallucinationResult.class); + } + + /** + * Output only. The outcome of the rubric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rubricOutcomes; + + /** + * Output only. The latency of spans in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List spanLatencies; + + /** + * Output only. The task that was used when running the scenario for this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * Output only. Whether the task was completed for this turn. This is a composite of all + * expectations satisfied, no hallucinations, and user goal satisfaction. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean taskCompleted; + + /** + * Output only. The result of the task completion check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultTaskCompletionResult taskCompletionResult; + + /** + * Output only. The latency of each tool call execution in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCallLatencies; + + /** + * Output only. The user facts that were used by the scenario for this result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userFacts; + + /** + * Output only. The result of the user goal satisfaction check. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationResultUserGoalSatisfactionResult userGoalSatisfactionResult; + + /** + * Output only. Whether all expectations were satisfied for this turn. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllExpectationsSatisfied() { + return allExpectationsSatisfied; + } + + /** + * Output only. Whether all expectations were satisfied for this turn. + * @param allExpectationsSatisfied allExpectationsSatisfied or {@code null} for none + */ + public EvaluationResultScenarioResult setAllExpectationsSatisfied(java.lang.Boolean allExpectationsSatisfied) { + this.allExpectationsSatisfied = allExpectationsSatisfied; + return this; + } + + /** + * Output only. The conversation that was generated in the scenario. + * @return value or {@code null} for none + */ + public java.lang.String getConversation() { + return conversation; + } + + /** + * Output only. The conversation that was generated in the scenario. + * @param conversation conversation or {@code null} for none + */ + public EvaluationResultScenarioResult setConversation(java.lang.String conversation) { + this.conversation = conversation; + return this; + } + + /** + * Output only. The results of the evaluation expectations. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationExpectationResults() { + return evaluationExpectationResults; + } + + /** + * Output only. The results of the evaluation expectations. + * @param evaluationExpectationResults evaluationExpectationResults or {@code null} for none + */ + public EvaluationResultScenarioResult setEvaluationExpectationResults(java.util.List evaluationExpectationResults) { + this.evaluationExpectationResults = evaluationExpectationResults; + return this; + } + + /** + * Output only. The outcome of each expectation. + * @return value or {@code null} for none + */ + public java.util.List getExpectationOutcomes() { + return expectationOutcomes; + } + + /** + * Output only. The outcome of each expectation. + * @param expectationOutcomes expectationOutcomes or {@code null} for none + */ + public EvaluationResultScenarioResult setExpectationOutcomes(java.util.List expectationOutcomes) { + this.expectationOutcomes = expectationOutcomes; + return this; + } + + /** + * Output only. The result of the hallucination check. There will be one hallucination result for + * each turn in the conversation. + * @return value or {@code null} for none + */ + public java.util.List getHallucinationResult() { + return hallucinationResult; + } + + /** + * Output only. The result of the hallucination check. There will be one hallucination result for + * each turn in the conversation. + * @param hallucinationResult hallucinationResult or {@code null} for none + */ + public EvaluationResultScenarioResult setHallucinationResult(java.util.List hallucinationResult) { + this.hallucinationResult = hallucinationResult; + return this; + } + + /** + * Output only. The outcome of the rubric. + * @return value or {@code null} for none + */ + public java.util.List getRubricOutcomes() { + return rubricOutcomes; + } + + /** + * Output only. The outcome of the rubric. + * @param rubricOutcomes rubricOutcomes or {@code null} for none + */ + public EvaluationResultScenarioResult setRubricOutcomes(java.util.List rubricOutcomes) { + this.rubricOutcomes = rubricOutcomes; + return this; + } + + /** + * Output only. The latency of spans in the conversation. + * @return value or {@code null} for none + */ + public java.util.List getSpanLatencies() { + return spanLatencies; + } + + /** + * Output only. The latency of spans in the conversation. + * @param spanLatencies spanLatencies or {@code null} for none + */ + public EvaluationResultScenarioResult setSpanLatencies(java.util.List spanLatencies) { + this.spanLatencies = spanLatencies; + return this; + } + + /** + * Output only. The task that was used when running the scenario for this result. + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Output only. The task that was used when running the scenario for this result. + * @param task task or {@code null} for none + */ + public EvaluationResultScenarioResult setTask(java.lang.String task) { + this.task = task; + return this; + } + + /** + * Output only. Whether the task was completed for this turn. This is a composite of all + * expectations satisfied, no hallucinations, and user goal satisfaction. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTaskCompleted() { + return taskCompleted; + } + + /** + * Output only. Whether the task was completed for this turn. This is a composite of all + * expectations satisfied, no hallucinations, and user goal satisfaction. + * @param taskCompleted taskCompleted or {@code null} for none + */ + public EvaluationResultScenarioResult setTaskCompleted(java.lang.Boolean taskCompleted) { + this.taskCompleted = taskCompleted; + return this; + } + + /** + * Output only. The result of the task completion check. + * @return value or {@code null} for none + */ + public EvaluationResultTaskCompletionResult getTaskCompletionResult() { + return taskCompletionResult; + } + + /** + * Output only. The result of the task completion check. + * @param taskCompletionResult taskCompletionResult or {@code null} for none + */ + public EvaluationResultScenarioResult setTaskCompletionResult(EvaluationResultTaskCompletionResult taskCompletionResult) { + this.taskCompletionResult = taskCompletionResult; + return this; + } + + /** + * Output only. The latency of each tool call execution in the conversation. + * @return value or {@code null} for none + */ + public java.util.List getToolCallLatencies() { + return toolCallLatencies; + } + + /** + * Output only. The latency of each tool call execution in the conversation. + * @param toolCallLatencies toolCallLatencies or {@code null} for none + */ + public EvaluationResultScenarioResult setToolCallLatencies(java.util.List toolCallLatencies) { + this.toolCallLatencies = toolCallLatencies; + return this; + } + + /** + * Output only. The user facts that were used by the scenario for this result. + * @return value or {@code null} for none + */ + public java.util.List getUserFacts() { + return userFacts; + } + + /** + * Output only. The user facts that were used by the scenario for this result. + * @param userFacts userFacts or {@code null} for none + */ + public EvaluationResultScenarioResult setUserFacts(java.util.List userFacts) { + this.userFacts = userFacts; + return this; + } + + /** + * Output only. The result of the user goal satisfaction check. + * @return value or {@code null} for none + */ + public EvaluationResultUserGoalSatisfactionResult getUserGoalSatisfactionResult() { + return userGoalSatisfactionResult; + } + + /** + * Output only. The result of the user goal satisfaction check. + * @param userGoalSatisfactionResult userGoalSatisfactionResult or {@code null} for none + */ + public EvaluationResultScenarioResult setUserGoalSatisfactionResult(EvaluationResultUserGoalSatisfactionResult userGoalSatisfactionResult) { + this.userGoalSatisfactionResult = userGoalSatisfactionResult; + return this; + } + + @Override + public EvaluationResultScenarioResult set(String fieldName, Object value) { + return (EvaluationResultScenarioResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultScenarioResult clone() { + return (EvaluationResultScenarioResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioRubricOutcome.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioRubricOutcome.java new file mode 100644 index 00000000000..e026ccd92f5 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultScenarioRubricOutcome.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The outcome of the evaluation against the rubric. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultScenarioRubricOutcome extends com.google.api.client.json.GenericJson { + + /** + * Output only. The rubric that was used to evaluate the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String rubric; + + /** + * Output only. The score of the conversation against the rubric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Float score; + + /** + * Output only. The rater's response to the rubric. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scoreExplanation; + + /** + * Output only. The rubric that was used to evaluate the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getRubric() { + return rubric; + } + + /** + * Output only. The rubric that was used to evaluate the conversation. + * @param rubric rubric or {@code null} for none + */ + public EvaluationResultScenarioRubricOutcome setRubric(java.lang.String rubric) { + this.rubric = rubric; + return this; + } + + /** + * Output only. The score of the conversation against the rubric. + * @return value or {@code null} for none + */ + public java.lang.Float getScore() { + return score; + } + + /** + * Output only. The score of the conversation against the rubric. + * @param score score or {@code null} for none + */ + public EvaluationResultScenarioRubricOutcome setScore(java.lang.Float score) { + this.score = score; + return this; + } + + /** + * Output only. The rater's response to the rubric. + * @return value or {@code null} for none + */ + public java.lang.String getScoreExplanation() { + return scoreExplanation; + } + + /** + * Output only. The rater's response to the rubric. + * @param scoreExplanation scoreExplanation or {@code null} for none + */ + public EvaluationResultScenarioRubricOutcome setScoreExplanation(java.lang.String scoreExplanation) { + this.scoreExplanation = scoreExplanation; + return this; + } + + @Override + public EvaluationResultScenarioRubricOutcome set(String fieldName, Object value) { + return (EvaluationResultScenarioRubricOutcome) super.set(fieldName, value); + } + + @Override + public EvaluationResultScenarioRubricOutcome clone() { + return (EvaluationResultScenarioRubricOutcome) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultSemanticSimilarityResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultSemanticSimilarityResult.java new file mode 100644 index 00000000000..2161de7d375 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultSemanticSimilarityResult.java @@ -0,0 +1,151 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of the semantic similarity check. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultSemanticSimilarityResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The explanation for the semantic similarity score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly + * Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major + * Omissions) Score 0: Completely Inconsistent / Contradictory + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Output only. The outcome of the semantic similarity check. This is determined by comparing the + * score to the semantic_similarity_success_threshold. If the score is equal to or above the + * threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String outcome; + + /** + * Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer score; + + /** + * Output only. The explanation for the semantic similarity score. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. The explanation for the semantic similarity score. + * @param explanation explanation or {@code null} for none + */ + public EvaluationResultSemanticSimilarityResult setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly + * Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major + * Omissions) Score 0: Completely Inconsistent / Contradictory + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly + * Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major + * Omissions) Score 0: Completely Inconsistent / Contradictory + * @param label label or {@code null} for none + */ + public EvaluationResultSemanticSimilarityResult setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Output only. The outcome of the semantic similarity check. This is determined by comparing the + * score to the semantic_similarity_success_threshold. If the score is equal to or above the + * threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL. + * @return value or {@code null} for none + */ + public java.lang.String getOutcome() { + return outcome; + } + + /** + * Output only. The outcome of the semantic similarity check. This is determined by comparing the + * score to the semantic_similarity_success_threshold. If the score is equal to or above the + * threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL. + * @param outcome outcome or {@code null} for none + */ + public EvaluationResultSemanticSimilarityResult setOutcome(java.lang.String outcome) { + this.outcome = outcome; + return this; + } + + /** + * Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4. + * @return value or {@code null} for none + */ + public java.lang.Integer getScore() { + return score; + } + + /** + * Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4. + * @param score score or {@code null} for none + */ + public EvaluationResultSemanticSimilarityResult setScore(java.lang.Integer score) { + this.score = score; + return this; + } + + @Override + public EvaluationResultSemanticSimilarityResult set(String fieldName, Object value) { + return (EvaluationResultSemanticSimilarityResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultSemanticSimilarityResult clone() { + return (EvaluationResultSemanticSimilarityResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultSpanLatency.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultSpanLatency.java new file mode 100644 index 00000000000..a5f0a326722 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultSpanLatency.java @@ -0,0 +1,259 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The latency of a span execution. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultSpanLatency extends com.google.api.client.json.GenericJson { + + /** + * Output only. The name of the user callback span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String callback; + + /** + * Output only. The display name of the span. Applicable to tool and guardrail spans. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The end time of span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The latency of span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String executionLatency; + + /** + * Output only. The name of the LLM span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Output only. The resource name of the guardrail or tool spans. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String resource; + + /** + * Output only. The start time of span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The toolset tool identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolset; + + /** + * Output only. The type of span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Output only. The name of the user callback span. + * @return value or {@code null} for none + */ + public java.lang.String getCallback() { + return callback; + } + + /** + * Output only. The name of the user callback span. + * @param callback callback or {@code null} for none + */ + public EvaluationResultSpanLatency setCallback(java.lang.String callback) { + this.callback = callback; + return this; + } + + /** + * Output only. The display name of the span. Applicable to tool and guardrail spans. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the span. Applicable to tool and guardrail spans. + * @param displayName displayName or {@code null} for none + */ + public EvaluationResultSpanLatency setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The end time of span. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The end time of span. + * @param endTime endTime or {@code null} for none + */ + public EvaluationResultSpanLatency setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The latency of span. + * @return value or {@code null} for none + */ + public String getExecutionLatency() { + return executionLatency; + } + + /** + * Output only. The latency of span. + * @param executionLatency executionLatency or {@code null} for none + */ + public EvaluationResultSpanLatency setExecutionLatency(String executionLatency) { + this.executionLatency = executionLatency; + return this; + } + + /** + * Output only. The name of the LLM span. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * Output only. The name of the LLM span. + * @param model model or {@code null} for none + */ + public EvaluationResultSpanLatency setModel(java.lang.String model) { + this.model = model; + return this; + } + + /** + * Output only. The resource name of the guardrail or tool spans. + * @return value or {@code null} for none + */ + public java.lang.String getResource() { + return resource; + } + + /** + * Output only. The resource name of the guardrail or tool spans. + * @param resource resource or {@code null} for none + */ + public EvaluationResultSpanLatency setResource(java.lang.String resource) { + this.resource = resource; + return this; + } + + /** + * Output only. The start time of span. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. The start time of span. + * @param startTime startTime or {@code null} for none + */ + public EvaluationResultSpanLatency setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The toolset tool identifier. + * @return value or {@code null} for none + */ + public ToolsetTool getToolset() { + return toolset; + } + + /** + * Output only. The toolset tool identifier. + * @param toolset toolset or {@code null} for none + */ + public EvaluationResultSpanLatency setToolset(ToolsetTool toolset) { + this.toolset = toolset; + return this; + } + + /** + * Output only. The type of span. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Output only. The type of span. + * @param type type or {@code null} for none + */ + public EvaluationResultSpanLatency setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public EvaluationResultSpanLatency set(String fieldName, Object value) { + return (EvaluationResultSpanLatency) super.set(fieldName, value); + } + + @Override + public EvaluationResultSpanLatency clone() { + return (EvaluationResultSpanLatency) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultTaskCompletionResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultTaskCompletionResult.java new file mode 100644 index 00000000000..1d22376de7f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultTaskCompletionResult.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of the task completion check for 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultTaskCompletionResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The explanation for the task completion score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not + * Completed Score -1: User Goal Undefined + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Output only. The task completion score. Can be -1, 0, 1 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer score; + + /** + * Output only. The explanation for the task completion score. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. The explanation for the task completion score. + * @param explanation explanation or {@code null} for none + */ + public EvaluationResultTaskCompletionResult setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not + * Completed Score -1: User Goal Undefined + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * Output only. The label associated with each score. Score 1: Task Completed Score 0: Task Not + * Completed Score -1: User Goal Undefined + * @param label label or {@code null} for none + */ + public EvaluationResultTaskCompletionResult setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Output only. The task completion score. Can be -1, 0, 1 + * @return value or {@code null} for none + */ + public java.lang.Integer getScore() { + return score; + } + + /** + * Output only. The task completion score. Can be -1, 0, 1 + * @param score score or {@code null} for none + */ + public EvaluationResultTaskCompletionResult setScore(java.lang.Integer score) { + this.score = score; + return this; + } + + @Override + public EvaluationResultTaskCompletionResult set(String fieldName, Object value) { + return (EvaluationResultTaskCompletionResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultTaskCompletionResult clone() { + return (EvaluationResultTaskCompletionResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultToolCallLatency.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultToolCallLatency.java new file mode 100644 index 00000000000..35519c6263c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultToolCallLatency.java @@ -0,0 +1,166 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The latency of a tool call execution. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultToolCallLatency extends com.google.api.client.json.GenericJson { + + /** + * Output only. The display name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. The end time of the tool call execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The latency of the tool call execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String executionLatency; + + /** + * Output only. The start time of the tool call execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Output only. The display name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the tool. + * @param displayName displayName or {@code null} for none + */ + public EvaluationResultToolCallLatency setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. The end time of the tool call execution. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The end time of the tool call execution. + * @param endTime endTime or {@code null} for none + */ + public EvaluationResultToolCallLatency setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The latency of the tool call execution. + * @return value or {@code null} for none + */ + public String getExecutionLatency() { + return executionLatency; + } + + /** + * Output only. The latency of the tool call execution. + * @param executionLatency executionLatency or {@code null} for none + */ + public EvaluationResultToolCallLatency setExecutionLatency(String executionLatency) { + this.executionLatency = executionLatency; + return this; + } + + /** + * Output only. The start time of the tool call execution. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. The start time of the tool call execution. + * @param startTime startTime or {@code null} for none + */ + public EvaluationResultToolCallLatency setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Output only. The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Output only. The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. + * @param tool tool or {@code null} for none + */ + public EvaluationResultToolCallLatency setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + @Override + public EvaluationResultToolCallLatency set(String fieldName, Object value) { + return (EvaluationResultToolCallLatency) super.set(fieldName, value); + } + + @Override + public EvaluationResultToolCallLatency clone() { + return (EvaluationResultToolCallLatency) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultUserGoalSatisfactionResult.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultUserGoalSatisfactionResult.java new file mode 100644 index 00000000000..3c2a9e5ddd0 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationResultUserGoalSatisfactionResult.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The result of a user goal satisfaction check for a 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationResultUserGoalSatisfactionResult extends com.google.api.client.json.GenericJson { + + /** + * Output only. The explanation for the user task satisfaction score. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User + * Task Not Satisfied Score -1: User Task Unspecified + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String label; + + /** + * Output only. The user task satisfaction score. Can be -1, 0, 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer score; + + /** + * Output only. The explanation for the user task satisfaction score. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * Output only. The explanation for the user task satisfaction score. + * @param explanation explanation or {@code null} for none + */ + public EvaluationResultUserGoalSatisfactionResult setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + /** + * Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User + * Task Not Satisfied Score -1: User Task Unspecified + * @return value or {@code null} for none + */ + public java.lang.String getLabel() { + return label; + } + + /** + * Output only. The label associated with each score. Score 1: User Task Satisfied Score 0: User + * Task Not Satisfied Score -1: User Task Unspecified + * @param label label or {@code null} for none + */ + public EvaluationResultUserGoalSatisfactionResult setLabel(java.lang.String label) { + this.label = label; + return this; + } + + /** + * Output only. The user task satisfaction score. Can be -1, 0, 1. + * @return value or {@code null} for none + */ + public java.lang.Integer getScore() { + return score; + } + + /** + * Output only. The user task satisfaction score. Can be -1, 0, 1. + * @param score score or {@code null} for none + */ + public EvaluationResultUserGoalSatisfactionResult setScore(java.lang.Integer score) { + this.score = score; + return this; + } + + @Override + public EvaluationResultUserGoalSatisfactionResult set(String fieldName, Object value) { + return (EvaluationResultUserGoalSatisfactionResult) super.set(fieldName, value); + } + + @Override + public EvaluationResultUserGoalSatisfactionResult clone() { + return (EvaluationResultUserGoalSatisfactionResult) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRun.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRun.java new file mode 100644 index 00000000000..8a40515d031 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRun.java @@ -0,0 +1,658 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An evaluation run represents an all the evaluation results from an evaluation execution. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationRun extends com.google.api.client.json.GenericJson { + + /** + * Output only. The app version to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * Output only. The display name of the `app_version` that the evaluation ran against. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersionDisplayName; + + /** + * Output only. The changelog of the app version that the evaluation ran against. This is + * populated if user runs evaluation on latest/draft. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String changelog; + + /** + * Output only. The create time of the changelog of the app version that the evaluation ran + * against. This is populated if user runs evaluation on latest/draft. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String changelogCreateTime; + + /** + * Output only. The configuration used in the run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationConfig config; + + /** + * Output only. Timestamp when the evaluation run was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. User-defined display name of the evaluation run. default: " run - ". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Deprecated: Use error_info instead. Errors encountered during execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Output only. Error information for the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationErrorInfo errorInfo; + + /** + * Output only. The evaluation dataset that this run is associated with. This field is mutually + * exclusive with `evaluations`. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationDataset; + + /** + * Output only. The evaluation results that are part of this run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationResults; + + /** + * Output only. Map of evaluation name to EvaluationRunSummary. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map evaluationRunSummaries; + + /** + * Output only. The type of the evaluations in this run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationType; + + /** + * Output only. The evaluations that are part of this run. The list may contain evaluations of + * either type. This field is mutually exclusive with `evaluation_dataset`. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + /** + * Output only. The method used to run the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenRunMethod; + + /** + * Output only. The user who initiated the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String initiatedBy; + + /** + * Output only. Latency report for the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LatencyReport latencyReport; + + /** + * Identifier. The unique identifier of the evaluation run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Configuration for running the optimization step after the evaluation run. If not set, + * the optimization step will not be run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OptimizationConfig optimizationConfig; + + /** + * Output only. The configuration to use for the run per persona. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List personaRunConfigs; + + /** + * Output only. The progress of the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationRunProgress progress; + + /** + * Output only. The number of times the evaluations inside the run were run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer runCount; + + /** + * Output only. The scheduled evaluation run resource name that created this evaluation run. This + * field is only set if the evaluation run was created by a scheduled evaluation run. Format: `pro + * jects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_r + * un}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scheduledEvaluationRun; + + /** + * Output only. The state of the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. The app version to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Output only. The app version to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param appVersion appVersion or {@code null} for none + */ + public EvaluationRun setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * Output only. The display name of the `app_version` that the evaluation ran against. + * @return value or {@code null} for none + */ + public java.lang.String getAppVersionDisplayName() { + return appVersionDisplayName; + } + + /** + * Output only. The display name of the `app_version` that the evaluation ran against. + * @param appVersionDisplayName appVersionDisplayName or {@code null} for none + */ + public EvaluationRun setAppVersionDisplayName(java.lang.String appVersionDisplayName) { + this.appVersionDisplayName = appVersionDisplayName; + return this; + } + + /** + * Output only. The changelog of the app version that the evaluation ran against. This is + * populated if user runs evaluation on latest/draft. + * @return value or {@code null} for none + */ + public java.lang.String getChangelog() { + return changelog; + } + + /** + * Output only. The changelog of the app version that the evaluation ran against. This is + * populated if user runs evaluation on latest/draft. + * @param changelog changelog or {@code null} for none + */ + public EvaluationRun setChangelog(java.lang.String changelog) { + this.changelog = changelog; + return this; + } + + /** + * Output only. The create time of the changelog of the app version that the evaluation ran + * against. This is populated if user runs evaluation on latest/draft. + * @return value or {@code null} for none + */ + public String getChangelogCreateTime() { + return changelogCreateTime; + } + + /** + * Output only. The create time of the changelog of the app version that the evaluation ran + * against. This is populated if user runs evaluation on latest/draft. + * @param changelogCreateTime changelogCreateTime or {@code null} for none + */ + public EvaluationRun setChangelogCreateTime(String changelogCreateTime) { + this.changelogCreateTime = changelogCreateTime; + return this; + } + + /** + * Output only. The configuration used in the run. + * @return value or {@code null} for none + */ + public EvaluationConfig getConfig() { + return config; + } + + /** + * Output only. The configuration used in the run. + * @param config config or {@code null} for none + */ + public EvaluationRun setConfig(EvaluationConfig config) { + this.config = config; + return this; + } + + /** + * Output only. Timestamp when the evaluation run was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the evaluation run was created. + * @param createTime createTime or {@code null} for none + */ + public EvaluationRun setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. User-defined display name of the evaluation run. default: " run - ". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. User-defined display name of the evaluation run. default: " run - ". + * @param displayName displayName or {@code null} for none + */ + public EvaluationRun setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Deprecated: Use error_info instead. Errors encountered during execution. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * Output only. Deprecated: Use error_info instead. Errors encountered during execution. + * @param error error or {@code null} for none + */ + public EvaluationRun setError(Status error) { + this.error = error; + return this; + } + + /** + * Output only. Error information for the evaluation run. + * @return value or {@code null} for none + */ + public EvaluationErrorInfo getErrorInfo() { + return errorInfo; + } + + /** + * Output only. Error information for the evaluation run. + * @param errorInfo errorInfo or {@code null} for none + */ + public EvaluationRun setErrorInfo(EvaluationErrorInfo errorInfo) { + this.errorInfo = errorInfo; + return this; + } + + /** + * Output only. The evaluation dataset that this run is associated with. This field is mutually + * exclusive with `evaluations`. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationDataset() { + return evaluationDataset; + } + + /** + * Output only. The evaluation dataset that this run is associated with. This field is mutually + * exclusive with `evaluations`. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @param evaluationDataset evaluationDataset or {@code null} for none + */ + public EvaluationRun setEvaluationDataset(java.lang.String evaluationDataset) { + this.evaluationDataset = evaluationDataset; + return this; + } + + /** + * Output only. The evaluation results that are part of this run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` + * @return value or {@code null} for none + */ + public java.util.List getEvaluationResults() { + return evaluationResults; + } + + /** + * Output only. The evaluation results that are part of this run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{result}` + * @param evaluationResults evaluationResults or {@code null} for none + */ + public EvaluationRun setEvaluationResults(java.util.List evaluationResults) { + this.evaluationResults = evaluationResults; + return this; + } + + /** + * Output only. Map of evaluation name to EvaluationRunSummary. + * @return value or {@code null} for none + */ + public java.util.Map getEvaluationRunSummaries() { + return evaluationRunSummaries; + } + + /** + * Output only. Map of evaluation name to EvaluationRunSummary. + * @param evaluationRunSummaries evaluationRunSummaries or {@code null} for none + */ + public EvaluationRun setEvaluationRunSummaries(java.util.Map evaluationRunSummaries) { + this.evaluationRunSummaries = evaluationRunSummaries; + return this; + } + + /** + * Output only. The type of the evaluations in this run. + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationType() { + return evaluationType; + } + + /** + * Output only. The type of the evaluations in this run. + * @param evaluationType evaluationType or {@code null} for none + */ + public EvaluationRun setEvaluationType(java.lang.String evaluationType) { + this.evaluationType = evaluationType; + return this; + } + + /** + * Output only. The evaluations that are part of this run. The list may contain evaluations of + * either type. This field is mutually exclusive with `evaluation_dataset`. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * Output only. The evaluations that are part of this run. The list may contain evaluations of + * either type. This field is mutually exclusive with `evaluation_dataset`. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @param evaluations evaluations or {@code null} for none + */ + public EvaluationRun setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + /** + * Output only. The method used to run the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenRunMethod() { + return goldenRunMethod; + } + + /** + * Output only. The method used to run the evaluation. + * @param goldenRunMethod goldenRunMethod or {@code null} for none + */ + public EvaluationRun setGoldenRunMethod(java.lang.String goldenRunMethod) { + this.goldenRunMethod = goldenRunMethod; + return this; + } + + /** + * Output only. The user who initiated the evaluation run. + * @return value or {@code null} for none + */ + public java.lang.String getInitiatedBy() { + return initiatedBy; + } + + /** + * Output only. The user who initiated the evaluation run. + * @param initiatedBy initiatedBy or {@code null} for none + */ + public EvaluationRun setInitiatedBy(java.lang.String initiatedBy) { + this.initiatedBy = initiatedBy; + return this; + } + + /** + * Output only. Latency report for the evaluation run. + * @return value or {@code null} for none + */ + public LatencyReport getLatencyReport() { + return latencyReport; + } + + /** + * Output only. Latency report for the evaluation run. + * @param latencyReport latencyReport or {@code null} for none + */ + public EvaluationRun setLatencyReport(LatencyReport latencyReport) { + this.latencyReport = latencyReport; + return this; + } + + /** + * Identifier. The unique identifier of the evaluation run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the evaluation run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * @param name name or {@code null} for none + */ + public EvaluationRun setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Configuration for running the optimization step after the evaluation run. If not set, + * the optimization step will not be run. + * @return value or {@code null} for none + */ + public OptimizationConfig getOptimizationConfig() { + return optimizationConfig; + } + + /** + * Optional. Configuration for running the optimization step after the evaluation run. If not set, + * the optimization step will not be run. + * @param optimizationConfig optimizationConfig or {@code null} for none + */ + public EvaluationRun setOptimizationConfig(OptimizationConfig optimizationConfig) { + this.optimizationConfig = optimizationConfig; + return this; + } + + /** + * Output only. The configuration to use for the run per persona. + * @return value or {@code null} for none + */ + public java.util.List getPersonaRunConfigs() { + return personaRunConfigs; + } + + /** + * Output only. The configuration to use for the run per persona. + * @param personaRunConfigs personaRunConfigs or {@code null} for none + */ + public EvaluationRun setPersonaRunConfigs(java.util.List personaRunConfigs) { + this.personaRunConfigs = personaRunConfigs; + return this; + } + + /** + * Output only. The progress of the evaluation run. + * @return value or {@code null} for none + */ + public EvaluationRunProgress getProgress() { + return progress; + } + + /** + * Output only. The progress of the evaluation run. + * @param progress progress or {@code null} for none + */ + public EvaluationRun setProgress(EvaluationRunProgress progress) { + this.progress = progress; + return this; + } + + /** + * Output only. The number of times the evaluations inside the run were run. + * @return value or {@code null} for none + */ + public java.lang.Integer getRunCount() { + return runCount; + } + + /** + * Output only. The number of times the evaluations inside the run were run. + * @param runCount runCount or {@code null} for none + */ + public EvaluationRun setRunCount(java.lang.Integer runCount) { + this.runCount = runCount; + return this; + } + + /** + * Output only. The scheduled evaluation run resource name that created this evaluation run. This + * field is only set if the evaluation run was created by a scheduled evaluation run. Format: `pro + * jects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_r + * un}` + * @return value or {@code null} for none + */ + public java.lang.String getScheduledEvaluationRun() { + return scheduledEvaluationRun; + } + + /** + * Output only. The scheduled evaluation run resource name that created this evaluation run. This + * field is only set if the evaluation run was created by a scheduled evaluation run. Format: `pro + * jects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_r + * un}` + * @param scheduledEvaluationRun scheduledEvaluationRun or {@code null} for none + */ + public EvaluationRun setScheduledEvaluationRun(java.lang.String scheduledEvaluationRun) { + this.scheduledEvaluationRun = scheduledEvaluationRun; + return this; + } + + /** + * Output only. The state of the evaluation run. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The state of the evaluation run. + * @param state state or {@code null} for none + */ + public EvaluationRun setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public EvaluationRun set(String fieldName, Object value) { + return (EvaluationRun) super.set(fieldName, value); + } + + @Override + public EvaluationRun clone() { + return (EvaluationRun) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRunEvaluationRunSummary.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRunEvaluationRunSummary.java new file mode 100644 index 00000000000..c3c56df4ee6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRunEvaluationRunSummary.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.ces.v1beta.model; + +/** + * Contains the summary of passed and failed result counts for a specific evaluation in an + * evaluation run. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationRunEvaluationRunSummary extends com.google.api.client.json.GenericJson { + + /** + * Output only. Number of error results for the associated Evaluation in this run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer errorCount; + + /** + * Output only. Number of failed results for the associated Evaluation in this run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failedCount; + + /** + * Output only. Number of passed results for the associated Evaluation in this run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer passedCount; + + /** + * Output only. Number of error results for the associated Evaluation in this run. + * @return value or {@code null} for none + */ + public java.lang.Integer getErrorCount() { + return errorCount; + } + + /** + * Output only. Number of error results for the associated Evaluation in this run. + * @param errorCount errorCount or {@code null} for none + */ + public EvaluationRunEvaluationRunSummary setErrorCount(java.lang.Integer errorCount) { + this.errorCount = errorCount; + return this; + } + + /** + * Output only. Number of failed results for the associated Evaluation in this run. + * @return value or {@code null} for none + */ + public java.lang.Integer getFailedCount() { + return failedCount; + } + + /** + * Output only. Number of failed results for the associated Evaluation in this run. + * @param failedCount failedCount or {@code null} for none + */ + public EvaluationRunEvaluationRunSummary setFailedCount(java.lang.Integer failedCount) { + this.failedCount = failedCount; + return this; + } + + /** + * Output only. Number of passed results for the associated Evaluation in this run. + * @return value or {@code null} for none + */ + public java.lang.Integer getPassedCount() { + return passedCount; + } + + /** + * Output only. Number of passed results for the associated Evaluation in this run. + * @param passedCount passedCount or {@code null} for none + */ + public EvaluationRunEvaluationRunSummary setPassedCount(java.lang.Integer passedCount) { + this.passedCount = passedCount; + return this; + } + + @Override + public EvaluationRunEvaluationRunSummary set(String fieldName, Object value) { + return (EvaluationRunEvaluationRunSummary) super.set(fieldName, value); + } + + @Override + public EvaluationRunEvaluationRunSummary clone() { + return (EvaluationRunEvaluationRunSummary) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRunProgress.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRunProgress.java new file mode 100644 index 00000000000..bac60e7336b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationRunProgress.java @@ -0,0 +1,175 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The progress of the evaluation run. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationRunProgress extends com.google.api.client.json.GenericJson { + + /** + * Output only. Number of evaluation results that finished successfully. + * (EvaluationResult.execution_state is COMPLETED). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer completedCount; + + /** + * Output only. Number of evaluation results that failed to execute. + * (EvaluationResult.execution_state is ERROR). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer errorCount; + + /** + * Output only. Number of completed evaluation results with an outcome of FAIL. + * (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is FAIL). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer failedCount; + + /** + * Output only. Number of completed evaluation results with an outcome of PASS. + * (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is PASS). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer passedCount; + + /** + * Output only. Total number of evaluation results in this run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalCount; + + /** + * Output only. Number of evaluation results that finished successfully. + * (EvaluationResult.execution_state is COMPLETED). + * @return value or {@code null} for none + */ + public java.lang.Integer getCompletedCount() { + return completedCount; + } + + /** + * Output only. Number of evaluation results that finished successfully. + * (EvaluationResult.execution_state is COMPLETED). + * @param completedCount completedCount or {@code null} for none + */ + public EvaluationRunProgress setCompletedCount(java.lang.Integer completedCount) { + this.completedCount = completedCount; + return this; + } + + /** + * Output only. Number of evaluation results that failed to execute. + * (EvaluationResult.execution_state is ERROR). + * @return value or {@code null} for none + */ + public java.lang.Integer getErrorCount() { + return errorCount; + } + + /** + * Output only. Number of evaluation results that failed to execute. + * (EvaluationResult.execution_state is ERROR). + * @param errorCount errorCount or {@code null} for none + */ + public EvaluationRunProgress setErrorCount(java.lang.Integer errorCount) { + this.errorCount = errorCount; + return this; + } + + /** + * Output only. Number of completed evaluation results with an outcome of FAIL. + * (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is FAIL). + * @return value or {@code null} for none + */ + public java.lang.Integer getFailedCount() { + return failedCount; + } + + /** + * Output only. Number of completed evaluation results with an outcome of FAIL. + * (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is FAIL). + * @param failedCount failedCount or {@code null} for none + */ + public EvaluationRunProgress setFailedCount(java.lang.Integer failedCount) { + this.failedCount = failedCount; + return this; + } + + /** + * Output only. Number of completed evaluation results with an outcome of PASS. + * (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is PASS). + * @return value or {@code null} for none + */ + public java.lang.Integer getPassedCount() { + return passedCount; + } + + /** + * Output only. Number of completed evaluation results with an outcome of PASS. + * (EvaluationResult.execution_state is COMPLETED and EvaluationResult.evaluation_status is PASS). + * @param passedCount passedCount or {@code null} for none + */ + public EvaluationRunProgress setPassedCount(java.lang.Integer passedCount) { + this.passedCount = passedCount; + return this; + } + + /** + * Output only. Total number of evaluation results in this run. + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalCount() { + return totalCount; + } + + /** + * Output only. Total number of evaluation results in this run. + * @param totalCount totalCount or {@code null} for none + */ + public EvaluationRunProgress setTotalCount(java.lang.Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + @Override + public EvaluationRunProgress set(String fieldName, Object value) { + return (EvaluationRunProgress) super.set(fieldName, value); + } + + @Override + public EvaluationRunProgress clone() { + return (EvaluationRunProgress) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenario.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenario.java new file mode 100644 index 00000000000..0dc3ebf9622 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenario.java @@ -0,0 +1,280 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The config for a scenario + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationScenario extends com.google.api.client.json.GenericJson { + + /** + * Optional. The evaluation expectations to evaluate the conversation produced by the simulation + * against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{ev + * aluationExpectation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationExpectations; + + /** + * Optional. The maximum number of turns to simulate. If not specified, the simulation will + * continue until the task is complete. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxTurns; + + /** + * Required. The rubrics to score the scenario against. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List rubrics; + + /** + * Required. The ScenarioExpectations to evaluate the conversation produced by the user + * simulation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scenarioExpectations; + + /** + * Required. The task to be targeted by the scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String task; + + /** + * Optional. Deprecated. Use user_goal_behavior instead. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String taskCompletionBehavior; + + /** + * Optional. The user facts to be used by the scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List userFacts; + + /** + * Optional. The expected behavior of the user goal. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String userGoalBehavior; + + /** + * Optional. Variables / Session Parameters as context for the session, keyed by variable names. + * Members of this struct will override any default values set by the system. Note, these are + * different from user facts, which are facts known to the user. Variables are parameters known to + * the agent: i.e. MDN (phone number) passed by the telephony system. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map variableOverrides; + + /** + * Optional. The evaluation expectations to evaluate the conversation produced by the simulation + * against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{ev + * aluationExpectation}` + * @return value or {@code null} for none + */ + public java.util.List getEvaluationExpectations() { + return evaluationExpectations; + } + + /** + * Optional. The evaluation expectations to evaluate the conversation produced by the simulation + * against. Format: `projects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{ev + * aluationExpectation}` + * @param evaluationExpectations evaluationExpectations or {@code null} for none + */ + public EvaluationScenario setEvaluationExpectations(java.util.List evaluationExpectations) { + this.evaluationExpectations = evaluationExpectations; + return this; + } + + /** + * Optional. The maximum number of turns to simulate. If not specified, the simulation will + * continue until the task is complete. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxTurns() { + return maxTurns; + } + + /** + * Optional. The maximum number of turns to simulate. If not specified, the simulation will + * continue until the task is complete. + * @param maxTurns maxTurns or {@code null} for none + */ + public EvaluationScenario setMaxTurns(java.lang.Integer maxTurns) { + this.maxTurns = maxTurns; + return this; + } + + /** + * Required. The rubrics to score the scenario against. + * @return value or {@code null} for none + */ + public java.util.List getRubrics() { + return rubrics; + } + + /** + * Required. The rubrics to score the scenario against. + * @param rubrics rubrics or {@code null} for none + */ + public EvaluationScenario setRubrics(java.util.List rubrics) { + this.rubrics = rubrics; + return this; + } + + /** + * Required. The ScenarioExpectations to evaluate the conversation produced by the user + * simulation. + * @return value or {@code null} for none + */ + public java.util.List getScenarioExpectations() { + return scenarioExpectations; + } + + /** + * Required. The ScenarioExpectations to evaluate the conversation produced by the user + * simulation. + * @param scenarioExpectations scenarioExpectations or {@code null} for none + */ + public EvaluationScenario setScenarioExpectations(java.util.List scenarioExpectations) { + this.scenarioExpectations = scenarioExpectations; + return this; + } + + /** + * Required. The task to be targeted by the scenario. + * @return value or {@code null} for none + */ + public java.lang.String getTask() { + return task; + } + + /** + * Required. The task to be targeted by the scenario. + * @param task task or {@code null} for none + */ + public EvaluationScenario setTask(java.lang.String task) { + this.task = task; + return this; + } + + /** + * Optional. Deprecated. Use user_goal_behavior instead. + * @return value or {@code null} for none + */ + public java.lang.String getTaskCompletionBehavior() { + return taskCompletionBehavior; + } + + /** + * Optional. Deprecated. Use user_goal_behavior instead. + * @param taskCompletionBehavior taskCompletionBehavior or {@code null} for none + */ + public EvaluationScenario setTaskCompletionBehavior(java.lang.String taskCompletionBehavior) { + this.taskCompletionBehavior = taskCompletionBehavior; + return this; + } + + /** + * Optional. The user facts to be used by the scenario. + * @return value or {@code null} for none + */ + public java.util.List getUserFacts() { + return userFacts; + } + + /** + * Optional. The user facts to be used by the scenario. + * @param userFacts userFacts or {@code null} for none + */ + public EvaluationScenario setUserFacts(java.util.List userFacts) { + this.userFacts = userFacts; + return this; + } + + /** + * Optional. The expected behavior of the user goal. + * @return value or {@code null} for none + */ + public java.lang.String getUserGoalBehavior() { + return userGoalBehavior; + } + + /** + * Optional. The expected behavior of the user goal. + * @param userGoalBehavior userGoalBehavior or {@code null} for none + */ + public EvaluationScenario setUserGoalBehavior(java.lang.String userGoalBehavior) { + this.userGoalBehavior = userGoalBehavior; + return this; + } + + /** + * Optional. Variables / Session Parameters as context for the session, keyed by variable names. + * Members of this struct will override any default values set by the system. Note, these are + * different from user facts, which are facts known to the user. Variables are parameters known to + * the agent: i.e. MDN (phone number) passed by the telephony system. + * @return value or {@code null} for none + */ + public java.util.Map getVariableOverrides() { + return variableOverrides; + } + + /** + * Optional. Variables / Session Parameters as context for the session, keyed by variable names. + * Members of this struct will override any default values set by the system. Note, these are + * different from user facts, which are facts known to the user. Variables are parameters known to + * the agent: i.e. MDN (phone number) passed by the telephony system. + * @param variableOverrides variableOverrides or {@code null} for none + */ + public EvaluationScenario setVariableOverrides(java.util.Map variableOverrides) { + this.variableOverrides = variableOverrides; + return this; + } + + @Override + public EvaluationScenario set(String fieldName, Object value) { + return (EvaluationScenario) super.set(fieldName, value); + } + + @Override + public EvaluationScenario clone() { + return (EvaluationScenario) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioExpectation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioExpectation.java new file mode 100644 index 00000000000..e4de143844b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioExpectation.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.ces.v1beta.model; + +/** + * The expectation to evaluate the conversation produced by the simulation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationScenarioExpectation extends com.google.api.client.json.GenericJson { + + /** + * Optional. The agent response to be evaluated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Message agentResponse; + + /** + * Optional. The tool call and response pair to be evaluated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationScenarioExpectationToolExpectation toolExpectation; + + /** + * Optional. The agent response to be evaluated. + * @return value or {@code null} for none + */ + public Message getAgentResponse() { + return agentResponse; + } + + /** + * Optional. The agent response to be evaluated. + * @param agentResponse agentResponse or {@code null} for none + */ + public EvaluationScenarioExpectation setAgentResponse(Message agentResponse) { + this.agentResponse = agentResponse; + return this; + } + + /** + * Optional. The tool call and response pair to be evaluated. + * @return value or {@code null} for none + */ + public EvaluationScenarioExpectationToolExpectation getToolExpectation() { + return toolExpectation; + } + + /** + * Optional. The tool call and response pair to be evaluated. + * @param toolExpectation toolExpectation or {@code null} for none + */ + public EvaluationScenarioExpectation setToolExpectation(EvaluationScenarioExpectationToolExpectation toolExpectation) { + this.toolExpectation = toolExpectation; + return this; + } + + @Override + public EvaluationScenarioExpectation set(String fieldName, Object value) { + return (EvaluationScenarioExpectation) super.set(fieldName, value); + } + + @Override + public EvaluationScenarioExpectation clone() { + return (EvaluationScenarioExpectation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioExpectationToolExpectation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioExpectationToolExpectation.java new file mode 100644 index 00000000000..3a8fc50adeb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioExpectationToolExpectation.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The tool call and response pair to be evaluated. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationScenarioExpectationToolExpectation extends com.google.api.client.json.GenericJson { + + /** + * Required. The expected tool call, with the parameters of interest specified. Any parameters not + * specified will be hallucinated by the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCall expectedToolCall; + + /** + * Required. The tool response to mock, with the parameters of interest specified. Any parameters + * not specified will be hallucinated by the LLM. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponse mockToolResponse; + + /** + * Required. The expected tool call, with the parameters of interest specified. Any parameters not + * specified will be hallucinated by the LLM. + * @return value or {@code null} for none + */ + public ToolCall getExpectedToolCall() { + return expectedToolCall; + } + + /** + * Required. The expected tool call, with the parameters of interest specified. Any parameters not + * specified will be hallucinated by the LLM. + * @param expectedToolCall expectedToolCall or {@code null} for none + */ + public EvaluationScenarioExpectationToolExpectation setExpectedToolCall(ToolCall expectedToolCall) { + this.expectedToolCall = expectedToolCall; + return this; + } + + /** + * Required. The tool response to mock, with the parameters of interest specified. Any parameters + * not specified will be hallucinated by the LLM. + * @return value or {@code null} for none + */ + public ToolResponse getMockToolResponse() { + return mockToolResponse; + } + + /** + * Required. The tool response to mock, with the parameters of interest specified. Any parameters + * not specified will be hallucinated by the LLM. + * @param mockToolResponse mockToolResponse or {@code null} for none + */ + public EvaluationScenarioExpectationToolExpectation setMockToolResponse(ToolResponse mockToolResponse) { + this.mockToolResponse = mockToolResponse; + return this; + } + + @Override + public EvaluationScenarioExpectationToolExpectation set(String fieldName, Object value) { + return (EvaluationScenarioExpectationToolExpectation) super.set(fieldName, value); + } + + @Override + public EvaluationScenarioExpectationToolExpectation clone() { + return (EvaluationScenarioExpectationToolExpectation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioUserFact.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioUserFact.java new file mode 100644 index 00000000000..53a23745c85 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationScenarioUserFact.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.ces.v1beta.model; + +/** + * Facts about the user as a key value pair. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationScenarioUserFact extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the user fact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The value of the user fact. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String value; + + /** + * Required. The name of the user fact. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the user fact. + * @param name name or {@code null} for none + */ + public EvaluationScenarioUserFact setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The value of the user fact. + * @return value or {@code null} for none + */ + public java.lang.String getValue() { + return value; + } + + /** + * Required. The value of the user fact. + * @param value value or {@code null} for none + */ + public EvaluationScenarioUserFact setValue(java.lang.String value) { + this.value = value; + return this; + } + + @Override + public EvaluationScenarioUserFact set(String fieldName, Object value) { + return (EvaluationScenarioUserFact) super.set(fieldName, value); + } + + @Override + public EvaluationScenarioUserFact clone() { + return (EvaluationScenarioUserFact) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationSettings.java new file mode 100644 index 00000000000..b9e64137878 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationSettings.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.ces.v1beta.model; + +/** + * Settings for evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configures the default tool call behaviour for golden evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenEvaluationToolCallBehaviour; + + /** + * Optional. The default method used to run golden evaluations. This will be used if no + * golden_run_method is specified in the RunEvaluationRequest. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenRunMethod; + + /** + * Optional. Who starts the conversation in a scenario evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scenarioConversationInitiator; + + /** + * Optional. Configures the default tool call behaviour for scenario evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scenarioEvaluationToolCallBehaviour; + + /** + * Optional. Configures the default tool call behaviour for golden evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenEvaluationToolCallBehaviour() { + return goldenEvaluationToolCallBehaviour; + } + + /** + * Optional. Configures the default tool call behaviour for golden evaluations. + * @param goldenEvaluationToolCallBehaviour goldenEvaluationToolCallBehaviour or {@code null} for none + */ + public EvaluationSettings setGoldenEvaluationToolCallBehaviour(java.lang.String goldenEvaluationToolCallBehaviour) { + this.goldenEvaluationToolCallBehaviour = goldenEvaluationToolCallBehaviour; + return this; + } + + /** + * Optional. The default method used to run golden evaluations. This will be used if no + * golden_run_method is specified in the RunEvaluationRequest. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenRunMethod() { + return goldenRunMethod; + } + + /** + * Optional. The default method used to run golden evaluations. This will be used if no + * golden_run_method is specified in the RunEvaluationRequest. + * @param goldenRunMethod goldenRunMethod or {@code null} for none + */ + public EvaluationSettings setGoldenRunMethod(java.lang.String goldenRunMethod) { + this.goldenRunMethod = goldenRunMethod; + return this; + } + + /** + * Optional. Who starts the conversation in a scenario evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getScenarioConversationInitiator() { + return scenarioConversationInitiator; + } + + /** + * Optional. Who starts the conversation in a scenario evaluation. + * @param scenarioConversationInitiator scenarioConversationInitiator or {@code null} for none + */ + public EvaluationSettings setScenarioConversationInitiator(java.lang.String scenarioConversationInitiator) { + this.scenarioConversationInitiator = scenarioConversationInitiator; + return this; + } + + /** + * Optional. Configures the default tool call behaviour for scenario evaluations. + * @return value or {@code null} for none + */ + public java.lang.String getScenarioEvaluationToolCallBehaviour() { + return scenarioEvaluationToolCallBehaviour; + } + + /** + * Optional. Configures the default tool call behaviour for scenario evaluations. + * @param scenarioEvaluationToolCallBehaviour scenarioEvaluationToolCallBehaviour or {@code null} for none + */ + public EvaluationSettings setScenarioEvaluationToolCallBehaviour(java.lang.String scenarioEvaluationToolCallBehaviour) { + this.scenarioEvaluationToolCallBehaviour = scenarioEvaluationToolCallBehaviour; + return this; + } + + @Override + public EvaluationSettings set(String fieldName, Object value) { + return (EvaluationSettings) super.set(fieldName, value); + } + + @Override + public EvaluationSettings clone() { + return (EvaluationSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationStep.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationStep.java new file mode 100644 index 00000000000..453848f993a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/EvaluationStep.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A step defines a singular action to happen during the evaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class EvaluationStep extends com.google.api.client.json.GenericJson { + + /** + * Optional. Transfer the conversation to a different agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AgentTransfer agentTransfer; + + /** + * Optional. Executes an expectation on the current turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationGoldenExpectation expectation; + + /** + * Optional. User input for the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionInput userInput; + + /** + * Optional. Transfer the conversation to a different agent. + * @return value or {@code null} for none + */ + public AgentTransfer getAgentTransfer() { + return agentTransfer; + } + + /** + * Optional. Transfer the conversation to a different agent. + * @param agentTransfer agentTransfer or {@code null} for none + */ + public EvaluationStep setAgentTransfer(AgentTransfer agentTransfer) { + this.agentTransfer = agentTransfer; + return this; + } + + /** + * Optional. Executes an expectation on the current turn. + * @return value or {@code null} for none + */ + public EvaluationGoldenExpectation getExpectation() { + return expectation; + } + + /** + * Optional. Executes an expectation on the current turn. + * @param expectation expectation or {@code null} for none + */ + public EvaluationStep setExpectation(EvaluationGoldenExpectation expectation) { + this.expectation = expectation; + return this; + } + + /** + * Optional. User input for the conversation. + * @return value or {@code null} for none + */ + public SessionInput getUserInput() { + return userInput; + } + + /** + * Optional. User input for the conversation. + * @param userInput userInput or {@code null} for none + */ + public EvaluationStep setUserInput(SessionInput userInput) { + this.userInput = userInput; + return this; + } + + @Override + public EvaluationStep set(String fieldName, Object value) { + return (EvaluationStep) super.set(fieldName, value); + } + + @Override + public EvaluationStep clone() { + return (EvaluationStep) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Event.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Event.java new file mode 100644 index 00000000000..9b666008fc4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Event.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Event input. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Event extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the event. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String event; + + /** + * Required. The name of the event. + * @return value or {@code null} for none + */ + public java.lang.String getEvent() { + return event; + } + + /** + * Required. The name of the event. + * @param event event or {@code null} for none + */ + public Event setEvent(java.lang.String event) { + this.event = event; + return this; + } + + @Override + public Event set(String fieldName, Object value) { + return (Event) super.set(fieldName, value); + } + + @Override + public Event clone() { + return (Event) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Example.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Example.java new file mode 100644 index 00000000000..bdb9274c38e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Example.java @@ -0,0 +1,274 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An example represents a sample conversation between the user and the agent(s). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Example extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the example was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean invalid; + + /** + * Optional. The collection of messages that make up the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the example was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Timestamp when the example was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the example was created. + * @param createTime createTime or {@code null} for none + */ + public Example setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable description of the example. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the example. + * @param description description or {@code null} for none + */ + public Example setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the example. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the example. + * @param displayName displayName or {@code null} for none + */ + public Example setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getEntryAgent() { + return entryAgent; + } + + /** + * Optional. The agent that initially handles the conversation. If not specified, the example + * represents a conversation that is handled by the root agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param entryAgent entryAgent or {@code null} for none + */ + public Example setEntryAgent(java.lang.String entryAgent) { + this.entryAgent = entryAgent; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Example setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * @return value or {@code null} for none + */ + public java.lang.Boolean getInvalid() { + return invalid; + } + + /** + * Output only. The example may become invalid if referencing resources are deleted. Invalid + * examples will not be used as few-shot examples. + * @param invalid invalid or {@code null} for none + */ + public Example setInvalid(java.lang.Boolean invalid) { + this.invalid = invalid; + return this; + } + + /** + * Optional. The collection of messages that make up the conversation. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * Optional. The collection of messages that make up the conversation. + * @param messages messages or {@code null} for none + */ + public Example setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the example. Format: + * `projects/{project}/locations/{location}/apps/{app}/examples/{example}` + * @param name name or {@code null} for none + */ + public Example setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the example was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the example was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Example setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Example set(String fieldName, Object value) { + return (Example) super.set(fieldName, value); + } + + @Override + public Example clone() { + return (Example) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExecuteToolRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExecuteToolRequest.java new file mode 100644 index 00000000000..b2f200d47fe --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExecuteToolRequest.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for ToolService.ExecuteTool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExecuteToolRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map args; + + /** + * Optional. The name of the tool to execute. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool to execute. Only one tool should match the predicate from the + * toolset. Otherwise, an error will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @return value or {@code null} for none + */ + public java.util.Map getArgs() { + return args; + } + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @param args args or {@code null} for none + */ + public ExecuteToolRequest setArgs(java.util.Map args) { + this.args = args; + return this; + } + + /** + * Optional. The name of the tool to execute. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to execute. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @param tool tool or {@code null} for none + */ + public ExecuteToolRequest setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool to execute. Only one tool should match the predicate from the + * toolset. Otherwise, an error will be returned. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool to execute. Only one tool should match the predicate from the + * toolset. Otherwise, an error will be returned. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ExecuteToolRequest setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ExecuteToolRequest set(String fieldName, Object value) { + return (ExecuteToolRequest) super.set(fieldName, value); + } + + @Override + public ExecuteToolRequest clone() { + return (ExecuteToolRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExecuteToolResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExecuteToolResponse.java new file mode 100644 index 00000000000..b0fb6a38337 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExecuteToolResponse.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for ToolService.ExecuteTool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExecuteToolResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * The toolset tool that got executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @param response response or {@code null} for none + */ + public ExecuteToolResponse setResponse(java.util.Map response) { + this.response = response; + return this; + } + + /** + * The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * The name of the tool that got executed. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public ExecuteToolResponse setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * The toolset tool that got executed. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * The toolset tool that got executed. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ExecuteToolResponse setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ExecuteToolResponse set(String fieldName, Object value) { + return (ExecuteToolResponse) super.set(fieldName, value); + } + + @Override + public ExecuteToolResponse clone() { + return (ExecuteToolResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExportAppRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExportAppRequest.java new file mode 100644 index 00000000000..1f6d39a4596 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExportAppRequest.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for AgentService.ExportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The format to export the app in. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String exportFormat; + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Required. The format to export the app in. + * @return value or {@code null} for none + */ + public java.lang.String getExportFormat() { + return exportFormat; + } + + /** + * Required. The format to export the app in. + * @param exportFormat exportFormat or {@code null} for none + */ + public ExportAppRequest setExportFormat(java.lang.String exportFormat) { + this.exportFormat = exportFormat; + return this; + } + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which to + * export the app. The format of this URI must be `gs:`. The exported app archive will be written + * directly to the specified GCS object. + * @param gcsUri gcsUri or {@code null} for none + */ + public ExportAppRequest setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + @Override + public ExportAppRequest set(String fieldName, Object value) { + return (ExportAppRequest) super.set(fieldName, value); + } + + @Override + public ExportAppRequest clone() { + return (ExportAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExportAppResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExportAppResponse.java new file mode 100644 index 00000000000..afb4ebb5a22 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExportAppResponse.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ExportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExportAppResponse extends com.google.api.client.json.GenericJson { + + /** + * App folder compressed as a zip file. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appContent; + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appUri; + + /** + * App folder compressed as a zip file. + * @see #decodeAppContent() + * @return value or {@code null} for none + */ + public java.lang.String getAppContent() { + return appContent; + } + + /** + * App folder compressed as a zip file. + * @see #getAppContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAppContent() { + return com.google.api.client.util.Base64.decodeBase64(appContent); + } + + /** + * App folder compressed as a zip file. + * @see #encodeAppContent() + * @param appContent appContent or {@code null} for none + */ + public ExportAppResponse setAppContent(java.lang.String appContent) { + this.appContent = appContent; + return this; + } + + /** + * App folder compressed as a zip file. + * @see #setAppContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ExportAppResponse encodeAppContent(byte[] appContent) { + this.appContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(appContent); + return this; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * @return value or {@code null} for none + */ + public java.lang.String getAppUri() { + return appUri; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to which the app was + * exported. + * @param appUri appUri or {@code null} for none + */ + public ExportAppResponse setAppUri(java.lang.String appUri) { + this.appUri = appUri; + return this; + } + + @Override + public ExportAppResponse set(String fieldName, Object value) { + return (ExportAppResponse) super.set(fieldName, value); + } + + @Override + public ExportAppResponse clone() { + return (ExportAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExpressionCondition.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExpressionCondition.java new file mode 100644 index 00000000000..ad3f21cca65 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ExpressionCondition.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Expression condition based on session 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ExpressionCondition extends com.google.api.client.json.GenericJson { + + /** + * Required. The string representation of cloud.api.Expression condition. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String expression; + + /** + * Required. The string representation of cloud.api.Expression condition. + * @return value or {@code null} for none + */ + public java.lang.String getExpression() { + return expression; + } + + /** + * Required. The string representation of cloud.api.Expression condition. + * @param expression expression or {@code null} for none + */ + public ExpressionCondition setExpression(java.lang.String expression) { + this.expression = expression; + return this; + } + + @Override + public ExpressionCondition set(String fieldName, Object value) { + return (ExpressionCondition) super.set(fieldName, value); + } + + @Override + public ExpressionCondition clone() { + return (ExpressionCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/FileSearchTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/FileSearchTool.java new file mode 100644 index 00000000000..133b60beb7e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/FileSearchTool.java @@ -0,0 +1,144 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The file search tool allows the agent to search across the files uploaded by the app/agent + * developer. It has presets to give relatively good quality search over the uploaded files and + * summarization of the retrieved results. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class FileSearchTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String corpusType; + + /** + * Optional. The tool description. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fileCorpus; + + /** + * Required. The tool name. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * @return value or {@code null} for none + */ + public java.lang.String getCorpusType() { + return corpusType; + } + + /** + * Optional. The type of the corpus. Default is FULLY_MANAGED. + * @param corpusType corpusType or {@code null} for none + */ + public FileSearchTool setCorpusType(java.lang.String corpusType) { + this.corpusType = corpusType; + return this; + } + + /** + * Optional. The tool description. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The tool description. + * @param description description or {@code null} for none + */ + public FileSearchTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * @return value or {@code null} for none + */ + public java.lang.String getFileCorpus() { + return fileCorpus; + } + + /** + * Optional. The corpus where files are stored. Format: + * projects/{project}/locations/{location}/ragCorpora/{rag_corpus} + * @param fileCorpus fileCorpus or {@code null} for none + */ + public FileSearchTool setFileCorpus(java.lang.String fileCorpus) { + this.fileCorpus = fileCorpus; + return this; + } + + /** + * Required. The tool name. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The tool name. + * @param name name or {@code null} for none + */ + public FileSearchTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public FileSearchTool set(String fieldName, Object value) { + return (FileSearchTool) super.set(fieldName, value); + } + + @Override + public FileSearchTool clone() { + return (FileSearchTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java new file mode 100644 index 00000000000..c6515228024 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponse.java @@ -0,0 +1,214 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.GenerateAppResource. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateAppResourceResponse extends com.google.api.client.json.GenericJson { + + /** + * Agent generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Agent agent; + + /** + * The app resources generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenerateAppResourceResponseAppResources appResources; + + /** + * App snapshot generated by the LLM assistant. This snapshot contains the app, agents & tools + * generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppSnapshot appSnapshot; + + /** + * Evaluations generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenerateAppResourceResponseEvaluations evaluations; + + /** + * Additional information about the generated result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenerateAppResourceResponseGenerateResultInfo generateResultInfo; + + /** + * The list of tools generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GenerateAppResourceResponseTools tools; + + /** + * Toolset generated by the LLM assistant. Supports Open API toolset schema generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Toolset toolset; + + /** + * Agent generated by the LLM assistant. + * @return value or {@code null} for none + */ + public Agent getAgent() { + return agent; + } + + /** + * Agent generated by the LLM assistant. + * @param agent agent or {@code null} for none + */ + public GenerateAppResourceResponse setAgent(Agent agent) { + this.agent = agent; + return this; + } + + /** + * The app resources generated by the LLM assistant. + * @return value or {@code null} for none + */ + public GenerateAppResourceResponseAppResources getAppResources() { + return appResources; + } + + /** + * The app resources generated by the LLM assistant. + * @param appResources appResources or {@code null} for none + */ + public GenerateAppResourceResponse setAppResources(GenerateAppResourceResponseAppResources appResources) { + this.appResources = appResources; + return this; + } + + /** + * App snapshot generated by the LLM assistant. This snapshot contains the app, agents & tools + * generated by the LLM assistant. + * @return value or {@code null} for none + */ + public AppSnapshot getAppSnapshot() { + return appSnapshot; + } + + /** + * App snapshot generated by the LLM assistant. This snapshot contains the app, agents & tools + * generated by the LLM assistant. + * @param appSnapshot appSnapshot or {@code null} for none + */ + public GenerateAppResourceResponse setAppSnapshot(AppSnapshot appSnapshot) { + this.appSnapshot = appSnapshot; + return this; + } + + /** + * Evaluations generated by the LLM assistant. + * @return value or {@code null} for none + */ + public GenerateAppResourceResponseEvaluations getEvaluations() { + return evaluations; + } + + /** + * Evaluations generated by the LLM assistant. + * @param evaluations evaluations or {@code null} for none + */ + public GenerateAppResourceResponse setEvaluations(GenerateAppResourceResponseEvaluations evaluations) { + this.evaluations = evaluations; + return this; + } + + /** + * Additional information about the generated result. + * @return value or {@code null} for none + */ + public GenerateAppResourceResponseGenerateResultInfo getGenerateResultInfo() { + return generateResultInfo; + } + + /** + * Additional information about the generated result. + * @param generateResultInfo generateResultInfo or {@code null} for none + */ + public GenerateAppResourceResponse setGenerateResultInfo(GenerateAppResourceResponseGenerateResultInfo generateResultInfo) { + this.generateResultInfo = generateResultInfo; + return this; + } + + /** + * The list of tools generated by the LLM assistant. + * @return value or {@code null} for none + */ + public GenerateAppResourceResponseTools getTools() { + return tools; + } + + /** + * The list of tools generated by the LLM assistant. + * @param tools tools or {@code null} for none + */ + public GenerateAppResourceResponse setTools(GenerateAppResourceResponseTools tools) { + this.tools = tools; + return this; + } + + /** + * Toolset generated by the LLM assistant. Supports Open API toolset schema generation. + * @return value or {@code null} for none + */ + public Toolset getToolset() { + return toolset; + } + + /** + * Toolset generated by the LLM assistant. Supports Open API toolset schema generation. + * @param toolset toolset or {@code null} for none + */ + public GenerateAppResourceResponse setToolset(Toolset toolset) { + this.toolset = toolset; + return this; + } + + @Override + public GenerateAppResourceResponse set(String fieldName, Object value) { + return (GenerateAppResourceResponse) super.set(fieldName, value); + } + + @Override + public GenerateAppResourceResponse clone() { + return (GenerateAppResourceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseAppResources.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseAppResources.java new file mode 100644 index 00000000000..d65f1c400e9 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseAppResources.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The list of app resources generated by the LLM assistant. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateAppResourceResponseAppResources extends com.google.api.client.json.GenericJson { + + /** + * The app snapshot generated by the LLM assistant. This snapshot contains the app, agents & tools + * generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AppSnapshot appSnapshot; + + /** + * The list of evaluations generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + static { + // hack to force ProGuard to consider Evaluation 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(Evaluation.class); + } + + /** + * The app snapshot generated by the LLM assistant. This snapshot contains the app, agents & tools + * generated by the LLM assistant. + * @return value or {@code null} for none + */ + public AppSnapshot getAppSnapshot() { + return appSnapshot; + } + + /** + * The app snapshot generated by the LLM assistant. This snapshot contains the app, agents & tools + * generated by the LLM assistant. + * @param appSnapshot appSnapshot or {@code null} for none + */ + public GenerateAppResourceResponseAppResources setAppSnapshot(AppSnapshot appSnapshot) { + this.appSnapshot = appSnapshot; + return this; + } + + /** + * The list of evaluations generated by the LLM assistant. + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * The list of evaluations generated by the LLM assistant. + * @param evaluations evaluations or {@code null} for none + */ + public GenerateAppResourceResponseAppResources setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + @Override + public GenerateAppResourceResponseAppResources set(String fieldName, Object value) { + return (GenerateAppResourceResponseAppResources) super.set(fieldName, value); + } + + @Override + public GenerateAppResourceResponseAppResources clone() { + return (GenerateAppResourceResponseAppResources) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseEvaluations.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseEvaluations.java new file mode 100644 index 00000000000..5e9e4a64e14 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseEvaluations.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.ces.v1beta.model; + +/** + * The list of evaluations generated by the LLM assistant. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateAppResourceResponseEvaluations extends com.google.api.client.json.GenericJson { + + /** + * The list of generated evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + static { + // hack to force ProGuard to consider Evaluation 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(Evaluation.class); + } + + /** + * The list of generated evaluations. + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * The list of generated evaluations. + * @param evaluations evaluations or {@code null} for none + */ + public GenerateAppResourceResponseEvaluations setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + @Override + public GenerateAppResourceResponseEvaluations set(String fieldName, Object value) { + return (GenerateAppResourceResponseEvaluations) super.set(fieldName, value); + } + + @Override + public GenerateAppResourceResponseEvaluations clone() { + return (GenerateAppResourceResponseEvaluations) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseGenerateResultInfo.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseGenerateResultInfo.java new file mode 100644 index 00000000000..a55e5e673ce --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseGenerateResultInfo.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * This provides additional information about the generated result. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateAppResourceResponseGenerateResultInfo extends com.google.api.client.json.GenericJson { + + /** + * An explanation of the changes in the generated resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String explanation; + + /** + * An explanation of the changes in the generated resource. + * @return value or {@code null} for none + */ + public java.lang.String getExplanation() { + return explanation; + } + + /** + * An explanation of the changes in the generated resource. + * @param explanation explanation or {@code null} for none + */ + public GenerateAppResourceResponseGenerateResultInfo setExplanation(java.lang.String explanation) { + this.explanation = explanation; + return this; + } + + @Override + public GenerateAppResourceResponseGenerateResultInfo set(String fieldName, Object value) { + return (GenerateAppResourceResponseGenerateResultInfo) super.set(fieldName, value); + } + + @Override + public GenerateAppResourceResponseGenerateResultInfo clone() { + return (GenerateAppResourceResponseGenerateResultInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseTools.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseTools.java new file mode 100644 index 00000000000..d1d491d6809 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateAppResourceResponseTools.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The list of tools generated by the LLM assistant. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateAppResourceResponseTools extends com.google.api.client.json.GenericJson { + + /** + * The list of tools generated by the LLM assistant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * The list of tools generated by the LLM assistant. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * The list of tools generated by the LLM assistant. + * @param tools tools or {@code null} for none + */ + public GenerateAppResourceResponseTools setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + @Override + public GenerateAppResourceResponseTools set(String fieldName, Object value) { + return (GenerateAppResourceResponseTools) super.set(fieldName, value); + } + + @Override + public GenerateAppResourceResponseTools clone() { + return (GenerateAppResourceResponseTools) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateChatTokenRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateChatTokenRequest.java new file mode 100644 index 00000000000..0914f7495fb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateChatTokenRequest.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for WidgetService.GenerateChatToken. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateChatTokenRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String recaptchaToken; + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Required. The deployment of the app to use for the session. Format: + * projects/{project}/locations/{location}/apps/{app}/deployments/{deployment} + * @param deployment deployment or {@code null} for none + */ + public GenerateChatTokenRequest setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * @return value or {@code null} for none + */ + public java.lang.String getRecaptchaToken() { + return recaptchaToken; + } + + /** + * Optional. The reCAPTCHA token generated by the client-side chat widget. + * @param recaptchaToken recaptchaToken or {@code null} for none + */ + public GenerateChatTokenRequest setRecaptchaToken(java.lang.String recaptchaToken) { + this.recaptchaToken = recaptchaToken; + return this; + } + + @Override + public GenerateChatTokenRequest set(String fieldName, Object value) { + return (GenerateChatTokenRequest) super.set(fieldName, value); + } + + @Override + public GenerateChatTokenRequest clone() { + return (GenerateChatTokenRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateChatTokenResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateChatTokenResponse.java new file mode 100644 index 00000000000..1855da2dbcc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateChatTokenResponse.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.ces.v1beta.model; + +/** + * Response message for WidgetService.GenerateChatToken. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateChatTokenResponse extends com.google.api.client.json.GenericJson { + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String chatToken; + + /** + * The time at which the chat token expires. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String expireTime; + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * @return value or {@code null} for none + */ + public java.lang.String getChatToken() { + return chatToken; + } + + /** + * The session scoped token for chat widget to authenticate with Session APIs. + * @param chatToken chatToken or {@code null} for none + */ + public GenerateChatTokenResponse setChatToken(java.lang.String chatToken) { + this.chatToken = chatToken; + return this; + } + + /** + * The time at which the chat token expires. + * @return value or {@code null} for none + */ + public String getExpireTime() { + return expireTime; + } + + /** + * The time at which the chat token expires. + * @param expireTime expireTime or {@code null} for none + */ + public GenerateChatTokenResponse setExpireTime(String expireTime) { + this.expireTime = expireTime; + return this; + } + + @Override + public GenerateChatTokenResponse set(String fieldName, Object value) { + return (GenerateChatTokenResponse) super.set(fieldName, value); + } + + @Override + public GenerateChatTokenResponse clone() { + return (GenerateChatTokenResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateEvaluationOperationMetadata.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateEvaluationOperationMetadata.java new file mode 100644 index 00000000000..652f2a29f2c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateEvaluationOperationMetadata.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Operation metadata for EvaluationService.GenerateEvaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateEvaluationOperationMetadata extends com.google.api.client.json.GenericJson { + + @Override + public GenerateEvaluationOperationMetadata set(String fieldName, Object value) { + return (GenerateEvaluationOperationMetadata) super.set(fieldName, value); + } + + @Override + public GenerateEvaluationOperationMetadata clone() { + return (GenerateEvaluationOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateEvaluationRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateEvaluationRequest.java new file mode 100644 index 00000000000..dbb1000c4cc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GenerateEvaluationRequest.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for EvaluationService.GenerateEvaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GenerateEvaluationRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. Indicate the source of the conversation. If not set, all sources will be searched. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String source; + + /** + * Optional. Indicate the source of the conversation. If not set, all sources will be searched. + * @return value or {@code null} for none + */ + public java.lang.String getSource() { + return source; + } + + /** + * Optional. Indicate the source of the conversation. If not set, all sources will be searched. + * @param source source or {@code null} for none + */ + public GenerateEvaluationRequest setSource(java.lang.String source) { + this.source = source; + return this; + } + + @Override + public GenerateEvaluationRequest set(String fieldName, Object value) { + return (GenerateEvaluationRequest) super.set(fieldName, value); + } + + @Override + public GenerateEvaluationRequest clone() { + return (GenerateEvaluationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GoogleSearchSuggestions.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GoogleSearchSuggestions.java new file mode 100644 index 00000000000..ca5d3de7a2e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GoogleSearchSuggestions.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Search suggestions from Google Search Tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleSearchSuggestions extends com.google.api.client.json.GenericJson { + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List htmls; + + /** + * List of queries used to perform the google search along with the search result URIs forming the + * search suggestions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List webSearchQueries; + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * @return value or {@code null} for none + */ + public java.util.List getHtmls() { + return htmls; + } + + /** + * Compliant HTML and CSS styling for search suggestions. The provided HTML and CSS automatically + * adapts to your device settings, displaying in either light or dark mode indicated by + * `@media(prefers-color-scheme)`. + * @param htmls htmls or {@code null} for none + */ + public GoogleSearchSuggestions setHtmls(java.util.List htmls) { + this.htmls = htmls; + return this; + } + + /** + * List of queries used to perform the google search along with the search result URIs forming the + * search suggestions. + * @return value or {@code null} for none + */ + public java.util.List getWebSearchQueries() { + return webSearchQueries; + } + + /** + * List of queries used to perform the google search along with the search result URIs forming the + * search suggestions. + * @param webSearchQueries webSearchQueries or {@code null} for none + */ + public GoogleSearchSuggestions setWebSearchQueries(java.util.List webSearchQueries) { + this.webSearchQueries = webSearchQueries; + return this; + } + + @Override + public GoogleSearchSuggestions set(String fieldName, Object value) { + return (GoogleSearchSuggestions) super.set(fieldName, value); + } + + @Override + public GoogleSearchSuggestions clone() { + return (GoogleSearchSuggestions) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GoogleSearchTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GoogleSearchTool.java new file mode 100644 index 00000000000..895003c1556 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GoogleSearchTool.java @@ -0,0 +1,173 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a tool to perform Google web searches for grounding. See + * https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GoogleSearchTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List contextUrls; + + /** + * Optional. Description of the tool's purpose. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. List of domains to be excluded from the search results. Example: "example.com". A + * maximum of 2000 domains can be excluded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List excludeDomains; + + /** + * Required. The name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Specifies domains to restrict search results to. Example: "example.com", + * "another.site". A maximum of 20 domains can be specified. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List preferredDomains; + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * @return value or {@code null} for none + */ + public java.util.List getContextUrls() { + return contextUrls; + } + + /** + * Optional. Content will be fetched directly from these URLs for context and grounding. Example: + * "https://example.com/path.html". A maximum of 20 URLs are allowed. + * @param contextUrls contextUrls or {@code null} for none + */ + public GoogleSearchTool setContextUrls(java.util.List contextUrls) { + this.contextUrls = contextUrls; + return this; + } + + /** + * Optional. Description of the tool's purpose. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the tool's purpose. + * @param description description or {@code null} for none + */ + public GoogleSearchTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. List of domains to be excluded from the search results. Example: "example.com". A + * maximum of 2000 domains can be excluded. + * @return value or {@code null} for none + */ + public java.util.List getExcludeDomains() { + return excludeDomains; + } + + /** + * Optional. List of domains to be excluded from the search results. Example: "example.com". A + * maximum of 2000 domains can be excluded. + * @param excludeDomains excludeDomains or {@code null} for none + */ + public GoogleSearchTool setExcludeDomains(java.util.List excludeDomains) { + this.excludeDomains = excludeDomains; + return this; + } + + /** + * Required. The name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the tool. + * @param name name or {@code null} for none + */ + public GoogleSearchTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Specifies domains to restrict search results to. Example: "example.com", + * "another.site". A maximum of 20 domains can be specified. + * @return value or {@code null} for none + */ + public java.util.List getPreferredDomains() { + return preferredDomains; + } + + /** + * Optional. Specifies domains to restrict search results to. Example: "example.com", + * "another.site". A maximum of 20 domains can be specified. + * @param preferredDomains preferredDomains or {@code null} for none + */ + public GoogleSearchTool setPreferredDomains(java.util.List preferredDomains) { + this.preferredDomains = preferredDomains; + return this; + } + + @Override + public GoogleSearchTool set(String fieldName, Object value) { + return (GoogleSearchTool) super.set(fieldName, value); + } + + @Override + public GoogleSearchTool clone() { + return (GoogleSearchTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Guardrail.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Guardrail.java new file mode 100644 index 00000000000..c04c897665e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Guardrail.java @@ -0,0 +1,373 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Guardrail contains a list of checks and balances to keep the agents safe and secure. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Guardrail extends com.google.api.client.json.GenericJson { + + /** + * Optional. Action to take when the guardrail is triggered. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerAction action; + + /** + * Optional. Guardrail that potentially blocks the conversation based on the result of the + * callback execution. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailCodeCallback codeCallback; + + /** + * Optional. Guardrail that bans certain content from being used in the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailContentFilter contentFilter; + + /** + * Output only. Timestamp when the guardrail was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Description of the guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. Whether the guardrail is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered violating + * the policy based on the LLM classification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPolicy llmPolicy; + + /** + * Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on + * the LLM classification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPromptSecurity llmPromptSecurity; + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based + * on the model safety settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailModelSafety modelSafety; + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the guardrail was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Action to take when the guardrail is triggered. + * @return value or {@code null} for none + */ + public TriggerAction getAction() { + return action; + } + + /** + * Optional. Action to take when the guardrail is triggered. + * @param action action or {@code null} for none + */ + public Guardrail setAction(TriggerAction action) { + this.action = action; + return this; + } + + /** + * Optional. Guardrail that potentially blocks the conversation based on the result of the + * callback execution. + * @return value or {@code null} for none + */ + public GuardrailCodeCallback getCodeCallback() { + return codeCallback; + } + + /** + * Optional. Guardrail that potentially blocks the conversation based on the result of the + * callback execution. + * @param codeCallback codeCallback or {@code null} for none + */ + public Guardrail setCodeCallback(GuardrailCodeCallback codeCallback) { + this.codeCallback = codeCallback; + return this; + } + + /** + * Optional. Guardrail that bans certain content from being used in the conversation. + * @return value or {@code null} for none + */ + public GuardrailContentFilter getContentFilter() { + return contentFilter; + } + + /** + * Optional. Guardrail that bans certain content from being used in the conversation. + * @param contentFilter contentFilter or {@code null} for none + */ + public Guardrail setContentFilter(GuardrailContentFilter contentFilter) { + this.contentFilter = contentFilter; + return this; + } + + /** + * Output only. Timestamp when the guardrail was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the guardrail was created. + * @param createTime createTime or {@code null} for none + */ + public Guardrail setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Description of the guardrail. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Description of the guardrail. + * @param description description or {@code null} for none + */ + public Guardrail setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the guardrail. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the guardrail. + * @param displayName displayName or {@code null} for none + */ + public Guardrail setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. Whether the guardrail is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Whether the guardrail is enabled. + * @param enabled enabled or {@code null} for none + */ + public Guardrail setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Guardrail setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered violating + * the policy based on the LLM classification. + * @return value or {@code null} for none + */ + public GuardrailLlmPolicy getLlmPolicy() { + return llmPolicy; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered violating + * the policy based on the LLM classification. + * @param llmPolicy llmPolicy or {@code null} for none + */ + public Guardrail setLlmPolicy(GuardrailLlmPolicy llmPolicy) { + this.llmPolicy = llmPolicy; + return this; + } + + /** + * Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on + * the LLM classification. + * @return value or {@code null} for none + */ + public GuardrailLlmPromptSecurity getLlmPromptSecurity() { + return llmPromptSecurity; + } + + /** + * Optional. Guardrail that blocks the conversation if the prompt is considered unsafe based on + * the LLM classification. + * @param llmPromptSecurity llmPromptSecurity or {@code null} for none + */ + public Guardrail setLlmPromptSecurity(GuardrailLlmPromptSecurity llmPromptSecurity) { + this.llmPromptSecurity = llmPromptSecurity; + return this; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based + * on the model safety settings. + * @return value or {@code null} for none + */ + public GuardrailModelSafety getModelSafety() { + return modelSafety; + } + + /** + * Optional. Guardrail that blocks the conversation if the LLM response is considered unsafe based + * on the model safety settings. + * @param modelSafety modelSafety or {@code null} for none + */ + public Guardrail setModelSafety(GuardrailModelSafety modelSafety) { + this.modelSafety = modelSafety; + return this; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}` + * @param name name or {@code null} for none + */ + public Guardrail setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the guardrail was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the guardrail was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Guardrail setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Guardrail set(String fieldName, Object value) { + return (Guardrail) super.set(fieldName, value); + } + + @Override + public Guardrail clone() { + return (Guardrail) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailCodeCallback.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailCodeCallback.java new file mode 100644 index 00000000000..4aab7abcb96 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailCodeCallback.java @@ -0,0 +1,181 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Guardrail that blocks the conversation based on the code callbacks provided. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailCodeCallback extends com.google.api.client.json.GenericJson { + + /** + * Optional. The callback to execute after the agent is called. Each callback function is expected + * to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' + * or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt + * further processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback afterAgentCallback; + + /** + * Optional. The callback to execute after the model is called. If there are multiple calls to the + * model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback afterModelCallback; + + /** + * Optional. The callback to execute before the agent is called. Each callback function is + * expected to return a structure (e.g., a dict or object) containing at least: - 'decision': + * Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision + * may halt further processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback beforeAgentCallback; + + /** + * Optional. The callback to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Callback beforeModelCallback; + + /** + * Optional. The callback to execute after the agent is called. Each callback function is expected + * to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' + * or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt + * further processing. + * @return value or {@code null} for none + */ + public Callback getAfterAgentCallback() { + return afterAgentCallback; + } + + /** + * Optional. The callback to execute after the agent is called. Each callback function is expected + * to return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' + * or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt + * further processing. + * @param afterAgentCallback afterAgentCallback or {@code null} for none + */ + public GuardrailCodeCallback setAfterAgentCallback(Callback afterAgentCallback) { + this.afterAgentCallback = afterAgentCallback; + return this; + } + + /** + * Optional. The callback to execute after the model is called. If there are multiple calls to the + * model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @return value or {@code null} for none + */ + public Callback getAfterModelCallback() { + return afterModelCallback; + } + + /** + * Optional. The callback to execute after the model is called. If there are multiple calls to the + * model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @param afterModelCallback afterModelCallback or {@code null} for none + */ + public GuardrailCodeCallback setAfterModelCallback(Callback afterModelCallback) { + this.afterModelCallback = afterModelCallback; + return this; + } + + /** + * Optional. The callback to execute before the agent is called. Each callback function is + * expected to return a structure (e.g., a dict or object) containing at least: - 'decision': + * Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision + * may halt further processing. + * @return value or {@code null} for none + */ + public Callback getBeforeAgentCallback() { + return beforeAgentCallback; + } + + /** + * Optional. The callback to execute before the agent is called. Each callback function is + * expected to return a structure (e.g., a dict or object) containing at least: - 'decision': + * Either 'OK' or 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision + * may halt further processing. + * @param beforeAgentCallback beforeAgentCallback or {@code null} for none + */ + public GuardrailCodeCallback setBeforeAgentCallback(Callback beforeAgentCallback) { + this.beforeAgentCallback = beforeAgentCallback; + return this; + } + + /** + * Optional. The callback to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @return value or {@code null} for none + */ + public Callback getBeforeModelCallback() { + return beforeModelCallback; + } + + /** + * Optional. The callback to execute before the model is called. If there are multiple calls to + * the model, the callback will be executed multiple times. Each callback function is expected to + * return a structure (e.g., a dict or object) containing at least: - 'decision': Either 'OK' or + * 'TRIGGER'. - 'reason': A string explaining the decision. A 'TRIGGER' decision may halt further + * processing. + * @param beforeModelCallback beforeModelCallback or {@code null} for none + */ + public GuardrailCodeCallback setBeforeModelCallback(Callback beforeModelCallback) { + this.beforeModelCallback = beforeModelCallback; + return this; + } + + @Override + public GuardrailCodeCallback set(String fieldName, Object value) { + return (GuardrailCodeCallback) super.set(fieldName, value); + } + + @Override + public GuardrailCodeCallback clone() { + return (GuardrailCodeCallback) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailContentFilter.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailContentFilter.java new file mode 100644 index 00000000000..432bb91b9ce --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailContentFilter.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Guardrail that bans certain content from being used 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailContentFilter extends com.google.api.client.json.GenericJson { + + /** + * Optional. List of banned phrases. Applies to both user inputs and agent responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bannedContents; + + /** + * Optional. List of banned phrases. Applies only to agent responses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bannedContentsInAgentResponse; + + /** + * Optional. List of banned phrases. Applies only to user inputs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List bannedContentsInUserInput; + + /** + * Optional. If true, diacritics are ignored during matching. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disregardDiacritics; + + /** + * Required. Match type for the content filter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String matchType; + + /** + * Optional. List of banned phrases. Applies to both user inputs and agent responses. + * @return value or {@code null} for none + */ + public java.util.List getBannedContents() { + return bannedContents; + } + + /** + * Optional. List of banned phrases. Applies to both user inputs and agent responses. + * @param bannedContents bannedContents or {@code null} for none + */ + public GuardrailContentFilter setBannedContents(java.util.List bannedContents) { + this.bannedContents = bannedContents; + return this; + } + + /** + * Optional. List of banned phrases. Applies only to agent responses. + * @return value or {@code null} for none + */ + public java.util.List getBannedContentsInAgentResponse() { + return bannedContentsInAgentResponse; + } + + /** + * Optional. List of banned phrases. Applies only to agent responses. + * @param bannedContentsInAgentResponse bannedContentsInAgentResponse or {@code null} for none + */ + public GuardrailContentFilter setBannedContentsInAgentResponse(java.util.List bannedContentsInAgentResponse) { + this.bannedContentsInAgentResponse = bannedContentsInAgentResponse; + return this; + } + + /** + * Optional. List of banned phrases. Applies only to user inputs. + * @return value or {@code null} for none + */ + public java.util.List getBannedContentsInUserInput() { + return bannedContentsInUserInput; + } + + /** + * Optional. List of banned phrases. Applies only to user inputs. + * @param bannedContentsInUserInput bannedContentsInUserInput or {@code null} for none + */ + public GuardrailContentFilter setBannedContentsInUserInput(java.util.List bannedContentsInUserInput) { + this.bannedContentsInUserInput = bannedContentsInUserInput; + return this; + } + + /** + * Optional. If true, diacritics are ignored during matching. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisregardDiacritics() { + return disregardDiacritics; + } + + /** + * Optional. If true, diacritics are ignored during matching. + * @param disregardDiacritics disregardDiacritics or {@code null} for none + */ + public GuardrailContentFilter setDisregardDiacritics(java.lang.Boolean disregardDiacritics) { + this.disregardDiacritics = disregardDiacritics; + return this; + } + + /** + * Required. Match type for the content filter. + * @return value or {@code null} for none + */ + public java.lang.String getMatchType() { + return matchType; + } + + /** + * Required. Match type for the content filter. + * @param matchType matchType or {@code null} for none + */ + public GuardrailContentFilter setMatchType(java.lang.String matchType) { + this.matchType = matchType; + return this; + } + + @Override + public GuardrailContentFilter set(String fieldName, Object value) { + return (GuardrailContentFilter) super.set(fieldName, value); + } + + @Override + public GuardrailContentFilter clone() { + return (GuardrailContentFilter) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPolicy.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPolicy.java new file mode 100644 index 00000000000..ff02984e9f8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPolicy.java @@ -0,0 +1,209 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Guardrail that blocks the conversation if the LLM response is considered violating the policy + * based on the LLM classification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailLlmPolicy extends com.google.api.client.json.GenericJson { + + /** + * Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this + * setting applies the policy check to all utterances, including those that would normally be + * skipped. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean allowShortUtterance; + + /** + * Optional. If an error occurs during the policy check, fail open and do not trigger the + * guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failOpen; + + /** + * Optional. When checking this policy, consider the last 'n' messages in the conversation. When + * not set a default value of 10 will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer maxConversationMessages; + + /** + * Optional. Model settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ModelSettings modelSettings; + + /** + * Required. Defines when to apply the policy check during the conversation. If set to + * `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the + * policy to the agent response, additional latency will be introduced before the agent can + * respond. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyScope; + + /** + * Required. Policy prompt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this + * setting applies the policy check to all utterances, including those that would normally be + * skipped. + * @return value or {@code null} for none + */ + public java.lang.Boolean getAllowShortUtterance() { + return allowShortUtterance; + } + + /** + * Optional. By default, the LLM policy check is bypassed for short utterances. Enabling this + * setting applies the policy check to all utterances, including those that would normally be + * skipped. + * @param allowShortUtterance allowShortUtterance or {@code null} for none + */ + public GuardrailLlmPolicy setAllowShortUtterance(java.lang.Boolean allowShortUtterance) { + this.allowShortUtterance = allowShortUtterance; + return this; + } + + /** + * Optional. If an error occurs during the policy check, fail open and do not trigger the + * guardrail. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailOpen() { + return failOpen; + } + + /** + * Optional. If an error occurs during the policy check, fail open and do not trigger the + * guardrail. + * @param failOpen failOpen or {@code null} for none + */ + public GuardrailLlmPolicy setFailOpen(java.lang.Boolean failOpen) { + this.failOpen = failOpen; + return this; + } + + /** + * Optional. When checking this policy, consider the last 'n' messages in the conversation. When + * not set a default value of 10 will be used. + * @return value or {@code null} for none + */ + public java.lang.Integer getMaxConversationMessages() { + return maxConversationMessages; + } + + /** + * Optional. When checking this policy, consider the last 'n' messages in the conversation. When + * not set a default value of 10 will be used. + * @param maxConversationMessages maxConversationMessages or {@code null} for none + */ + public GuardrailLlmPolicy setMaxConversationMessages(java.lang.Integer maxConversationMessages) { + this.maxConversationMessages = maxConversationMessages; + return this; + } + + /** + * Optional. Model settings. + * @return value or {@code null} for none + */ + public ModelSettings getModelSettings() { + return modelSettings; + } + + /** + * Optional. Model settings. + * @param modelSettings modelSettings or {@code null} for none + */ + public GuardrailLlmPolicy setModelSettings(ModelSettings modelSettings) { + this.modelSettings = modelSettings; + return this; + } + + /** + * Required. Defines when to apply the policy check during the conversation. If set to + * `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the + * policy to the agent response, additional latency will be introduced before the agent can + * respond. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyScope() { + return policyScope; + } + + /** + * Required. Defines when to apply the policy check during the conversation. If set to + * `POLICY_SCOPE_UNSPECIFIED`, the policy will be applied to the user input. When applying the + * policy to the agent response, additional latency will be introduced before the agent can + * respond. + * @param policyScope policyScope or {@code null} for none + */ + public GuardrailLlmPolicy setPolicyScope(java.lang.String policyScope) { + this.policyScope = policyScope; + return this; + } + + /** + * Required. Policy prompt. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Required. Policy prompt. + * @param prompt prompt or {@code null} for none + */ + public GuardrailLlmPolicy setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public GuardrailLlmPolicy set(String fieldName, Object value) { + return (GuardrailLlmPolicy) super.set(fieldName, value); + } + + @Override + public GuardrailLlmPolicy clone() { + return (GuardrailLlmPolicy) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPromptSecurity.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPromptSecurity.java new file mode 100644 index 00000000000..dd2d9e1a243 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPromptSecurity.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Guardrail that blocks the conversation if the input is considered unsafe based on the LLM + * classification. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailLlmPromptSecurity extends com.google.api.client.json.GenericJson { + + /** + * Optional. Use a user-defined LlmPolicy to configure the security guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPolicy customPolicy; + + /** + * Optional. Use the system's predefined default security settings. To select this mode, include + * an empty 'default_settings' message in the request. The 'default_prompt_template' field within + * will be populated by the server in the response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GuardrailLlmPromptSecurityDefaultSecuritySettings defaultSettings; + + /** + * Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the + * guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom + * policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean failOpen; + + /** + * Optional. Use a user-defined LlmPolicy to configure the security guardrail. + * @return value or {@code null} for none + */ + public GuardrailLlmPolicy getCustomPolicy() { + return customPolicy; + } + + /** + * Optional. Use a user-defined LlmPolicy to configure the security guardrail. + * @param customPolicy customPolicy or {@code null} for none + */ + public GuardrailLlmPromptSecurity setCustomPolicy(GuardrailLlmPolicy customPolicy) { + this.customPolicy = customPolicy; + return this; + } + + /** + * Optional. Use the system's predefined default security settings. To select this mode, include + * an empty 'default_settings' message in the request. The 'default_prompt_template' field within + * will be populated by the server in the response. + * @return value or {@code null} for none + */ + public GuardrailLlmPromptSecurityDefaultSecuritySettings getDefaultSettings() { + return defaultSettings; + } + + /** + * Optional. Use the system's predefined default security settings. To select this mode, include + * an empty 'default_settings' message in the request. The 'default_prompt_template' field within + * will be populated by the server in the response. + * @param defaultSettings defaultSettings or {@code null} for none + */ + public GuardrailLlmPromptSecurity setDefaultSettings(GuardrailLlmPromptSecurityDefaultSecuritySettings defaultSettings) { + this.defaultSettings = defaultSettings; + return this; + } + + /** + * Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the + * guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom + * policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration. + * @return value or {@code null} for none + */ + public java.lang.Boolean getFailOpen() { + return failOpen; + } + + /** + * Optional. Determines the behavior when the guardrail encounters an LLM error. - If true: the + * guardrail is bypassed. - If false (default): the guardrail triggers/blocks. Note: If a custom + * policy is provided, this field is ignored in favor of the policy's 'fail_open' configuration. + * @param failOpen failOpen or {@code null} for none + */ + public GuardrailLlmPromptSecurity setFailOpen(java.lang.Boolean failOpen) { + this.failOpen = failOpen; + return this; + } + + @Override + public GuardrailLlmPromptSecurity set(String fieldName, Object value) { + return (GuardrailLlmPromptSecurity) super.set(fieldName, value); + } + + @Override + public GuardrailLlmPromptSecurity clone() { + return (GuardrailLlmPromptSecurity) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPromptSecurityDefaultSecuritySettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPromptSecurityDefaultSecuritySettings.java new file mode 100644 index 00000000000..dd5017e3260 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailLlmPromptSecurityDefaultSecuritySettings.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for default system security settings. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailLlmPromptSecurityDefaultSecuritySettings extends com.google.api.client.json.GenericJson { + + /** + * Output only. The default prompt template used by the system. This field is for display purposes + * to show the user what prompt the system uses by default. It is OUTPUT_ONLY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultPromptTemplate; + + /** + * Output only. The default prompt template used by the system. This field is for display purposes + * to show the user what prompt the system uses by default. It is OUTPUT_ONLY. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultPromptTemplate() { + return defaultPromptTemplate; + } + + /** + * Output only. The default prompt template used by the system. This field is for display purposes + * to show the user what prompt the system uses by default. It is OUTPUT_ONLY. + * @param defaultPromptTemplate defaultPromptTemplate or {@code null} for none + */ + public GuardrailLlmPromptSecurityDefaultSecuritySettings setDefaultPromptTemplate(java.lang.String defaultPromptTemplate) { + this.defaultPromptTemplate = defaultPromptTemplate; + return this; + } + + @Override + public GuardrailLlmPromptSecurityDefaultSecuritySettings set(String fieldName, Object value) { + return (GuardrailLlmPromptSecurityDefaultSecuritySettings) super.set(fieldName, value); + } + + @Override + public GuardrailLlmPromptSecurityDefaultSecuritySettings clone() { + return (GuardrailLlmPromptSecurityDefaultSecuritySettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailModelSafety.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailModelSafety.java new file mode 100644 index 00000000000..5a9eda65650 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailModelSafety.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Model safety settings overrides. When this is set, it will override the default settings and + * trigger the guardrail if the response is considered unsafe. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailModelSafety extends com.google.api.client.json.GenericJson { + + /** + * Required. List of safety settings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List safetySettings; + + /** + * Required. List of safety settings. + * @return value or {@code null} for none + */ + public java.util.List getSafetySettings() { + return safetySettings; + } + + /** + * Required. List of safety settings. + * @param safetySettings safetySettings or {@code null} for none + */ + public GuardrailModelSafety setSafetySettings(java.util.List safetySettings) { + this.safetySettings = safetySettings; + return this; + } + + @Override + public GuardrailModelSafety set(String fieldName, Object value) { + return (GuardrailModelSafety) super.set(fieldName, value); + } + + @Override + public GuardrailModelSafety clone() { + return (GuardrailModelSafety) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailModelSafetySafetySetting.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailModelSafetySafetySetting.java new file mode 100644 index 00000000000..9edb5c535c7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/GuardrailModelSafetySafetySetting.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.ces.v1beta.model; + +/** + * Safety setting. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class GuardrailModelSafetySafetySetting extends com.google.api.client.json.GenericJson { + + /** + * Required. The harm category. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String category; + + /** + * Required. The harm block threshold. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String threshold; + + /** + * Required. The harm category. + * @return value or {@code null} for none + */ + public java.lang.String getCategory() { + return category; + } + + /** + * Required. The harm category. + * @param category category or {@code null} for none + */ + public GuardrailModelSafetySafetySetting setCategory(java.lang.String category) { + this.category = category; + return this; + } + + /** + * Required. The harm block threshold. + * @return value or {@code null} for none + */ + public java.lang.String getThreshold() { + return threshold; + } + + /** + * Required. The harm block threshold. + * @param threshold threshold or {@code null} for none + */ + public GuardrailModelSafetySafetySetting setThreshold(java.lang.String threshold) { + this.threshold = threshold; + return this; + } + + @Override + public GuardrailModelSafetySafetySetting set(String fieldName, Object value) { + return (GuardrailModelSafetySafetySetting) super.set(fieldName, value); + } + + @Override + public GuardrailModelSafetySafetySetting clone() { + return (GuardrailModelSafetySafetySetting) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Image.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Image.java new file mode 100644 index 00000000000..0105e77cc70 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Image.java @@ -0,0 +1,122 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents an image input or output 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Image extends com.google.api.client.json.GenericJson { + + /** + * Required. Raw bytes of the image. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String data; + + /** + * Required. The IANA standard MIME type of the source data. Supported image types includes: * + * image/png * image/jpeg * image/webp + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String mimeType; + + /** + * Required. Raw bytes of the image. + * @see #decodeData() + * @return value or {@code null} for none + */ + public java.lang.String getData() { + return data; + } + + /** + * Required. Raw bytes of the image. + * @see #getData() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeData() { + return com.google.api.client.util.Base64.decodeBase64(data); + } + + /** + * Required. Raw bytes of the image. + * @see #encodeData() + * @param data data or {@code null} for none + */ + public Image setData(java.lang.String data) { + this.data = data; + return this; + } + + /** + * Required. Raw bytes of the image. + * @see #setData() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public Image encodeData(byte[] data) { + this.data = com.google.api.client.util.Base64.encodeBase64URLSafeString(data); + return this; + } + + /** + * Required. The IANA standard MIME type of the source data. Supported image types includes: * + * image/png * image/jpeg * image/webp + * @return value or {@code null} for none + */ + public java.lang.String getMimeType() { + return mimeType; + } + + /** + * Required. The IANA standard MIME type of the source data. Supported image types includes: * + * image/png * image/jpeg * image/webp + * @param mimeType mimeType or {@code null} for none + */ + public Image setMimeType(java.lang.String mimeType) { + this.mimeType = mimeType; + return this; + } + + @Override + public Image set(String fieldName, Object value) { + return (Image) super.set(fieldName, value); + } + + @Override + public Image clone() { + return (Image) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppRequest.java new file mode 100644 index 00000000000..88206d72895 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppRequest.java @@ -0,0 +1,215 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for AgentService.ImportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportAppRequest extends com.google.api.client.json.GenericJson { + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appContent; + + /** + * Optional. The ID to use for the imported app. * If not specified, a unique ID will be + * automatically assigned for the app. * Otherwise, the imported app will use this ID as the final + * component of its resource name. If an app with the same ID already exists at the specified + * location in the project, the content of the existing app will be replaced. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appId; + + /** + * Optional. The display name of the app to import. * If the app is created on import, and the + * display name is specified, the imported app will use this display name. If a conflict is + * detected with an existing app, a timestamp will be appended to the display name to make it + * unique. * If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * app. The format of this URI must be `gs:`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. Options governing the import process for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImportAppRequestImportOptions importOptions; + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #decodeAppContent() + * @return value or {@code null} for none + */ + public java.lang.String getAppContent() { + return appContent; + } + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #getAppContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAppContent() { + return com.google.api.client.util.Base64.decodeBase64(appContent); + } + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #encodeAppContent() + * @param appContent appContent or {@code null} for none + */ + public ImportAppRequest setAppContent(java.lang.String appContent) { + this.appContent = appContent; + return this; + } + + /** + * Raw bytes representing the compressed zip file with the app folder structure. + * @see #setAppContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ImportAppRequest encodeAppContent(byte[] appContent) { + this.appContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(appContent); + return this; + } + + /** + * Optional. The ID to use for the imported app. * If not specified, a unique ID will be + * automatically assigned for the app. * Otherwise, the imported app will use this ID as the final + * component of its resource name. If an app with the same ID already exists at the specified + * location in the project, the content of the existing app will be replaced. + * @return value or {@code null} for none + */ + public java.lang.String getAppId() { + return appId; + } + + /** + * Optional. The ID to use for the imported app. * If not specified, a unique ID will be + * automatically assigned for the app. * Otherwise, the imported app will use this ID as the final + * component of its resource name. If an app with the same ID already exists at the specified + * location in the project, the content of the existing app will be replaced. + * @param appId appId or {@code null} for none + */ + public ImportAppRequest setAppId(java.lang.String appId) { + this.appId = appId; + return this; + } + + /** + * Optional. The display name of the app to import. * If the app is created on import, and the + * display name is specified, the imported app will use this display name. If a conflict is + * detected with an existing app, a timestamp will be appended to the display name to make it + * unique. * If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the app to import. * If the app is created on import, and the + * display name is specified, the imported app will use this display name. If a conflict is + * detected with an existing app, a timestamp will be appended to the display name to make it + * unique. * If the app is a reimport, this field should not be set. Providing a display name + * during reimport will result in an INVALID_ARGUMENT error. + * @param displayName displayName or {@code null} for none + */ + public ImportAppRequest setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * app. The format of this URI must be `gs:`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * app. The format of this URI must be `gs:`. + * @param gcsUri gcsUri or {@code null} for none + */ + public ImportAppRequest setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Optional. Options governing the import process for the app. + * @return value or {@code null} for none + */ + public ImportAppRequestImportOptions getImportOptions() { + return importOptions; + } + + /** + * Optional. Options governing the import process for the app. + * @param importOptions importOptions or {@code null} for none + */ + public ImportAppRequest setImportOptions(ImportAppRequestImportOptions importOptions) { + this.importOptions = importOptions; + return this; + } + + @Override + public ImportAppRequest set(String fieldName, Object value) { + return (ImportAppRequest) super.set(fieldName, value); + } + + @Override + public ImportAppRequest clone() { + return (ImportAppRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppRequestImportOptions.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppRequestImportOptions.java new file mode 100644 index 00000000000..f533f2a76de --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppRequestImportOptions.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration options for the app import process. These options control how the import behaves, + * particularly when conflicts arise with existing app data. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportAppRequestImportOptions extends com.google.api.client.json.GenericJson { + + /** + * Optional. The strategy to use when resolving conflicts during import. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conflictResolutionStrategy; + + /** + * Optional. The strategy to use when resolving conflicts during import. + * @return value or {@code null} for none + */ + public java.lang.String getConflictResolutionStrategy() { + return conflictResolutionStrategy; + } + + /** + * Optional. The strategy to use when resolving conflicts during import. + * @param conflictResolutionStrategy conflictResolutionStrategy or {@code null} for none + */ + public ImportAppRequestImportOptions setConflictResolutionStrategy(java.lang.String conflictResolutionStrategy) { + this.conflictResolutionStrategy = conflictResolutionStrategy; + return this; + } + + @Override + public ImportAppRequestImportOptions set(String fieldName, Object value) { + return (ImportAppRequestImportOptions) super.set(fieldName, value); + } + + @Override + public ImportAppRequestImportOptions clone() { + return (ImportAppRequestImportOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppResponse.java new file mode 100644 index 00000000000..7ca0862e414 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportAppResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ImportApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportAppResponse extends com.google.api.client.json.GenericJson { + + /** + * The resource name of the app that was imported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Warning messages generated during the import process. If errors occur for specific resources, + * they will not be included in the imported app and the error will be mentioned here. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List warnings; + + /** + * The resource name of the app that was imported. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The resource name of the app that was imported. + * @param name name or {@code null} for none + */ + public ImportAppResponse setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Warning messages generated during the import process. If errors occur for specific resources, + * they will not be included in the imported app and the error will be mentioned here. + * @return value or {@code null} for none + */ + public java.util.List getWarnings() { + return warnings; + } + + /** + * Warning messages generated during the import process. If errors occur for specific resources, + * they will not be included in the imported app and the error will be mentioned here. + * @param warnings warnings or {@code null} for none + */ + public ImportAppResponse setWarnings(java.util.List warnings) { + this.warnings = warnings; + return this; + } + + @Override + public ImportAppResponse set(String fieldName, Object value) { + return (ImportAppResponse) super.set(fieldName, value); + } + + @Override + public ImportAppResponse clone() { + return (ImportAppResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsOperationMetadata.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsOperationMetadata.java new file mode 100644 index 00000000000..97bc822a2b6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsOperationMetadata.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents the metadata of the long-running operation for EvaluationService.ImportEvaluations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportEvaluationsOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public ImportEvaluationsOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public ImportEvaluationsOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public ImportEvaluationsOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public ImportEvaluationsOperationMetadata set(String fieldName, Object value) { + return (ImportEvaluationsOperationMetadata) super.set(fieldName, value); + } + + @Override + public ImportEvaluationsOperationMetadata clone() { + return (ImportEvaluationsOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequest.java new file mode 100644 index 00000000000..81fae2ae4bb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequest.java @@ -0,0 +1,170 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for EvaluationService.ImportEvaluations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportEvaluationsRequest extends com.google.api.client.json.GenericJson { + + /** + * The conversations to import the evaluations from. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImportEvaluationsRequestConversationList conversationList; + + /** + * Raw bytes representing the csv file with the evaluations structure. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String csvContent; + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * evaluations. The format of this URI must be `gs:`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String gcsUri; + + /** + * Optional. Options governing the import process for the evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ImportEvaluationsRequestImportOptions importOptions; + + /** + * The conversations to import the evaluations from. + * @return value or {@code null} for none + */ + public ImportEvaluationsRequestConversationList getConversationList() { + return conversationList; + } + + /** + * The conversations to import the evaluations from. + * @param conversationList conversationList or {@code null} for none + */ + public ImportEvaluationsRequest setConversationList(ImportEvaluationsRequestConversationList conversationList) { + this.conversationList = conversationList; + return this; + } + + /** + * Raw bytes representing the csv file with the evaluations structure. + * @see #decodeCsvContent() + * @return value or {@code null} for none + */ + public java.lang.String getCsvContent() { + return csvContent; + } + + /** + * Raw bytes representing the csv file with the evaluations structure. + * @see #getCsvContent() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeCsvContent() { + return com.google.api.client.util.Base64.decodeBase64(csvContent); + } + + /** + * Raw bytes representing the csv file with the evaluations structure. + * @see #encodeCsvContent() + * @param csvContent csvContent or {@code null} for none + */ + public ImportEvaluationsRequest setCsvContent(java.lang.String csvContent) { + this.csvContent = csvContent; + return this; + } + + /** + * Raw bytes representing the csv file with the evaluations structure. + * @see #setCsvContent() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public ImportEvaluationsRequest encodeCsvContent(byte[] csvContent) { + this.csvContent = com.google.api.client.util.Base64.encodeBase64URLSafeString(csvContent); + return this; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * evaluations. The format of this URI must be `gs:`. + * @return value or {@code null} for none + */ + public java.lang.String getGcsUri() { + return gcsUri; + } + + /** + * The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI from which to import + * evaluations. The format of this URI must be `gs:`. + * @param gcsUri gcsUri or {@code null} for none + */ + public ImportEvaluationsRequest setGcsUri(java.lang.String gcsUri) { + this.gcsUri = gcsUri; + return this; + } + + /** + * Optional. Options governing the import process for the evaluations. + * @return value or {@code null} for none + */ + public ImportEvaluationsRequestImportOptions getImportOptions() { + return importOptions; + } + + /** + * Optional. Options governing the import process for the evaluations. + * @param importOptions importOptions or {@code null} for none + */ + public ImportEvaluationsRequest setImportOptions(ImportEvaluationsRequestImportOptions importOptions) { + this.importOptions = importOptions; + return this; + } + + @Override + public ImportEvaluationsRequest set(String fieldName, Object value) { + return (ImportEvaluationsRequest) super.set(fieldName, value); + } + + @Override + public ImportEvaluationsRequest clone() { + return (ImportEvaluationsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequestConversationList.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequestConversationList.java new file mode 100644 index 00000000000..1783a0bfed1 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequestConversationList.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A list of conversation resource names. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportEvaluationsRequestConversationList extends com.google.api.client.json.GenericJson { + + /** + * Optional. Conversation resource names. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conversations; + + /** + * Optional. Conversation resource names. + * @return value or {@code null} for none + */ + public java.util.List getConversations() { + return conversations; + } + + /** + * Optional. Conversation resource names. + * @param conversations conversations or {@code null} for none + */ + public ImportEvaluationsRequestConversationList setConversations(java.util.List conversations) { + this.conversations = conversations; + return this; + } + + @Override + public ImportEvaluationsRequestConversationList set(String fieldName, Object value) { + return (ImportEvaluationsRequestConversationList) super.set(fieldName, value); + } + + @Override + public ImportEvaluationsRequestConversationList clone() { + return (ImportEvaluationsRequestConversationList) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequestImportOptions.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequestImportOptions.java new file mode 100644 index 00000000000..6d945d11b87 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsRequestImportOptions.java @@ -0,0 +1,68 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration options for the evaluation import process. These options control how the import + * behaves, particularly when conflicts arise with existing evaluations data. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportEvaluationsRequestImportOptions extends com.google.api.client.json.GenericJson { + + /** + * Optional. The strategy to use when resolving conflicts during import. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String conflictResolutionStrategy; + + /** + * Optional. The strategy to use when resolving conflicts during import. + * @return value or {@code null} for none + */ + public java.lang.String getConflictResolutionStrategy() { + return conflictResolutionStrategy; + } + + /** + * Optional. The strategy to use when resolving conflicts during import. + * @param conflictResolutionStrategy conflictResolutionStrategy or {@code null} for none + */ + public ImportEvaluationsRequestImportOptions setConflictResolutionStrategy(java.lang.String conflictResolutionStrategy) { + this.conflictResolutionStrategy = conflictResolutionStrategy; + return this; + } + + @Override + public ImportEvaluationsRequestImportOptions set(String fieldName, Object value) { + return (ImportEvaluationsRequestImportOptions) super.set(fieldName, value); + } + + @Override + public ImportEvaluationsRequestImportOptions clone() { + return (ImportEvaluationsRequestImportOptions) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsResponse.java new file mode 100644 index 00000000000..35a7f69f571 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ImportEvaluationsResponse.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ImportEvaluations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ImportEvaluationsResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. A list of error messages associated with evaluations that failed to be imported. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List errorMessages; + + /** + * The list of evaluations that were imported into the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + static { + // hack to force ProGuard to consider Evaluation 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(Evaluation.class); + } + + /** + * The number of evaluations that were not imported due to errors. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer importFailureCount; + + /** + * Optional. A list of error messages associated with evaluations that failed to be imported. + * @return value or {@code null} for none + */ + public java.util.List getErrorMessages() { + return errorMessages; + } + + /** + * Optional. A list of error messages associated with evaluations that failed to be imported. + * @param errorMessages errorMessages or {@code null} for none + */ + public ImportEvaluationsResponse setErrorMessages(java.util.List errorMessages) { + this.errorMessages = errorMessages; + return this; + } + + /** + * The list of evaluations that were imported into the app. + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * The list of evaluations that were imported into the app. + * @param evaluations evaluations or {@code null} for none + */ + public ImportEvaluationsResponse setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + /** + * The number of evaluations that were not imported due to errors. + * @return value or {@code null} for none + */ + public java.lang.Integer getImportFailureCount() { + return importFailureCount; + } + + /** + * The number of evaluations that were not imported due to errors. + * @param importFailureCount importFailureCount or {@code null} for none + */ + public ImportEvaluationsResponse setImportFailureCount(java.lang.Integer importFailureCount) { + this.importFailureCount = importFailureCount; + return this; + } + + @Override + public ImportEvaluationsResponse set(String fieldName, Object value) { + return (ImportEvaluationsResponse) super.set(fieldName, value); + } + + @Override + public ImportEvaluationsResponse clone() { + return (ImportEvaluationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/InputAudioConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/InputAudioConfig.java new file mode 100644 index 00000000000..a706382982e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/InputAudioConfig.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * InputAudioConfig configures how the CES agent should interpret the incoming audio data. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class InputAudioConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The encoding of the input audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audioEncoding; + + /** + * Optional. Whether to enable noise suppression on the input audio. Available values are "low", + * "moderate", "high", "very_high". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String noiseSuppressionLevel; + + /** + * Required. The sample rate (in Hertz) of the input audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRateHertz; + + /** + * Required. The encoding of the input audio data. + * @return value or {@code null} for none + */ + public java.lang.String getAudioEncoding() { + return audioEncoding; + } + + /** + * Required. The encoding of the input audio data. + * @param audioEncoding audioEncoding or {@code null} for none + */ + public InputAudioConfig setAudioEncoding(java.lang.String audioEncoding) { + this.audioEncoding = audioEncoding; + return this; + } + + /** + * Optional. Whether to enable noise suppression on the input audio. Available values are "low", + * "moderate", "high", "very_high". + * @return value or {@code null} for none + */ + public java.lang.String getNoiseSuppressionLevel() { + return noiseSuppressionLevel; + } + + /** + * Optional. Whether to enable noise suppression on the input audio. Available values are "low", + * "moderate", "high", "very_high". + * @param noiseSuppressionLevel noiseSuppressionLevel or {@code null} for none + */ + public InputAudioConfig setNoiseSuppressionLevel(java.lang.String noiseSuppressionLevel) { + this.noiseSuppressionLevel = noiseSuppressionLevel; + return this; + } + + /** + * Required. The sample rate (in Hertz) of the input audio data. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRateHertz() { + return sampleRateHertz; + } + + /** + * Required. The sample rate (in Hertz) of the input audio data. + * @param sampleRateHertz sampleRateHertz or {@code null} for none + */ + public InputAudioConfig setSampleRateHertz(java.lang.Integer sampleRateHertz) { + this.sampleRateHertz = sampleRateHertz; + return this; + } + + @Override + public InputAudioConfig set(String fieldName, Object value) { + return (InputAudioConfig) super.set(fieldName, value); + } + + @Override + public InputAudioConfig clone() { + return (InputAudioConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LanguageSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LanguageSettings.java new file mode 100644 index 00000000000..f35862247cd --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LanguageSettings.java @@ -0,0 +1,157 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Language settings of the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LanguageSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The default language code of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String defaultLanguageCode; + + /** + * Optional. Enables multilingual support. If true, agents in the app will use pre-built + * instructions to improve handling of multilingual input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableMultilingualSupport; + + /** + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String fallbackAction; + + /** + * Optional. List of languages codes supported by the app, in addition to the + * `default_language_code`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List supportedLanguageCodes; + + /** + * Optional. The default language code of the app. + * @return value or {@code null} for none + */ + public java.lang.String getDefaultLanguageCode() { + return defaultLanguageCode; + } + + /** + * Optional. The default language code of the app. + * @param defaultLanguageCode defaultLanguageCode or {@code null} for none + */ + public LanguageSettings setDefaultLanguageCode(java.lang.String defaultLanguageCode) { + this.defaultLanguageCode = defaultLanguageCode; + return this; + } + + /** + * Optional. Enables multilingual support. If true, agents in the app will use pre-built + * instructions to improve handling of multilingual input. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableMultilingualSupport() { + return enableMultilingualSupport; + } + + /** + * Optional. Enables multilingual support. If true, agents in the app will use pre-built + * instructions to improve handling of multilingual input. + * @param enableMultilingualSupport enableMultilingualSupport or {@code null} for none + */ + public LanguageSettings setEnableMultilingualSupport(java.lang.Boolean enableMultilingualSupport) { + this.enableMultilingualSupport = enableMultilingualSupport; + return this; + } + + /** + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. + * @return value or {@code null} for none + */ + public java.lang.String getFallbackAction() { + return fallbackAction; + } + + /** + * Optional. The action to perform when an agent receives input in an unsupported language. This + * can be a predefined action or a custom tool call. Valid values are: - A tool's full resource + * name, which triggers a specific tool execution. - A predefined system action, such as + * "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to + * terminate the conversation. + * @param fallbackAction fallbackAction or {@code null} for none + */ + public LanguageSettings setFallbackAction(java.lang.String fallbackAction) { + this.fallbackAction = fallbackAction; + return this; + } + + /** + * Optional. List of languages codes supported by the app, in addition to the + * `default_language_code`. + * @return value or {@code null} for none + */ + public java.util.List getSupportedLanguageCodes() { + return supportedLanguageCodes; + } + + /** + * Optional. List of languages codes supported by the app, in addition to the + * `default_language_code`. + * @param supportedLanguageCodes supportedLanguageCodes or {@code null} for none + */ + public LanguageSettings setSupportedLanguageCodes(java.util.List supportedLanguageCodes) { + this.supportedLanguageCodes = supportedLanguageCodes; + return this; + } + + @Override + public LanguageSettings set(String fieldName, Object value) { + return (LanguageSettings) super.set(fieldName, value); + } + + @Override + public LanguageSettings clone() { + return (LanguageSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReport.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReport.java new file mode 100644 index 00000000000..d52404f5cd5 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReport.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Latency report for the evaluation run. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatencyReport extends com.google.api.client.json.GenericJson { + + /** + * Output only. Unordered list. Latency metrics for each callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List callbackLatencies; + + /** + * Output only. Unordered list. Latency metrics for each guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrailLatencies; + + /** + * Output only. Unordered list. Latency metrics for each LLM call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List llmCallLatencies; + + /** + * Output only. The total number of sessions considered in the latency report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sessionCount; + + /** + * Output only. Unordered list. Latency metrics for each tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolLatencies; + + /** + * Output only. Unordered list. Latency metrics for each callback. + * @return value or {@code null} for none + */ + public java.util.List getCallbackLatencies() { + return callbackLatencies; + } + + /** + * Output only. Unordered list. Latency metrics for each callback. + * @param callbackLatencies callbackLatencies or {@code null} for none + */ + public LatencyReport setCallbackLatencies(java.util.List callbackLatencies) { + this.callbackLatencies = callbackLatencies; + return this; + } + + /** + * Output only. Unordered list. Latency metrics for each guardrail. + * @return value or {@code null} for none + */ + public java.util.List getGuardrailLatencies() { + return guardrailLatencies; + } + + /** + * Output only. Unordered list. Latency metrics for each guardrail. + * @param guardrailLatencies guardrailLatencies or {@code null} for none + */ + public LatencyReport setGuardrailLatencies(java.util.List guardrailLatencies) { + this.guardrailLatencies = guardrailLatencies; + return this; + } + + /** + * Output only. Unordered list. Latency metrics for each LLM call. + * @return value or {@code null} for none + */ + public java.util.List getLlmCallLatencies() { + return llmCallLatencies; + } + + /** + * Output only. Unordered list. Latency metrics for each LLM call. + * @param llmCallLatencies llmCallLatencies or {@code null} for none + */ + public LatencyReport setLlmCallLatencies(java.util.List llmCallLatencies) { + this.llmCallLatencies = llmCallLatencies; + return this; + } + + /** + * Output only. The total number of sessions considered in the latency report. + * @return value or {@code null} for none + */ + public java.lang.Integer getSessionCount() { + return sessionCount; + } + + /** + * Output only. The total number of sessions considered in the latency report. + * @param sessionCount sessionCount or {@code null} for none + */ + public LatencyReport setSessionCount(java.lang.Integer sessionCount) { + this.sessionCount = sessionCount; + return this; + } + + /** + * Output only. Unordered list. Latency metrics for each tool. + * @return value or {@code null} for none + */ + public java.util.List getToolLatencies() { + return toolLatencies; + } + + /** + * Output only. Unordered list. Latency metrics for each tool. + * @param toolLatencies toolLatencies or {@code null} for none + */ + public LatencyReport setToolLatencies(java.util.List toolLatencies) { + this.toolLatencies = toolLatencies; + return this; + } + + @Override + public LatencyReport set(String fieldName, Object value) { + return (LatencyReport) super.set(fieldName, value); + } + + @Override + public LatencyReport clone() { + return (LatencyReport) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportCallbackLatency.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportCallbackLatency.java new file mode 100644 index 00000000000..d231017a848 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportCallbackLatency.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.ces.v1beta.model; + +/** + * Latency metrics for a single callback. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatencyReportCallbackLatency extends com.google.api.client.json.GenericJson { + + /** + * Output only. The latency metrics for the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LatencyReportLatencyMetrics latencyMetrics; + + /** + * Output only. The stage of the callback. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String stage; + + /** + * Output only. The latency metrics for the callback. + * @return value or {@code null} for none + */ + public LatencyReportLatencyMetrics getLatencyMetrics() { + return latencyMetrics; + } + + /** + * Output only. The latency metrics for the callback. + * @param latencyMetrics latencyMetrics or {@code null} for none + */ + public LatencyReportCallbackLatency setLatencyMetrics(LatencyReportLatencyMetrics latencyMetrics) { + this.latencyMetrics = latencyMetrics; + return this; + } + + /** + * Output only. The stage of the callback. + * @return value or {@code null} for none + */ + public java.lang.String getStage() { + return stage; + } + + /** + * Output only. The stage of the callback. + * @param stage stage or {@code null} for none + */ + public LatencyReportCallbackLatency setStage(java.lang.String stage) { + this.stage = stage; + return this; + } + + @Override + public LatencyReportCallbackLatency set(String fieldName, Object value) { + return (LatencyReportCallbackLatency) super.set(fieldName, value); + } + + @Override + public LatencyReportCallbackLatency clone() { + return (LatencyReportCallbackLatency) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportGuardrailLatency.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportGuardrailLatency.java new file mode 100644 index 00000000000..8ba08e732d8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportGuardrailLatency.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Latency metrics for a single guardrail. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatencyReportGuardrailLatency extends com.google.api.client.json.GenericJson { + + /** + * Output only. The name of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String guardrail; + + /** + * Output only. The display name of the guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String guardrailDisplayName; + + /** + * Output only. The latency metrics for the guardrail. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LatencyReportLatencyMetrics latencyMetrics; + + /** + * Output only. The name of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`. + * @return value or {@code null} for none + */ + public java.lang.String getGuardrail() { + return guardrail; + } + + /** + * Output only. The name of the guardrail. Format: + * `projects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}`. + * @param guardrail guardrail or {@code null} for none + */ + public LatencyReportGuardrailLatency setGuardrail(java.lang.String guardrail) { + this.guardrail = guardrail; + return this; + } + + /** + * Output only. The display name of the guardrail. + * @return value or {@code null} for none + */ + public java.lang.String getGuardrailDisplayName() { + return guardrailDisplayName; + } + + /** + * Output only. The display name of the guardrail. + * @param guardrailDisplayName guardrailDisplayName or {@code null} for none + */ + public LatencyReportGuardrailLatency setGuardrailDisplayName(java.lang.String guardrailDisplayName) { + this.guardrailDisplayName = guardrailDisplayName; + return this; + } + + /** + * Output only. The latency metrics for the guardrail. + * @return value or {@code null} for none + */ + public LatencyReportLatencyMetrics getLatencyMetrics() { + return latencyMetrics; + } + + /** + * Output only. The latency metrics for the guardrail. + * @param latencyMetrics latencyMetrics or {@code null} for none + */ + public LatencyReportGuardrailLatency setLatencyMetrics(LatencyReportLatencyMetrics latencyMetrics) { + this.latencyMetrics = latencyMetrics; + return this; + } + + @Override + public LatencyReportGuardrailLatency set(String fieldName, Object value) { + return (LatencyReportGuardrailLatency) super.set(fieldName, value); + } + + @Override + public LatencyReportGuardrailLatency clone() { + return (LatencyReportGuardrailLatency) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportLatencyMetrics.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportLatencyMetrics.java new file mode 100644 index 00000000000..79d7af76b3a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportLatencyMetrics.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Latency metrics for a component. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatencyReportLatencyMetrics extends com.google.api.client.json.GenericJson { + + /** + * Output only. The number of times the resource was called. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer callCount; + + /** + * Output only. The 50th percentile latency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String p50Latency; + + /** + * Output only. The 90th percentile latency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String p90Latency; + + /** + * Output only. The 99th percentile latency. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String p99Latency; + + /** + * Output only. The number of times the resource was called. + * @return value or {@code null} for none + */ + public java.lang.Integer getCallCount() { + return callCount; + } + + /** + * Output only. The number of times the resource was called. + * @param callCount callCount or {@code null} for none + */ + public LatencyReportLatencyMetrics setCallCount(java.lang.Integer callCount) { + this.callCount = callCount; + return this; + } + + /** + * Output only. The 50th percentile latency. + * @return value or {@code null} for none + */ + public String getP50Latency() { + return p50Latency; + } + + /** + * Output only. The 50th percentile latency. + * @param p50Latency p50Latency or {@code null} for none + */ + public LatencyReportLatencyMetrics setP50Latency(String p50Latency) { + this.p50Latency = p50Latency; + return this; + } + + /** + * Output only. The 90th percentile latency. + * @return value or {@code null} for none + */ + public String getP90Latency() { + return p90Latency; + } + + /** + * Output only. The 90th percentile latency. + * @param p90Latency p90Latency or {@code null} for none + */ + public LatencyReportLatencyMetrics setP90Latency(String p90Latency) { + this.p90Latency = p90Latency; + return this; + } + + /** + * Output only. The 99th percentile latency. + * @return value or {@code null} for none + */ + public String getP99Latency() { + return p99Latency; + } + + /** + * Output only. The 99th percentile latency. + * @param p99Latency p99Latency or {@code null} for none + */ + public LatencyReportLatencyMetrics setP99Latency(String p99Latency) { + this.p99Latency = p99Latency; + return this; + } + + @Override + public LatencyReportLatencyMetrics set(String fieldName, Object value) { + return (LatencyReportLatencyMetrics) super.set(fieldName, value); + } + + @Override + public LatencyReportLatencyMetrics clone() { + return (LatencyReportLatencyMetrics) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportLlmCallLatency.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportLlmCallLatency.java new file mode 100644 index 00000000000..308e6fcf64f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportLlmCallLatency.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.ces.v1beta.model; + +/** + * Latency metrics for a single LLM call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatencyReportLlmCallLatency extends com.google.api.client.json.GenericJson { + + /** + * Output only. The latency metrics for the LLM call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LatencyReportLatencyMetrics latencyMetrics; + + /** + * Output only. The name of the model. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Output only. The latency metrics for the LLM call. + * @return value or {@code null} for none + */ + public LatencyReportLatencyMetrics getLatencyMetrics() { + return latencyMetrics; + } + + /** + * Output only. The latency metrics for the LLM call. + * @param latencyMetrics latencyMetrics or {@code null} for none + */ + public LatencyReportLlmCallLatency setLatencyMetrics(LatencyReportLatencyMetrics latencyMetrics) { + this.latencyMetrics = latencyMetrics; + return this; + } + + /** + * Output only. The name of the model. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * Output only. The name of the model. + * @param model model or {@code null} for none + */ + public LatencyReportLlmCallLatency setModel(java.lang.String model) { + this.model = model; + return this; + } + + @Override + public LatencyReportLlmCallLatency set(String fieldName, Object value) { + return (LatencyReportLlmCallLatency) super.set(fieldName, value); + } + + @Override + public LatencyReportLlmCallLatency clone() { + return (LatencyReportLlmCallLatency) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportToolLatency.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportToolLatency.java new file mode 100644 index 00000000000..255cc593e37 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LatencyReportToolLatency.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Latency metrics for a single tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LatencyReportToolLatency extends com.google.api.client.json.GenericJson { + + /** + * Output only. The latency metrics for the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private LatencyReportLatencyMetrics latencyMetrics; + + /** + * Output only. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Output only. The display name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolDisplayName; + + /** + * Output only. The toolset tool identifier. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Output only. The latency metrics for the tool. + * @return value or {@code null} for none + */ + public LatencyReportLatencyMetrics getLatencyMetrics() { + return latencyMetrics; + } + + /** + * Output only. The latency metrics for the tool. + * @param latencyMetrics latencyMetrics or {@code null} for none + */ + public LatencyReportToolLatency setLatencyMetrics(LatencyReportLatencyMetrics latencyMetrics) { + this.latencyMetrics = latencyMetrics; + return this; + } + + /** + * Output only. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Output only. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`. + * @param tool tool or {@code null} for none + */ + public LatencyReportToolLatency setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Output only. The display name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getToolDisplayName() { + return toolDisplayName; + } + + /** + * Output only. The display name of the tool. + * @param toolDisplayName toolDisplayName or {@code null} for none + */ + public LatencyReportToolLatency setToolDisplayName(java.lang.String toolDisplayName) { + this.toolDisplayName = toolDisplayName; + return this; + } + + /** + * Output only. The toolset tool identifier. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Output only. The toolset tool identifier. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public LatencyReportToolLatency setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public LatencyReportToolLatency set(String fieldName, Object value) { + return (LatencyReportToolLatency) super.set(fieldName, value); + } + + @Override + public LatencyReportToolLatency clone() { + return (LatencyReportToolLatency) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAgentsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAgentsResponse.java new file mode 100644 index 00000000000..5e32733aff9 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAgentsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListAgents. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAgentsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of agents. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List agents; + + static { + // hack to force ProGuard to consider Agent 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(Agent.class); + } + + /** + * A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of agents. + * @return value or {@code null} for none + */ + public java.util.List getAgents() { + return agents; + } + + /** + * The list of agents. + * @param agents agents or {@code null} for none + */ + public ListAgentsResponse setAgents(java.util.List agents) { + this.agents = agents; + return this; + } + + /** + * A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListAgentsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAgentsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListAgentsResponse set(String fieldName, Object value) { + return (ListAgentsResponse) super.set(fieldName, value); + } + + @Override + public ListAgentsResponse clone() { + return (ListAgentsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAppVersionsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAppVersionsResponse.java new file mode 100644 index 00000000000..ed65c3826b7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAppVersionsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListAppVersions. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAppVersionsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of app versions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List appVersions; + + static { + // hack to force ProGuard to consider AppVersion 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(AppVersion.class); + } + + /** + * A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of app versions. + * @return value or {@code null} for none + */ + public java.util.List getAppVersions() { + return appVersions; + } + + /** + * The list of app versions. + * @param appVersions appVersions or {@code null} for none + */ + public ListAppVersionsResponse setAppVersions(java.util.List appVersions) { + this.appVersions = appVersions; + return this; + } + + /** + * A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListAppVersionsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAppVersionsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListAppVersionsResponse set(String fieldName, Object value) { + return (ListAppVersionsResponse) super.set(fieldName, value); + } + + @Override + public ListAppVersionsResponse clone() { + return (ListAppVersionsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAppsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAppsResponse.java new file mode 100644 index 00000000000..4632b1a1063 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListAppsResponse.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListApps. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListAppsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of apps. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List apps; + + static { + // hack to force ProGuard to consider App 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(App.class); + } + + /** + * A token that can be sent as ListAppsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Unordered list. Locations that could not be reached. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The list of apps. + * @return value or {@code null} for none + */ + public java.util.List getApps() { + return apps; + } + + /** + * The list of apps. + * @param apps apps or {@code null} for none + */ + public ListAppsResponse setApps(java.util.List apps) { + this.apps = apps; + return this; + } + + /** + * A token that can be sent as ListAppsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListAppsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListAppsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Unordered list. Locations that could not be reached. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Locations that could not be reached. + * @param unreachable unreachable or {@code null} for none + */ + public ListAppsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListAppsResponse set(String fieldName, Object value) { + return (ListAppsResponse) super.set(fieldName, value); + } + + @Override + public ListAppsResponse clone() { + return (ListAppsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListChangelogsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListChangelogsResponse.java new file mode 100644 index 00000000000..f7fe04e69f1 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListChangelogsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListChangelogs. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListChangelogsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of changelogs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List changelogs; + + static { + // hack to force ProGuard to consider Changelog 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(Changelog.class); + } + + /** + * A token that can be sent as ListChangelogsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of changelogs. + * @return value or {@code null} for none + */ + public java.util.List getChangelogs() { + return changelogs; + } + + /** + * The list of changelogs. + * @param changelogs changelogs or {@code null} for none + */ + public ListChangelogsResponse setChangelogs(java.util.List changelogs) { + this.changelogs = changelogs; + return this; + } + + /** + * A token that can be sent as ListChangelogsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListChangelogsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListChangelogsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListChangelogsResponse set(String fieldName, Object value) { + return (ListChangelogsResponse) super.set(fieldName, value); + } + + @Override + public ListChangelogsResponse clone() { + return (ListChangelogsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListConversationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListConversationsResponse.java new file mode 100644 index 00000000000..ddccc6d6089 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListConversationsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListConversations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListConversationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of conversations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List conversations; + + static { + // hack to force ProGuard to consider Conversation 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(Conversation.class); + } + + /** + * A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of conversations. + * @return value or {@code null} for none + */ + public java.util.List getConversations() { + return conversations; + } + + /** + * The list of conversations. + * @param conversations conversations or {@code null} for none + */ + public ListConversationsResponse setConversations(java.util.List conversations) { + this.conversations = conversations; + return this; + } + + /** + * A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListConversationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListConversationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListConversationsResponse set(String fieldName, Object value) { + return (ListConversationsResponse) super.set(fieldName, value); + } + + @Override + public ListConversationsResponse clone() { + return (ListConversationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListDeploymentsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListDeploymentsResponse.java new file mode 100644 index 00000000000..be6719f6380 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListDeploymentsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListDeployments. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListDeploymentsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of deployments. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List deployments; + + static { + // hack to force ProGuard to consider Deployment 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(Deployment.class); + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of deployments. + * @return value or {@code null} for none + */ + public java.util.List getDeployments() { + return deployments; + } + + /** + * The list of deployments. + * @param deployments deployments or {@code null} for none + */ + public ListDeploymentsResponse setDeployments(java.util.List deployments) { + this.deployments = deployments; + return this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, + * there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListDeploymentsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListDeploymentsResponse set(String fieldName, Object value) { + return (ListDeploymentsResponse) super.set(fieldName, value); + } + + @Override + public ListDeploymentsResponse clone() { + return (ListDeploymentsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationDatasetsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationDatasetsResponse.java new file mode 100644 index 00000000000..149e4f39323 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationDatasetsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ListEvaluationDatasets. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListEvaluationDatasetsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of evaluation datasets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationDatasets; + + static { + // hack to force ProGuard to consider EvaluationDataset 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(EvaluationDataset.class); + } + + /** + * A token that can be sent as ListEvaluationDatasetsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of evaluation datasets. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationDatasets() { + return evaluationDatasets; + } + + /** + * The list of evaluation datasets. + * @param evaluationDatasets evaluationDatasets or {@code null} for none + */ + public ListEvaluationDatasetsResponse setEvaluationDatasets(java.util.List evaluationDatasets) { + this.evaluationDatasets = evaluationDatasets; + return this; + } + + /** + * A token that can be sent as ListEvaluationDatasetsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListEvaluationDatasetsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListEvaluationDatasetsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListEvaluationDatasetsResponse set(String fieldName, Object value) { + return (ListEvaluationDatasetsResponse) super.set(fieldName, value); + } + + @Override + public ListEvaluationDatasetsResponse clone() { + return (ListEvaluationDatasetsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationExpectationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationExpectationsResponse.java new file mode 100644 index 00000000000..224d11e3cbc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationExpectationsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ListEvaluationExpectations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListEvaluationExpectationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of evaluation expectations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationExpectations; + + static { + // hack to force ProGuard to consider EvaluationExpectation 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(EvaluationExpectation.class); + } + + /** + * A token that can be sent as ListEvaluationExpectationsRequest.page_token to retrieve the next + * page. Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of evaluation expectations. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationExpectations() { + return evaluationExpectations; + } + + /** + * The list of evaluation expectations. + * @param evaluationExpectations evaluationExpectations or {@code null} for none + */ + public ListEvaluationExpectationsResponse setEvaluationExpectations(java.util.List evaluationExpectations) { + this.evaluationExpectations = evaluationExpectations; + return this; + } + + /** + * A token that can be sent as ListEvaluationExpectationsRequest.page_token to retrieve the next + * page. Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListEvaluationExpectationsRequest.page_token to retrieve the next + * page. Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListEvaluationExpectationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListEvaluationExpectationsResponse set(String fieldName, Object value) { + return (ListEvaluationExpectationsResponse) super.set(fieldName, value); + } + + @Override + public ListEvaluationExpectationsResponse clone() { + return (ListEvaluationExpectationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationResultsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationResultsResponse.java new file mode 100644 index 00000000000..161af67d0d2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationResultsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ListEvaluationResults. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListEvaluationResultsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of evaluation results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationResults; + + static { + // hack to force ProGuard to consider EvaluationResult 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(EvaluationResult.class); + } + + /** + * A token that can be sent as ListEvaluationResultsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of evaluation results. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationResults() { + return evaluationResults; + } + + /** + * The list of evaluation results. + * @param evaluationResults evaluationResults or {@code null} for none + */ + public ListEvaluationResultsResponse setEvaluationResults(java.util.List evaluationResults) { + this.evaluationResults = evaluationResults; + return this; + } + + /** + * A token that can be sent as ListEvaluationResultsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListEvaluationResultsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListEvaluationResultsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListEvaluationResultsResponse set(String fieldName, Object value) { + return (ListEvaluationResultsResponse) super.set(fieldName, value); + } + + @Override + public ListEvaluationResultsResponse clone() { + return (ListEvaluationResultsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationRunsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationRunsResponse.java new file mode 100644 index 00000000000..bdaf9394133 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationRunsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ListEvaluationRuns. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListEvaluationRunsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of evaluation runs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluationRuns; + + static { + // hack to force ProGuard to consider EvaluationRun 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(EvaluationRun.class); + } + + /** + * A token that can be sent as ListEvaluationRunsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of evaluation runs. + * @return value or {@code null} for none + */ + public java.util.List getEvaluationRuns() { + return evaluationRuns; + } + + /** + * The list of evaluation runs. + * @param evaluationRuns evaluationRuns or {@code null} for none + */ + public ListEvaluationRunsResponse setEvaluationRuns(java.util.List evaluationRuns) { + this.evaluationRuns = evaluationRuns; + return this; + } + + /** + * A token that can be sent as ListEvaluationRunsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListEvaluationRunsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListEvaluationRunsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListEvaluationRunsResponse set(String fieldName, Object value) { + return (ListEvaluationRunsResponse) super.set(fieldName, value); + } + + @Override + public ListEvaluationRunsResponse clone() { + return (ListEvaluationRunsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationsResponse.java new file mode 100644 index 00000000000..95abe542d4c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListEvaluationsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ListEvaluations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListEvaluationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + static { + // hack to force ProGuard to consider Evaluation 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(Evaluation.class); + } + + /** + * A token that can be sent as ListEvaluationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of evaluations. + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * The list of evaluations. + * @param evaluations evaluations or {@code null} for none + */ + public ListEvaluationsResponse setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + /** + * A token that can be sent as ListEvaluationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListEvaluationsRequest.page_token to retrieve the next page. + * Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListEvaluationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListEvaluationsResponse set(String fieldName, Object value) { + return (ListEvaluationsResponse) super.set(fieldName, value); + } + + @Override + public ListEvaluationsResponse clone() { + return (ListEvaluationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListExamplesResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListExamplesResponse.java new file mode 100644 index 00000000000..0ecaebba7cc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListExamplesResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListExamples. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListExamplesResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of examples. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List examples; + + static { + // hack to force ProGuard to consider Example 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(Example.class); + } + + /** + * A token that can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of examples. + * @return value or {@code null} for none + */ + public java.util.List getExamples() { + return examples; + } + + /** + * The list of examples. + * @param examples examples or {@code null} for none + */ + public ListExamplesResponse setExamples(java.util.List examples) { + this.examples = examples; + return this; + } + + /** + * A token that can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListExamplesRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListExamplesResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListExamplesResponse set(String fieldName, Object value) { + return (ListExamplesResponse) super.set(fieldName, value); + } + + @Override + public ListExamplesResponse clone() { + return (ListExamplesResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListGuardrailsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListGuardrailsResponse.java new file mode 100644 index 00000000000..e9497b2c768 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListGuardrailsResponse.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListGuardrails. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListGuardrailsResponse extends com.google.api.client.json.GenericJson { + + /** + * The list of guardrails. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List guardrails; + + static { + // hack to force ProGuard to consider Guardrail 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(Guardrail.class); + } + + /** + * A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of guardrails. + * @return value or {@code null} for none + */ + public java.util.List getGuardrails() { + return guardrails; + } + + /** + * The list of guardrails. + * @param guardrails guardrails or {@code null} for none + */ + public ListGuardrailsResponse setGuardrails(java.util.List guardrails) { + this.guardrails = guardrails; + return this; + } + + /** + * A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListGuardrailsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListGuardrailsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListGuardrailsResponse set(String fieldName, Object value) { + return (ListGuardrailsResponse) super.set(fieldName, value); + } + + @Override + public ListGuardrailsResponse clone() { + return (ListGuardrailsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListLocationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListLocationsResponse.java new file mode 100644 index 00000000000..3d9bab56092 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListLocationsResponse.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.ces.v1beta.model; + +/** + * The response message for Locations.ListLocations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListLocationsResponse extends com.google.api.client.json.GenericJson { + + /** + * A list of locations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List locations; + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of locations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getLocations() { + return locations; + } + + /** + * A list of locations that matches the specified filter in the request. + * @param locations locations or {@code null} for none + */ + public ListLocationsResponse setLocations(java.util.List locations) { + this.locations = locations; + return this; + } + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListLocationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListLocationsResponse set(String fieldName, Object value) { + return (ListLocationsResponse) super.set(fieldName, value); + } + + @Override + public ListLocationsResponse clone() { + return (ListLocationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListOperationsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListOperationsResponse.java new file mode 100644 index 00000000000..6883e03c942 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListOperationsResponse.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The response message for Operations.ListOperations. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListOperationsResponse extends com.google.api.client.json.GenericJson { + + /** + * The standard List next-page token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * A list of operations that matches the specified filter in the request. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List operations; + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List unreachable; + + /** + * The standard List next-page token. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * The standard List next-page token. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListOperationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * A list of operations that matches the specified filter in the request. + * @return value or {@code null} for none + */ + public java.util.List getOperations() { + return operations; + } + + /** + * A list of operations that matches the specified filter in the request. + * @param operations operations or {@code null} for none + */ + public ListOperationsResponse setOperations(java.util.List operations) { + this.operations = operations; + return this; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @return value or {@code null} for none + */ + public java.util.List getUnreachable() { + return unreachable; + } + + /** + * Unordered list. Unreachable resources. Populated when the request sets + * `ListOperationsRequest.return_partial_success` and reads across collections. For example, when + * attempting to list all resources across all supported locations. + * @param unreachable unreachable or {@code null} for none + */ + public ListOperationsResponse setUnreachable(java.util.List unreachable) { + this.unreachable = unreachable; + return this; + } + + @Override + public ListOperationsResponse set(String fieldName, Object value) { + return (ListOperationsResponse) super.set(fieldName, value); + } + + @Override + public ListOperationsResponse clone() { + return (ListOperationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListScheduledEvaluationRunsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListScheduledEvaluationRunsResponse.java new file mode 100644 index 00000000000..e61494a9988 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListScheduledEvaluationRunsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.ListScheduledEvaluationRuns. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListScheduledEvaluationRunsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as ListScheduledEvaluationRunsRequest.page_token to retrieve the next + * page. Absence of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of scheduled evaluation runs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scheduledEvaluationRuns; + + /** + * A token that can be sent as ListScheduledEvaluationRunsRequest.page_token to retrieve the next + * page. Absence of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListScheduledEvaluationRunsRequest.page_token to retrieve the next + * page. Absence of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListScheduledEvaluationRunsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of scheduled evaluation runs. + * @return value or {@code null} for none + */ + public java.util.List getScheduledEvaluationRuns() { + return scheduledEvaluationRuns; + } + + /** + * The list of scheduled evaluation runs. + * @param scheduledEvaluationRuns scheduledEvaluationRuns or {@code null} for none + */ + public ListScheduledEvaluationRunsResponse setScheduledEvaluationRuns(java.util.List scheduledEvaluationRuns) { + this.scheduledEvaluationRuns = scheduledEvaluationRuns; + return this; + } + + @Override + public ListScheduledEvaluationRunsResponse set(String fieldName, Object value) { + return (ListScheduledEvaluationRunsResponse) super.set(fieldName, value); + } + + @Override + public ListScheduledEvaluationRunsResponse clone() { + return (ListScheduledEvaluationRunsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListToolsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListToolsResponse.java new file mode 100644 index 00000000000..a8d3ef71635 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListToolsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListTools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListToolsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as ListToolsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * A token that can be sent as ListToolsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListToolsRequest.page_token to retrieve the next page. Absence of + * this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListToolsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of tools. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * The list of tools. + * @param tools tools or {@code null} for none + */ + public ListToolsResponse setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + @Override + public ListToolsResponse set(String fieldName, Object value) { + return (ListToolsResponse) super.set(fieldName, value); + } + + @Override + public ListToolsResponse clone() { + return (ListToolsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListToolsetsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListToolsetsResponse.java new file mode 100644 index 00000000000..285fd618fe3 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ListToolsetsResponse.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for AgentService.ListToolsets. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ListToolsetsResponse extends com.google.api.client.json.GenericJson { + + /** + * A token that can be sent as ListToolsetsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * The list of toolsets. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolsets; + + /** + * A token that can be sent as ListToolsetsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * A token that can be sent as ListToolsetsRequest.page_token to retrieve the next page. Absence + * of this field indicates there are no subsequent pages. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListToolsetsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * The list of toolsets. + * @return value or {@code null} for none + */ + public java.util.List getToolsets() { + return toolsets; + } + + /** + * The list of toolsets. + * @param toolsets toolsets or {@code null} for none + */ + public ListToolsetsResponse setToolsets(java.util.List toolsets) { + this.toolsets = toolsets; + return this; + } + + @Override + public ListToolsetsResponse set(String fieldName, Object value) { + return (ListToolsetsResponse) super.set(fieldName, value); + } + + @Override + public ListToolsetsResponse clone() { + return (ListToolsetsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Location.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Location.java new file mode 100644 index 00000000000..1f0644f650b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Location.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A resource that represents a Google Cloud location. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Location extends com.google.api.client.json.GenericJson { + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map labels; + + /** + * The canonical id for this location. For example: `"us-east1"`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String locationId; + + /** + * Service-specific metadata. For example the available capacity at the given location. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * The friendly name for this location, typically a nearby city name. For example, "Tokyo". + * @param displayName displayName or {@code null} for none + */ + public Location setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @return value or {@code null} for none + */ + public java.util.Map getLabels() { + return labels; + } + + /** + * Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us- + * east1"} + * @param labels labels or {@code null} for none + */ + public Location setLabels(java.util.Map labels) { + this.labels = labels; + return this; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @return value or {@code null} for none + */ + public java.lang.String getLocationId() { + return locationId; + } + + /** + * The canonical id for this location. For example: `"us-east1"`. + * @param locationId locationId or {@code null} for none + */ + public Location setLocationId(java.lang.String locationId) { + this.locationId = locationId; + return this; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata. For example the available capacity at the given location. + * @param metadata metadata or {@code null} for none + */ + public Location setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Resource name for the location, which may vary between implementations. For example: + * `"projects/example-project/locations/us-east1"` + * @param name name or {@code null} for none + */ + public Location setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public Location set(String fieldName, Object value) { + return (Location) super.set(fieldName, value); + } + + @Override + public Location clone() { + return (Location) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LoggingSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LoggingSettings.java new file mode 100644 index 00000000000..6e1bf1dacf6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/LoggingSettings.java @@ -0,0 +1,220 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Settings to describe the logging behaviors for the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class LoggingSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Configuration for how audio interactions should be recorded. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioRecordingConfig audioRecordingConfig; + + /** + * Optional. Settings to describe the BigQuery export behaviors for the app. The conversation data + * will be exported to BigQuery tables if it is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private BigQueryExportSettings bigqueryExportSettings; + + /** + * Optional. Settings to describe the Cloud Logging behaviors for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CloudLoggingSettings cloudLoggingSettings; + + /** + * Optional. Settings to describe the conversation logging behaviors for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConversationLoggingSettings conversationLoggingSettings; + + /** + * Optional. Configuration for how audio interactions should be recorded for the evaluation. By + * default, audio recording is not enabled for evaluation sessions. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private AudioRecordingConfig evaluationAudioRecordingConfig; + + /** + * Optional. Settings to describe the conversation data collection behaviors for the LLM analysis + * pipeline for the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private MetricAnalysisSettings metricAnalysisSettings; + + /** + * Optional. Configuration for how sensitive data should be redacted. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RedactionConfig redactionConfig; + + /** + * Optional. Configuration for how audio interactions should be recorded. + * @return value or {@code null} for none + */ + public AudioRecordingConfig getAudioRecordingConfig() { + return audioRecordingConfig; + } + + /** + * Optional. Configuration for how audio interactions should be recorded. + * @param audioRecordingConfig audioRecordingConfig or {@code null} for none + */ + public LoggingSettings setAudioRecordingConfig(AudioRecordingConfig audioRecordingConfig) { + this.audioRecordingConfig = audioRecordingConfig; + return this; + } + + /** + * Optional. Settings to describe the BigQuery export behaviors for the app. The conversation data + * will be exported to BigQuery tables if it is enabled. + * @return value or {@code null} for none + */ + public BigQueryExportSettings getBigqueryExportSettings() { + return bigqueryExportSettings; + } + + /** + * Optional. Settings to describe the BigQuery export behaviors for the app. The conversation data + * will be exported to BigQuery tables if it is enabled. + * @param bigqueryExportSettings bigqueryExportSettings or {@code null} for none + */ + public LoggingSettings setBigqueryExportSettings(BigQueryExportSettings bigqueryExportSettings) { + this.bigqueryExportSettings = bigqueryExportSettings; + return this; + } + + /** + * Optional. Settings to describe the Cloud Logging behaviors for the app. + * @return value or {@code null} for none + */ + public CloudLoggingSettings getCloudLoggingSettings() { + return cloudLoggingSettings; + } + + /** + * Optional. Settings to describe the Cloud Logging behaviors for the app. + * @param cloudLoggingSettings cloudLoggingSettings or {@code null} for none + */ + public LoggingSettings setCloudLoggingSettings(CloudLoggingSettings cloudLoggingSettings) { + this.cloudLoggingSettings = cloudLoggingSettings; + return this; + } + + /** + * Optional. Settings to describe the conversation logging behaviors for the app. + * @return value or {@code null} for none + */ + public ConversationLoggingSettings getConversationLoggingSettings() { + return conversationLoggingSettings; + } + + /** + * Optional. Settings to describe the conversation logging behaviors for the app. + * @param conversationLoggingSettings conversationLoggingSettings or {@code null} for none + */ + public LoggingSettings setConversationLoggingSettings(ConversationLoggingSettings conversationLoggingSettings) { + this.conversationLoggingSettings = conversationLoggingSettings; + return this; + } + + /** + * Optional. Configuration for how audio interactions should be recorded for the evaluation. By + * default, audio recording is not enabled for evaluation sessions. + * @return value or {@code null} for none + */ + public AudioRecordingConfig getEvaluationAudioRecordingConfig() { + return evaluationAudioRecordingConfig; + } + + /** + * Optional. Configuration for how audio interactions should be recorded for the evaluation. By + * default, audio recording is not enabled for evaluation sessions. + * @param evaluationAudioRecordingConfig evaluationAudioRecordingConfig or {@code null} for none + */ + public LoggingSettings setEvaluationAudioRecordingConfig(AudioRecordingConfig evaluationAudioRecordingConfig) { + this.evaluationAudioRecordingConfig = evaluationAudioRecordingConfig; + return this; + } + + /** + * Optional. Settings to describe the conversation data collection behaviors for the LLM analysis + * pipeline for the app. + * @return value or {@code null} for none + */ + public MetricAnalysisSettings getMetricAnalysisSettings() { + return metricAnalysisSettings; + } + + /** + * Optional. Settings to describe the conversation data collection behaviors for the LLM analysis + * pipeline for the app. + * @param metricAnalysisSettings metricAnalysisSettings or {@code null} for none + */ + public LoggingSettings setMetricAnalysisSettings(MetricAnalysisSettings metricAnalysisSettings) { + this.metricAnalysisSettings = metricAnalysisSettings; + return this; + } + + /** + * Optional. Configuration for how sensitive data should be redacted. + * @return value or {@code null} for none + */ + public RedactionConfig getRedactionConfig() { + return redactionConfig; + } + + /** + * Optional. Configuration for how sensitive data should be redacted. + * @param redactionConfig redactionConfig or {@code null} for none + */ + public LoggingSettings setRedactionConfig(RedactionConfig redactionConfig) { + this.redactionConfig = redactionConfig; + return this; + } + + @Override + public LoggingSettings set(String fieldName, Object value) { + return (LoggingSettings) super.set(fieldName, value); + } + + @Override + public LoggingSettings clone() { + return (LoggingSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/McpTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/McpTool.java new file mode 100644 index 00000000000..dfa75c41243 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/McpTool.java @@ -0,0 +1,263 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * An MCP tool. See https://modelcontextprotocol.io/specification/2025-06-18/server/tools for more + * details. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class McpTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required to execute the tool against the MCP server. For + * bearer token authentication, the token applies only to tool execution, not to listing tools. + * This requires that tools can be listed without authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Optional. The description of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The schema of the input arguments of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema inputSchema; + + /** + * Required. The name of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The schema of the output arguments of the MCP tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema outputSchema; + + /** + * Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. This is the same as the server_address in the + * McpToolset. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverAddress; + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. Authentication information required to execute the tool against the MCP server. For + * bearer token authentication, the token applies only to tool execution, not to listing tools. + * This requires that tools can be listed without authentication. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required to execute the tool against the MCP server. For + * bearer token authentication, the token applies only to tool execution, not to listing tools. + * This requires that tools can be listed without authentication. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public McpTool setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Optional. The description of the MCP tool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the MCP tool. + * @param description description or {@code null} for none + */ + public McpTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The schema of the input arguments of the MCP tool. + * @return value or {@code null} for none + */ + public Schema getInputSchema() { + return inputSchema; + } + + /** + * Optional. The schema of the input arguments of the MCP tool. + * @param inputSchema inputSchema or {@code null} for none + */ + public McpTool setInputSchema(Schema inputSchema) { + this.inputSchema = inputSchema; + return this; + } + + /** + * Required. The name of the MCP tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the MCP tool. + * @param name name or {@code null} for none + */ + public McpTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The schema of the output arguments of the MCP tool. + * @return value or {@code null} for none + */ + public Schema getOutputSchema() { + return outputSchema; + } + + /** + * Optional. The schema of the output arguments of the MCP tool. + * @param outputSchema outputSchema or {@code null} for none + */ + public McpTool setOutputSchema(Schema outputSchema) { + this.outputSchema = outputSchema; + return this; + } + + /** + * Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. This is the same as the server_address in the + * McpToolset. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @return value or {@code null} for none + */ + public java.lang.String getServerAddress() { + return serverAddress; + } + + /** + * Required. The server address of the MCP server, e.g., "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. This is the same as the server_address in the + * McpToolset. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @param serverAddress serverAddress or {@code null} for none + */ + public McpTool setServerAddress(java.lang.String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public McpTool setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public McpTool setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + @Override + public McpTool set(String fieldName, Object value) { + return (McpTool) super.set(fieldName, value); + } + + @Override + public McpTool clone() { + return (McpTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/McpToolset.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/McpToolset.java new file mode 100644 index 00000000000..ce93643ba20 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/McpToolset.java @@ -0,0 +1,163 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A toolset that contains a list of tools that are offered by the MCP server. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class McpToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required to access tools and execute a tool against the + * MCP server. For bearer token authentication, the token applies only to tool execution, not to + * listing tools. This requires that tools can be listed without authentication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serverAddress; + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. Authentication information required to access tools and execute a tool against the + * MCP server. For bearer token authentication, the token applies only to tool execution, not to + * listing tools. This requires that tools can be listed without authentication. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required to access tools and execute a tool against the + * MCP server. For bearer token authentication, the token applies only to tool execution, not to + * listing tools. This requires that tools can be listed without authentication. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public McpToolset setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @return value or {@code null} for none + */ + public java.lang.String getServerAddress() { + return serverAddress; + } + + /** + * Required. The address of the MCP server, for example, "https://example.com/mcp/". If the server + * is built with the MCP SDK, the url should be suffixed with "/mcp/". Only Streamable HTTP + * transport based servers are supported. See + * https://modelcontextprotocol.io/specification/2025-03-26/basic/transports#streamable-http for + * more details. + * @param serverAddress serverAddress or {@code null} for none + */ + public McpToolset setServerAddress(java.lang.String serverAddress) { + this.serverAddress = serverAddress; + return this; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration for VPC-SC, used to resolve service names within a + * perimeter. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public McpToolset setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client should + * trust. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public McpToolset setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + @Override + public McpToolset set(String fieldName, Object value) { + return (McpToolset) super.set(fieldName, value); + } + + @Override + public McpToolset clone() { + return (McpToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Message.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Message.java new file mode 100644 index 00000000000..0013dbc4022 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Message.java @@ -0,0 +1,124 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A message within a 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Message extends com.google.api.client.json.GenericJson { + + /** + * Optional. Content of the message as a series of chunks. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List chunks; + + static { + // hack to force ProGuard to consider Chunk 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(Chunk.class); + } + + /** + * Optional. Timestamp when the message was sent or received. Should not be used if the message is + * part of an example. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String eventTime; + + /** + * Optional. The role within the conversation, e.g., user, agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String role; + + /** + * Optional. Content of the message as a series of chunks. + * @return value or {@code null} for none + */ + public java.util.List getChunks() { + return chunks; + } + + /** + * Optional. Content of the message as a series of chunks. + * @param chunks chunks or {@code null} for none + */ + public Message setChunks(java.util.List chunks) { + this.chunks = chunks; + return this; + } + + /** + * Optional. Timestamp when the message was sent or received. Should not be used if the message is + * part of an example. + * @return value or {@code null} for none + */ + public String getEventTime() { + return eventTime; + } + + /** + * Optional. Timestamp when the message was sent or received. Should not be used if the message is + * part of an example. + * @param eventTime eventTime or {@code null} for none + */ + public Message setEventTime(String eventTime) { + this.eventTime = eventTime; + return this; + } + + /** + * Optional. The role within the conversation, e.g., user, agent. + * @return value or {@code null} for none + */ + public java.lang.String getRole() { + return role; + } + + /** + * Optional. The role within the conversation, e.g., user, agent. + * @param role role or {@code null} for none + */ + public Message setRole(java.lang.String role) { + this.role = role; + return this; + } + + @Override + public Message set(String fieldName, Object value) { + return (Message) super.set(fieldName, value); + } + + @Override + public Message clone() { + return (Message) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/MetricAnalysisSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/MetricAnalysisSettings.java new file mode 100644 index 00000000000..0dc14c2e4a6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/MetricAnalysisSettings.java @@ -0,0 +1,74 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Settings to describe the conversation data collection behaviors for LLM analysis metrics + * pipeline. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class MetricAnalysisSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation + * data will not be collected for llm analysis metrics; otherwise, conversation data will be + * collected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean llmMetricsOptedOut; + + /** + * Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation + * data will not be collected for llm analysis metrics; otherwise, conversation data will be + * collected. + * @return value or {@code null} for none + */ + public java.lang.Boolean getLlmMetricsOptedOut() { + return llmMetricsOptedOut; + } + + /** + * Optional. Whether to collect conversation data for llm analysis metrics. If true, conversation + * data will not be collected for llm analysis metrics; otherwise, conversation data will be + * collected. + * @param llmMetricsOptedOut llmMetricsOptedOut or {@code null} for none + */ + public MetricAnalysisSettings setLlmMetricsOptedOut(java.lang.Boolean llmMetricsOptedOut) { + this.llmMetricsOptedOut = llmMetricsOptedOut; + return this; + } + + @Override + public MetricAnalysisSettings set(String fieldName, Object value) { + return (MetricAnalysisSettings) super.set(fieldName, value); + } + + @Override + public MetricAnalysisSettings clone() { + return (MetricAnalysisSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ModelSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ModelSettings.java new file mode 100644 index 00000000000..337e0ec8a1e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ModelSettings.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Model settings contains various configurations for the LLM model. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ModelSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The LLM model that the agent should use. If not set, the agent will inherit the model + * from its parent agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String model; + + /** + * Optional. If set, this temperature will be used for the LLM model. Temperature controls the + * randomness of the model's responses. Lower temperatures produce responses that are more + * predictable. Higher temperatures produce responses that are more creative. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double temperature; + + /** + * Optional. The LLM model that the agent should use. If not set, the agent will inherit the model + * from its parent agent. + * @return value or {@code null} for none + */ + public java.lang.String getModel() { + return model; + } + + /** + * Optional. The LLM model that the agent should use. If not set, the agent will inherit the model + * from its parent agent. + * @param model model or {@code null} for none + */ + public ModelSettings setModel(java.lang.String model) { + this.model = model; + return this; + } + + /** + * Optional. If set, this temperature will be used for the LLM model. Temperature controls the + * randomness of the model's responses. Lower temperatures produce responses that are more + * predictable. Higher temperatures produce responses that are more creative. + * @return value or {@code null} for none + */ + public java.lang.Double getTemperature() { + return temperature; + } + + /** + * Optional. If set, this temperature will be used for the LLM model. Temperature controls the + * randomness of the model's responses. Lower temperatures produce responses that are more + * predictable. Higher temperatures produce responses that are more creative. + * @param temperature temperature or {@code null} for none + */ + public ModelSettings setTemperature(java.lang.Double temperature) { + this.temperature = temperature; + return this; + } + + @Override + public ModelSettings set(String fieldName, Object value) { + return (ModelSettings) super.set(fieldName, value); + } + + @Override + public ModelSettings clone() { + return (ModelSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OAuthConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OAuthConfig.java new file mode 100644 index 00000000000..91af230acd0 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OAuthConfig.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configurations for authentication with OAuth. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The client ID from the OAuth provider. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientId; + + /** + * Required. The name of the SecretManager secret version resource storing the client secret. + * Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String clientSecretVersion; + + /** + * Required. OAuth grant types. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String oauthGrantType; + + /** + * Optional. The OAuth scopes to grant. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Required. The token endpoint in the OAuth provider to exchange for an access token. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tokenEndpoint; + + /** + * Required. The client ID from the OAuth provider. + * @return value or {@code null} for none + */ + public java.lang.String getClientId() { + return clientId; + } + + /** + * Required. The client ID from the OAuth provider. + * @param clientId clientId or {@code null} for none + */ + public OAuthConfig setClientId(java.lang.String clientId) { + this.clientId = clientId; + return this; + } + + /** + * Required. The name of the SecretManager secret version resource storing the client secret. + * Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getClientSecretVersion() { + return clientSecretVersion; + } + + /** + * Required. The name of the SecretManager secret version resource storing the client secret. + * Format: `projects/{project}/secrets/{secret}/versions/{version}` Note: You should grant + * `roles/secretmanager.secretAccessor` role to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param clientSecretVersion clientSecretVersion or {@code null} for none + */ + public OAuthConfig setClientSecretVersion(java.lang.String clientSecretVersion) { + this.clientSecretVersion = clientSecretVersion; + return this; + } + + /** + * Required. OAuth grant types. + * @return value or {@code null} for none + */ + public java.lang.String getOauthGrantType() { + return oauthGrantType; + } + + /** + * Required. OAuth grant types. + * @param oauthGrantType oauthGrantType or {@code null} for none + */ + public OAuthConfig setOauthGrantType(java.lang.String oauthGrantType) { + this.oauthGrantType = oauthGrantType; + return this; + } + + /** + * Optional. The OAuth scopes to grant. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Optional. The OAuth scopes to grant. + * @param scopes scopes or {@code null} for none + */ + public OAuthConfig setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Required. The token endpoint in the OAuth provider to exchange for an access token. + * @return value or {@code null} for none + */ + public java.lang.String getTokenEndpoint() { + return tokenEndpoint; + } + + /** + * Required. The token endpoint in the OAuth provider to exchange for an access token. + * @param tokenEndpoint tokenEndpoint or {@code null} for none + */ + public OAuthConfig setTokenEndpoint(java.lang.String tokenEndpoint) { + this.tokenEndpoint = tokenEndpoint; + return this; + } + + @Override + public OAuthConfig set(String fieldName, Object value) { + return (OAuthConfig) super.set(fieldName, value); + } + + @Override + public OAuthConfig clone() { + return (OAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Omnichannel.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Omnichannel.java new file mode 100644 index 00000000000..177f81e19ef --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Omnichannel.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents an Omnichannel resource. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Omnichannel extends com.google.api.client.json.GenericJson { + + /** + * Output only. Timestamp when the omnichannel resource was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. Human-readable description of the omnichannel resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. Display name of the omnichannel resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The integration config for the omnichannel resource. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OmnichannelIntegrationConfig integrationConfig; + + /** + * Identifier. The unique identifier of the omnichannel resource. Format: + * `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. Timestamp when the omnichannel resource was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Output only. Timestamp when the omnichannel resource was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the omnichannel resource was created. + * @param createTime createTime or {@code null} for none + */ + public Omnichannel setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. Human-readable description of the omnichannel resource. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. Human-readable description of the omnichannel resource. + * @param description description or {@code null} for none + */ + public Omnichannel setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. Display name of the omnichannel resource. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. Display name of the omnichannel resource. + * @param displayName displayName or {@code null} for none + */ + public Omnichannel setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. + * @param etag etag or {@code null} for none + */ + public Omnichannel setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The integration config for the omnichannel resource. + * @return value or {@code null} for none + */ + public OmnichannelIntegrationConfig getIntegrationConfig() { + return integrationConfig; + } + + /** + * Optional. The integration config for the omnichannel resource. + * @param integrationConfig integrationConfig or {@code null} for none + */ + public Omnichannel setIntegrationConfig(OmnichannelIntegrationConfig integrationConfig) { + this.integrationConfig = integrationConfig; + return this; + } + + /** + * Identifier. The unique identifier of the omnichannel resource. Format: + * `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the omnichannel resource. Format: + * `projects/{project}/locations/{location}/omnichannels/{omnichannel}` + * @param name name or {@code null} for none + */ + public Omnichannel setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. Timestamp when the omnichannel resource was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the omnichannel resource was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Omnichannel setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Omnichannel set(String fieldName, Object value) { + return (Omnichannel) super.set(fieldName, value); + } + + @Override + public Omnichannel clone() { + return (Omnichannel) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfig.java new file mode 100644 index 00000000000..bb3e08ea1a1 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfig.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * OmnichannelIntegrationConfig contains all App integration configs. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Various of configuration for handling App events. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map channelConfigs; + + /** + * Optional. The key of routing_configs is a key of `app_configs`, value is a `RoutingConfig`, + * which contains subscriber's key. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map routingConfigs; + + /** + * Optional. Various of subscribers configs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map subscriberConfigs; + + /** + * Optional. Various of configuration for handling App events. + * @return value or {@code null} for none + */ + public java.util.Map getChannelConfigs() { + return channelConfigs; + } + + /** + * Optional. Various of configuration for handling App events. + * @param channelConfigs channelConfigs or {@code null} for none + */ + public OmnichannelIntegrationConfig setChannelConfigs(java.util.Map channelConfigs) { + this.channelConfigs = channelConfigs; + return this; + } + + /** + * Optional. The key of routing_configs is a key of `app_configs`, value is a `RoutingConfig`, + * which contains subscriber's key. + * @return value or {@code null} for none + */ + public java.util.Map getRoutingConfigs() { + return routingConfigs; + } + + /** + * Optional. The key of routing_configs is a key of `app_configs`, value is a `RoutingConfig`, + * which contains subscriber's key. + * @param routingConfigs routingConfigs or {@code null} for none + */ + public OmnichannelIntegrationConfig setRoutingConfigs(java.util.Map routingConfigs) { + this.routingConfigs = routingConfigs; + return this; + } + + /** + * Optional. Various of subscribers configs. + * @return value or {@code null} for none + */ + public java.util.Map getSubscriberConfigs() { + return subscriberConfigs; + } + + /** + * Optional. Various of subscribers configs. + * @param subscriberConfigs subscriberConfigs or {@code null} for none + */ + public OmnichannelIntegrationConfig setSubscriberConfigs(java.util.Map subscriberConfigs) { + this.subscriberConfigs = subscriberConfigs; + return this; + } + + @Override + public OmnichannelIntegrationConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfig clone() { + return (OmnichannelIntegrationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigCesAppConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigCesAppConfig.java new file mode 100644 index 00000000000..de4632df36c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigCesAppConfig.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configs for CES app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigCesAppConfig extends com.google.api.client.json.GenericJson { + + /** + * The unique identifier of the CES app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** + * The unique identifier of the CES app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @return value or {@code null} for none + */ + public java.lang.String getApp() { + return app; + } + + /** + * The unique identifier of the CES app. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param app app or {@code null} for none + */ + public OmnichannelIntegrationConfigCesAppConfig setApp(java.lang.String app) { + this.app = app; + return this; + } + + @Override + public OmnichannelIntegrationConfigCesAppConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigCesAppConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigCesAppConfig clone() { + return (OmnichannelIntegrationConfigCesAppConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigChannelConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigChannelConfig.java new file mode 100644 index 00000000000..dd6f14a3cfe --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigChannelConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * ChannelConfig contains config for various of app integration. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigChannelConfig extends com.google.api.client.json.GenericJson { + + /** + * WhatsApp config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OmnichannelIntegrationConfigWhatsappConfig whatsappConfig; + + /** + * WhatsApp config. + * @return value or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig getWhatsappConfig() { + return whatsappConfig; + } + + /** + * WhatsApp config. + * @param whatsappConfig whatsappConfig or {@code null} for none + */ + public OmnichannelIntegrationConfigChannelConfig setWhatsappConfig(OmnichannelIntegrationConfigWhatsappConfig whatsappConfig) { + this.whatsappConfig = whatsappConfig; + return this; + } + + @Override + public OmnichannelIntegrationConfigChannelConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigChannelConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigChannelConfig clone() { + return (OmnichannelIntegrationConfigChannelConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigRoutingConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigRoutingConfig.java new file mode 100644 index 00000000000..8aba7e22115 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigRoutingConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Routing config specify how/who to route app events to a subscriber. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigRoutingConfig extends com.google.api.client.json.GenericJson { + + /** + * The key of the subscriber. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String subscriberKey; + + /** + * The key of the subscriber. + * @return value or {@code null} for none + */ + public java.lang.String getSubscriberKey() { + return subscriberKey; + } + + /** + * The key of the subscriber. + * @param subscriberKey subscriberKey or {@code null} for none + */ + public OmnichannelIntegrationConfigRoutingConfig setSubscriberKey(java.lang.String subscriberKey) { + this.subscriberKey = subscriberKey; + return this; + } + + @Override + public OmnichannelIntegrationConfigRoutingConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigRoutingConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigRoutingConfig clone() { + return (OmnichannelIntegrationConfigRoutingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigSubscriberConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigSubscriberConfig.java new file mode 100644 index 00000000000..f9d89aa1864 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigSubscriberConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configs of subscribers. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigSubscriberConfig extends com.google.api.client.json.GenericJson { + + /** + * Ces app config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OmnichannelIntegrationConfigCesAppConfig cesAppConfig; + + /** + * Ces app config. + * @return value or {@code null} for none + */ + public OmnichannelIntegrationConfigCesAppConfig getCesAppConfig() { + return cesAppConfig; + } + + /** + * Ces app config. + * @param cesAppConfig cesAppConfig or {@code null} for none + */ + public OmnichannelIntegrationConfigSubscriberConfig setCesAppConfig(OmnichannelIntegrationConfigCesAppConfig cesAppConfig) { + this.cesAppConfig = cesAppConfig; + return this; + } + + @Override + public OmnichannelIntegrationConfigSubscriberConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigSubscriberConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigSubscriberConfig clone() { + return (OmnichannelIntegrationConfigSubscriberConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigWhatsappConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigWhatsappConfig.java new file mode 100644 index 00000000000..db16cbf27b3 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelIntegrationConfigWhatsappConfig.java @@ -0,0 +1,193 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * How Omnichannel should receive/reply events from WhatsApp. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelIntegrationConfigWhatsappConfig extends com.google.api.client.json.GenericJson { + + /** + * The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String metaBusinessPortfolioId; + + /** + * The phone number used for sending/receiving messages. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phoneNumber; + + /** + * The Phone Number ID associated with the WhatsApp Business Account. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String phoneNumberId; + + /** + * The verify token configured in the Meta App Dashboard for webhook verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String webhookVerifyToken; + + /** + * The customer's WhatsApp Business Account (WABA) ID. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String whatsappBusinessAccountId; + + /** + * The access token for authenticating API calls to the WhatsApp Cloud API. + * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business- + * integration-system-user-access-tokens + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String whatsappBusinessToken; + + /** + * The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 + * @return value or {@code null} for none + */ + public java.lang.String getMetaBusinessPortfolioId() { + return metaBusinessPortfolioId; + } + + /** + * The Meta Business Portfolio (MBP) ID. https://www.facebook.com/business/help/1710077379203657 + * @param metaBusinessPortfolioId metaBusinessPortfolioId or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setMetaBusinessPortfolioId(java.lang.String metaBusinessPortfolioId) { + this.metaBusinessPortfolioId = metaBusinessPortfolioId; + return this; + } + + /** + * The phone number used for sending/receiving messages. + * @return value or {@code null} for none + */ + public java.lang.String getPhoneNumber() { + return phoneNumber; + } + + /** + * The phone number used for sending/receiving messages. + * @param phoneNumber phoneNumber or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setPhoneNumber(java.lang.String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The Phone Number ID associated with the WhatsApp Business Account. + * @return value or {@code null} for none + */ + public java.lang.String getPhoneNumberId() { + return phoneNumberId; + } + + /** + * The Phone Number ID associated with the WhatsApp Business Account. + * @param phoneNumberId phoneNumberId or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setPhoneNumberId(java.lang.String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + return this; + } + + /** + * The verify token configured in the Meta App Dashboard for webhook verification. + * @return value or {@code null} for none + */ + public java.lang.String getWebhookVerifyToken() { + return webhookVerifyToken; + } + + /** + * The verify token configured in the Meta App Dashboard for webhook verification. + * @param webhookVerifyToken webhookVerifyToken or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setWebhookVerifyToken(java.lang.String webhookVerifyToken) { + this.webhookVerifyToken = webhookVerifyToken; + return this; + } + + /** + * The customer's WhatsApp Business Account (WABA) ID. + * @return value or {@code null} for none + */ + public java.lang.String getWhatsappBusinessAccountId() { + return whatsappBusinessAccountId; + } + + /** + * The customer's WhatsApp Business Account (WABA) ID. + * @param whatsappBusinessAccountId whatsappBusinessAccountId or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setWhatsappBusinessAccountId(java.lang.String whatsappBusinessAccountId) { + this.whatsappBusinessAccountId = whatsappBusinessAccountId; + return this; + } + + /** + * The access token for authenticating API calls to the WhatsApp Cloud API. + * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business- + * integration-system-user-access-tokens + * @return value or {@code null} for none + */ + public java.lang.String getWhatsappBusinessToken() { + return whatsappBusinessToken; + } + + /** + * The access token for authenticating API calls to the WhatsApp Cloud API. + * https://developers.facebook.com/docs/whatsapp/business-management-api/get-started/#business- + * integration-system-user-access-tokens + * @param whatsappBusinessToken whatsappBusinessToken or {@code null} for none + */ + public OmnichannelIntegrationConfigWhatsappConfig setWhatsappBusinessToken(java.lang.String whatsappBusinessToken) { + this.whatsappBusinessToken = whatsappBusinessToken; + return this; + } + + @Override + public OmnichannelIntegrationConfigWhatsappConfig set(String fieldName, Object value) { + return (OmnichannelIntegrationConfigWhatsappConfig) super.set(fieldName, value); + } + + @Override + public OmnichannelIntegrationConfigWhatsappConfig clone() { + return (OmnichannelIntegrationConfigWhatsappConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelOperationMetadata.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelOperationMetadata.java new file mode 100644 index 00000000000..bcb7b534d36 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OmnichannelOperationMetadata.java @@ -0,0 +1,139 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents the metadata of the long-running operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OmnichannelOperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OmnichannelOperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OmnichannelOperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OmnichannelOperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OmnichannelOperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public OmnichannelOperationMetadata set(String fieldName, Object value) { + return (OmnichannelOperationMetadata) super.set(fieldName, value); + } + + @Override + public OmnichannelOperationMetadata clone() { + return (OmnichannelOperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OpenApiTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OpenApiTool.java new file mode 100644 index 00000000000..7161439d058 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OpenApiTool.java @@ -0,0 +1,253 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A remote API tool defined by an OpenAPI schema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OpenApiTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Optional. The description of the tool. If not provided, the description of the tool will be + * derived from the OpenAPI schema, from `operation.description` or `operation.summary`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. If true, the agent will ignore unknown fields in the API response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreUnknownFields; + + /** + * Optional. The name of the tool. If not provided, the name of the tool will be derived from the + * OpenAPI schema, from `operation.operationId`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Required. The OpenAPI schema in JSON or YAML format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String openApiSchema; + + /** + * Optional. Service Directory configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client will + * trust. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. The server URL of the Open API schema. This field is only set in tools in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Authentication information required by the API. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required by the API. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public OpenApiTool setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Optional. The description of the tool. If not provided, the description of the tool will be + * derived from the OpenAPI schema, from `operation.description` or `operation.summary`. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the tool. If not provided, the description of the tool will be + * derived from the OpenAPI schema, from `operation.description` or `operation.summary`. + * @param description description or {@code null} for none + */ + public OpenApiTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreUnknownFields() { + return ignoreUnknownFields; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response. + * @param ignoreUnknownFields ignoreUnknownFields or {@code null} for none + */ + public OpenApiTool setIgnoreUnknownFields(java.lang.Boolean ignoreUnknownFields) { + this.ignoreUnknownFields = ignoreUnknownFields; + return this; + } + + /** + * Optional. The name of the tool. If not provided, the name of the tool will be derived from the + * OpenAPI schema, from `operation.operationId`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the tool. If not provided, the name of the tool will be derived from the + * OpenAPI schema, from `operation.operationId`. + * @param name name or {@code null} for none + */ + public OpenApiTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Required. The OpenAPI schema in JSON or YAML format. + * @return value or {@code null} for none + */ + public java.lang.String getOpenApiSchema() { + return openApiSchema; + } + + /** + * Required. The OpenAPI schema in JSON or YAML format. + * @param openApiSchema openApiSchema or {@code null} for none + */ + public OpenApiTool setOpenApiSchema(java.lang.String openApiSchema) { + this.openApiSchema = openApiSchema; + return this; + } + + /** + * Optional. Service Directory configuration. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public OpenApiTool setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client will + * trust. + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates that the client will + * trust. + * @param tlsConfig tlsConfig or {@code null} for none + */ + public OpenApiTool setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in tools in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in tools in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @param url url or {@code null} for none + */ + public OpenApiTool setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public OpenApiTool set(String fieldName, Object value) { + return (OpenApiTool) super.set(fieldName, value); + } + + @Override + public OpenApiTool clone() { + return (OpenApiTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OpenApiToolset.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OpenApiToolset.java new file mode 100644 index 00000000000..f9bc7426e7a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OpenApiToolset.java @@ -0,0 +1,199 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A toolset that contains a list of tools that are defined by an OpenAPI schema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OpenApiToolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. Authentication information required by the API. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ApiAuthentication apiAuthentication; + + /** + * Optional. If true, the agent will ignore unknown fields in the API response for all operations + * defined in the OpenAPI schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ignoreUnknownFields; + + /** + * Required. The OpenAPI schema of the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String openApiSchema; + + /** + * Optional. Service Directory configuration. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ServiceDirectoryConfig serviceDirectoryConfig; + + /** + * Optional. The TLS configuration. Includes the custom server certificates + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TlsConfig tlsConfig; + + /** + * Optional. The server URL of the Open API schema. This field is only set in toolsets in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Authentication information required by the API. + * @return value or {@code null} for none + */ + public ApiAuthentication getApiAuthentication() { + return apiAuthentication; + } + + /** + * Optional. Authentication information required by the API. + * @param apiAuthentication apiAuthentication or {@code null} for none + */ + public OpenApiToolset setApiAuthentication(ApiAuthentication apiAuthentication) { + this.apiAuthentication = apiAuthentication; + return this; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response for all operations + * defined in the OpenAPI schema. + * @return value or {@code null} for none + */ + public java.lang.Boolean getIgnoreUnknownFields() { + return ignoreUnknownFields; + } + + /** + * Optional. If true, the agent will ignore unknown fields in the API response for all operations + * defined in the OpenAPI schema. + * @param ignoreUnknownFields ignoreUnknownFields or {@code null} for none + */ + public OpenApiToolset setIgnoreUnknownFields(java.lang.Boolean ignoreUnknownFields) { + this.ignoreUnknownFields = ignoreUnknownFields; + return this; + } + + /** + * Required. The OpenAPI schema of the toolset. + * @return value or {@code null} for none + */ + public java.lang.String getOpenApiSchema() { + return openApiSchema; + } + + /** + * Required. The OpenAPI schema of the toolset. + * @param openApiSchema openApiSchema or {@code null} for none + */ + public OpenApiToolset setOpenApiSchema(java.lang.String openApiSchema) { + this.openApiSchema = openApiSchema; + return this; + } + + /** + * Optional. Service Directory configuration. + * @return value or {@code null} for none + */ + public ServiceDirectoryConfig getServiceDirectoryConfig() { + return serviceDirectoryConfig; + } + + /** + * Optional. Service Directory configuration. + * @param serviceDirectoryConfig serviceDirectoryConfig or {@code null} for none + */ + public OpenApiToolset setServiceDirectoryConfig(ServiceDirectoryConfig serviceDirectoryConfig) { + this.serviceDirectoryConfig = serviceDirectoryConfig; + return this; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates + * @return value or {@code null} for none + */ + public TlsConfig getTlsConfig() { + return tlsConfig; + } + + /** + * Optional. The TLS configuration. Includes the custom server certificates + * @param tlsConfig tlsConfig or {@code null} for none + */ + public OpenApiToolset setTlsConfig(TlsConfig tlsConfig) { + this.tlsConfig = tlsConfig; + return this; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in toolsets in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Optional. The server URL of the Open API schema. This field is only set in toolsets in the + * environment dependencies during the export process if the schema contains a server url. During + * the import process, if this url is present in the environment dependencies and the schema has + * the $env_var placeholder, it will replace the placeholder in the schema. + * @param url url or {@code null} for none + */ + public OpenApiToolset setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public OpenApiToolset set(String fieldName, Object value) { + return (OpenApiToolset) super.set(fieldName, value); + } + + @Override + public OpenApiToolset clone() { + return (OpenApiToolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Operation.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Operation.java new file mode 100644 index 00000000000..cc9096c9b06 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Operation.java @@ -0,0 +1,196 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * This resource represents a long-running operation that is the result of a network API call. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Operation extends com.google.api.client.json.GenericJson { + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean done; + + /** + * The error result of the operation in case of failure or cancellation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Status error; + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map metadata; + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDone() { + return done; + } + + /** + * If the value is `false`, it means the operation is still in progress. If `true`, the operation + * is completed, and either `error` or `response` is available. + * @param done done or {@code null} for none + */ + public Operation setDone(java.lang.Boolean done) { + this.done = done; + return this; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @return value or {@code null} for none + */ + public Status getError() { + return error; + } + + /** + * The error result of the operation in case of failure or cancellation. + * @param error error or {@code null} for none + */ + public Operation setError(Status error) { + this.error = error; + return this; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @return value or {@code null} for none + */ + public java.util.Map getMetadata() { + return metadata; + } + + /** + * Service-specific metadata associated with the operation. It typically contains progress + * information and common metadata such as create time. Some services might not provide such + * metadata. Any method that returns a long-running operation should document the metadata type, + * if any. + * @param metadata metadata or {@code null} for none + */ + public Operation setMetadata(java.util.Map metadata) { + this.metadata = metadata; + return this; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * The server-assigned name, which is only unique within the same service that originally returns + * it. If you use the default HTTP mapping, the `name` should be a resource name ending with + * `operations/{unique_id}`. + * @param name name or {@code null} for none + */ + public Operation setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * The normal, successful response of the operation. If the original method returns no data on + * success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is + * standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the + * response should have the type `XxxResponse`, where `Xxx` is the original method name. For + * example, if the original method name is `TakeSnapshot()`, the inferred response type is + * `TakeSnapshotResponse`. + * @param response response or {@code null} for none + */ + public Operation setResponse(java.util.Map response) { + this.response = response; + return this; + } + + @Override + public Operation set(String fieldName, Object value) { + return (Operation) super.set(fieldName, value); + } + + @Override + public Operation clone() { + return (Operation) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OperationMetadata.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OperationMetadata.java new file mode 100644 index 00000000000..21c9d77b52d --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OperationMetadata.java @@ -0,0 +1,145 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents the metadata of the long-running operation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OperationMetadata extends com.google.api.client.json.GenericJson { + + /** + * Output only. The time the operation was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The time the operation finished running. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean requestedCancellation; + + /** + * Output only. Human-readable status of the operation, if any. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String statusMessage; + + /** + * Output only. The time the operation was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. The time the operation was created. + * @param createTime createTime or {@code null} for none + */ + public OperationMetadata setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The time the operation finished running. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The time the operation finished running. + * @param endTime endTime or {@code null} for none + */ + public OperationMetadata setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @return value or {@code null} for none + */ + public java.lang.Boolean getRequestedCancellation() { + return requestedCancellation; + } + + /** + * Output only. Identifies whether the user has requested cancellation of the operation. + * Operations that have been cancelled successfully have google.longrunning.Operation.error value + * with a google.rpc.Status.code of `1`, corresponding to `Code.CANCELLED`. + * @param requestedCancellation requestedCancellation or {@code null} for none + */ + public OperationMetadata setRequestedCancellation(java.lang.Boolean requestedCancellation) { + this.requestedCancellation = requestedCancellation; + return this; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @return value or {@code null} for none + */ + public java.lang.String getStatusMessage() { + return statusMessage; + } + + /** + * Output only. Human-readable status of the operation, if any. + * @param statusMessage statusMessage or {@code null} for none + */ + public OperationMetadata setStatusMessage(java.lang.String statusMessage) { + this.statusMessage = statusMessage; + return this; + } + + @Override + public OperationMetadata set(String fieldName, Object value) { + return (OperationMetadata) super.set(fieldName, value); + } + + @Override + public OperationMetadata clone() { + return (OperationMetadata) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OptimizationConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OptimizationConfig.java new file mode 100644 index 00000000000..fc236a010df --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OptimizationConfig.java @@ -0,0 +1,217 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for running the optimization step after the evaluation run. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OptimizationConfig extends com.google.api.client.json.GenericJson { + + /** + * Output only. The assistant session to use for the optimization based on this evaluation run. + * Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String assistantSession; + + /** + * Output only. The error message if the optimization run failed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String errorMessage; + + /** + * Optional. Whether to generate a loss report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean generateLossReport; + + /** + * Output only. The generated loss report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map lossReport; + + /** + * Output only. The summary of the loss report. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String reportSummary; + + /** + * Output only. Whether to suggest a fix for the losses. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean shouldSuggestFix; + + /** + * Output only. The status of the optimization run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String status; + + /** + * Output only. The assistant session to use for the optimization based on this evaluation run. + * Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}` + * @return value or {@code null} for none + */ + public java.lang.String getAssistantSession() { + return assistantSession; + } + + /** + * Output only. The assistant session to use for the optimization based on this evaluation run. + * Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistantSession}` + * @param assistantSession assistantSession or {@code null} for none + */ + public OptimizationConfig setAssistantSession(java.lang.String assistantSession) { + this.assistantSession = assistantSession; + return this; + } + + /** + * Output only. The error message if the optimization run failed. + * @return value or {@code null} for none + */ + public java.lang.String getErrorMessage() { + return errorMessage; + } + + /** + * Output only. The error message if the optimization run failed. + * @param errorMessage errorMessage or {@code null} for none + */ + public OptimizationConfig setErrorMessage(java.lang.String errorMessage) { + this.errorMessage = errorMessage; + return this; + } + + /** + * Optional. Whether to generate a loss report. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGenerateLossReport() { + return generateLossReport; + } + + /** + * Optional. Whether to generate a loss report. + * @param generateLossReport generateLossReport or {@code null} for none + */ + public OptimizationConfig setGenerateLossReport(java.lang.Boolean generateLossReport) { + this.generateLossReport = generateLossReport; + return this; + } + + /** + * Output only. The generated loss report. + * @return value or {@code null} for none + */ + public java.util.Map getLossReport() { + return lossReport; + } + + /** + * Output only. The generated loss report. + * @param lossReport lossReport or {@code null} for none + */ + public OptimizationConfig setLossReport(java.util.Map lossReport) { + this.lossReport = lossReport; + return this; + } + + /** + * Output only. The summary of the loss report. + * @return value or {@code null} for none + */ + public java.lang.String getReportSummary() { + return reportSummary; + } + + /** + * Output only. The summary of the loss report. + * @param reportSummary reportSummary or {@code null} for none + */ + public OptimizationConfig setReportSummary(java.lang.String reportSummary) { + this.reportSummary = reportSummary; + return this; + } + + /** + * Output only. Whether to suggest a fix for the losses. + * @return value or {@code null} for none + */ + public java.lang.Boolean getShouldSuggestFix() { + return shouldSuggestFix; + } + + /** + * Output only. Whether to suggest a fix for the losses. + * @param shouldSuggestFix shouldSuggestFix or {@code null} for none + */ + public OptimizationConfig setShouldSuggestFix(java.lang.Boolean shouldSuggestFix) { + this.shouldSuggestFix = shouldSuggestFix; + return this; + } + + /** + * Output only. The status of the optimization run. + * @return value or {@code null} for none + */ + public java.lang.String getStatus() { + return status; + } + + /** + * Output only. The status of the optimization run. + * @param status status or {@code null} for none + */ + public OptimizationConfig setStatus(java.lang.String status) { + this.status = status; + return this; + } + + @Override + public OptimizationConfig set(String fieldName, Object value) { + return (OptimizationConfig) super.set(fieldName, value); + } + + @Override + public OptimizationConfig clone() { + return (OptimizationConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OutputAudioConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OutputAudioConfig.java new file mode 100644 index 00000000000..3bd1e5acea8 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/OutputAudioConfig.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.ces.v1beta.model; + +/** + * OutputAudioConfig configures how the CES agent should synthesize outgoing audio responses. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class OutputAudioConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The encoding of the output audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audioEncoding; + + /** + * Required. The sample rate (in Hertz) of the output audio data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer sampleRateHertz; + + /** + * Required. The encoding of the output audio data. + * @return value or {@code null} for none + */ + public java.lang.String getAudioEncoding() { + return audioEncoding; + } + + /** + * Required. The encoding of the output audio data. + * @param audioEncoding audioEncoding or {@code null} for none + */ + public OutputAudioConfig setAudioEncoding(java.lang.String audioEncoding) { + this.audioEncoding = audioEncoding; + return this; + } + + /** + * Required. The sample rate (in Hertz) of the output audio data. + * @return value or {@code null} for none + */ + public java.lang.Integer getSampleRateHertz() { + return sampleRateHertz; + } + + /** + * Required. The sample rate (in Hertz) of the output audio data. + * @param sampleRateHertz sampleRateHertz or {@code null} for none + */ + public OutputAudioConfig setSampleRateHertz(java.lang.Integer sampleRateHertz) { + this.sampleRateHertz = sampleRateHertz; + return this; + } + + @Override + public OutputAudioConfig set(String fieldName, Object value) { + return (OutputAudioConfig) super.set(fieldName, value); + } + + @Override + public OutputAudioConfig clone() { + return (OutputAudioConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PersonaRunConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PersonaRunConfig.java new file mode 100644 index 00000000000..01603ceef87 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PersonaRunConfig.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for running an evaluation for a specific persona. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PersonaRunConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The persona to use for the evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String persona; + + /** + * Optional. The number of tasks to run for the persona. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer taskCount; + + /** + * Optional. The persona to use for the evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` + * @return value or {@code null} for none + */ + public java.lang.String getPersona() { + return persona; + } + + /** + * Optional. The persona to use for the evaluation. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationPersonas/{evaluationPersona}` + * @param persona persona or {@code null} for none + */ + public PersonaRunConfig setPersona(java.lang.String persona) { + this.persona = persona; + return this; + } + + /** + * Optional. The number of tasks to run for the persona. + * @return value or {@code null} for none + */ + public java.lang.Integer getTaskCount() { + return taskCount; + } + + /** + * Optional. The number of tasks to run for the persona. + * @param taskCount taskCount or {@code null} for none + */ + public PersonaRunConfig setTaskCount(java.lang.Integer taskCount) { + this.taskCount = taskCount; + return this; + } + + @Override + public PersonaRunConfig set(String fieldName, Object value) { + return (PersonaRunConfig) super.set(fieldName, value); + } + + @Override + public PersonaRunConfig clone() { + return (PersonaRunConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PythonCodeCondition.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PythonCodeCondition.java new file mode 100644 index 00000000000..d55354ee5eb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PythonCodeCondition.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Python code block to evaluate the condition. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PythonCodeCondition extends com.google.api.client.json.GenericJson { + + /** + * Required. The python code to execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Required. The python code to execute. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Required. The python code to execute. + * @param pythonCode pythonCode or {@code null} for none + */ + public PythonCodeCondition setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public PythonCodeCondition set(String fieldName, Object value) { + return (PythonCodeCondition) super.set(fieldName, value); + } + + @Override + public PythonCodeCondition clone() { + return (PythonCodeCondition) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PythonFunction.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PythonFunction.java new file mode 100644 index 00000000000..4e95cca5c8a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/PythonFunction.java @@ -0,0 +1,121 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A Python function tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class PythonFunction extends com.google.api.client.json.GenericJson { + + /** + * Output only. The description of the Python function, parsed from the python code's docstring. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The name of the Python function to execute. Must match a Python function name defined + * in the python code. Case sensitive. If the name is not provided, the first function defined in + * the python code will be used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The Python code to execute for the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String pythonCode; + + /** + * Output only. The description of the Python function, parsed from the python code's docstring. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. The description of the Python function, parsed from the python code's docstring. + * @param description description or {@code null} for none + */ + public PythonFunction setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The name of the Python function to execute. Must match a Python function name defined + * in the python code. Case sensitive. If the name is not provided, the first function defined in + * the python code will be used. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Optional. The name of the Python function to execute. Must match a Python function name defined + * in the python code. Case sensitive. If the name is not provided, the first function defined in + * the python code will be used. + * @param name name or {@code null} for none + */ + public PythonFunction setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The Python code to execute for the tool. + * @return value or {@code null} for none + */ + public java.lang.String getPythonCode() { + return pythonCode; + } + + /** + * Optional. The Python code to execute for the tool. + * @param pythonCode pythonCode or {@code null} for none + */ + public PythonFunction setPythonCode(java.lang.String pythonCode) { + this.pythonCode = pythonCode; + return this; + } + + @Override + public PythonFunction set(String fieldName, Object value) { + return (PythonFunction) super.set(fieldName, value); + } + + @Override + public PythonFunction clone() { + return (PythonFunction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RedactionConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RedactionConfig.java new file mode 100644 index 00000000000..b7834029f90 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RedactionConfig.java @@ -0,0 +1,130 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration to instruct how sensitive data should be handled. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RedactionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how + * to de-identify content. Format: + * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deidentifyTemplate; + + /** + * Optional. If true, redaction will be applied in various logging scenarios, including + * conversation history, Cloud Logging and audio recording. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableRedaction; + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection + * of sensitive data types. Format: + * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String inspectTemplate; + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how + * to de-identify content. Format: + * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + * @return value or {@code null} for none + */ + public java.lang.String getDeidentifyTemplate() { + return deidentifyTemplate; + } + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) deidentify template name to instruct on how + * to de-identify content. Format: + * `projects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}` + * @param deidentifyTemplate deidentifyTemplate or {@code null} for none + */ + public RedactionConfig setDeidentifyTemplate(java.lang.String deidentifyTemplate) { + this.deidentifyTemplate = deidentifyTemplate; + return this; + } + + /** + * Optional. If true, redaction will be applied in various logging scenarios, including + * conversation history, Cloud Logging and audio recording. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableRedaction() { + return enableRedaction; + } + + /** + * Optional. If true, redaction will be applied in various logging scenarios, including + * conversation history, Cloud Logging and audio recording. + * @param enableRedaction enableRedaction or {@code null} for none + */ + public RedactionConfig setEnableRedaction(java.lang.Boolean enableRedaction) { + this.enableRedaction = enableRedaction; + return this; + } + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection + * of sensitive data types. Format: + * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + * @return value or {@code null} for none + */ + public java.lang.String getInspectTemplate() { + return inspectTemplate; + } + + /** + * Optional. [DLP](https://cloud.google.com/dlp/docs) inspect template name to configure detection + * of sensitive data types. Format: + * `projects/{project}/locations/{location}/inspectTemplates/{inspect_template}` + * @param inspectTemplate inspectTemplate or {@code null} for none + */ + public RedactionConfig setInspectTemplate(java.lang.String inspectTemplate) { + this.inspectTemplate = inspectTemplate; + return this; + } + + @Override + public RedactionConfig set(String fieldName, Object value) { + return (RedactionConfig) super.set(fieldName, value); + } + + @Override + public RedactionConfig clone() { + return (RedactionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RestoreAppVersionRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RestoreAppVersionRequest.java new file mode 100644 index 00000000000..09566bd347e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RestoreAppVersionRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for AgentService.RestoreAppVersion + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RestoreAppVersionRequest extends com.google.api.client.json.GenericJson { + + @Override + public RestoreAppVersionRequest set(String fieldName, Object value) { + return (RestoreAppVersionRequest) super.set(fieldName, value); + } + + @Override + public RestoreAppVersionRequest clone() { + return (RestoreAppVersionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolSchemaRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolSchemaRequest.java new file mode 100644 index 00000000000..ca8f07f3843 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolSchemaRequest.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for ToolService.RetrieveToolSchema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolSchemaRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the tool to retrieve the schema for. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate + * from the toolset. Otherwise, an error will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Optional. The name of the tool to retrieve the schema for. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to retrieve the schema for. Format: + * projects/{project}/locations/{location}/apps/{app}/tools/{tool} + * @param tool tool or {@code null} for none + */ + public RetrieveToolSchemaRequest setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate + * from the toolset. Otherwise, an error will be returned. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate + * from the toolset. Otherwise, an error will be returned. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public RetrieveToolSchemaRequest setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public RetrieveToolSchemaRequest set(String fieldName, Object value) { + return (RetrieveToolSchemaRequest) super.set(fieldName, value); + } + + @Override + public RetrieveToolSchemaRequest clone() { + return (RetrieveToolSchemaRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolSchemaResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolSchemaResponse.java new file mode 100644 index 00000000000..3af38d625a6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolSchemaResponse.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.ces.v1beta.model; + +/** + * Response message for ToolService.RetrieveToolSchema. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolSchemaResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The schema of the tool input parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema inputSchema; + + /** + * Required. The schema of the tool output parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema outputSchema; + + /** + * The name of the tool that the schema is for. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * The toolset tool that the schema is for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Required. The schema of the tool input parameters. + * @return value or {@code null} for none + */ + public Schema getInputSchema() { + return inputSchema; + } + + /** + * Required. The schema of the tool input parameters. + * @param inputSchema inputSchema or {@code null} for none + */ + public RetrieveToolSchemaResponse setInputSchema(Schema inputSchema) { + this.inputSchema = inputSchema; + return this; + } + + /** + * Required. The schema of the tool output parameters. + * @return value or {@code null} for none + */ + public Schema getOutputSchema() { + return outputSchema; + } + + /** + * Required. The schema of the tool output parameters. + * @param outputSchema outputSchema or {@code null} for none + */ + public RetrieveToolSchemaResponse setOutputSchema(Schema outputSchema) { + this.outputSchema = outputSchema; + return this; + } + + /** + * The name of the tool that the schema is for. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * The name of the tool that the schema is for. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public RetrieveToolSchemaResponse setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * The toolset tool that the schema is for. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * The toolset tool that the schema is for. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public RetrieveToolSchemaResponse setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public RetrieveToolSchemaResponse set(String fieldName, Object value) { + return (RetrieveToolSchemaResponse) super.set(fieldName, value); + } + + @Override + public RetrieveToolSchemaResponse clone() { + return (RetrieveToolSchemaResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolsRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolsRequest.java new file mode 100644 index 00000000000..323c6efca60 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolsRequest.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for ToolService.RetrieveTools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolsRequest extends com.google.api.client.json.GenericJson { + + /** + * Optional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the + * toolset will be returned. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolIds; + + /** + * Optional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the + * toolset will be returned. + * @return value or {@code null} for none + */ + public java.util.List getToolIds() { + return toolIds; + } + + /** + * Optional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the + * toolset will be returned. + * @param toolIds toolIds or {@code null} for none + */ + public RetrieveToolsRequest setToolIds(java.util.List toolIds) { + this.toolIds = toolIds; + return this; + } + + @Override + public RetrieveToolsRequest set(String fieldName, Object value) { + return (RetrieveToolsRequest) super.set(fieldName, value); + } + + @Override + public RetrieveToolsRequest clone() { + return (RetrieveToolsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolsResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolsResponse.java new file mode 100644 index 00000000000..a9e76c31c02 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RetrieveToolsResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for ToolService.RetrieveTools. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RetrieveToolsResponse extends com.google.api.client.json.GenericJson { + + /** + * Required. The list of tools that are included in the specified toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List tools; + + /** + * Required. The list of tools that are included in the specified toolset. + * @return value or {@code null} for none + */ + public java.util.List getTools() { + return tools; + } + + /** + * Required. The list of tools that are included in the specified toolset. + * @param tools tools or {@code null} for none + */ + public RetrieveToolsResponse setTools(java.util.List tools) { + this.tools = tools; + return this; + } + + @Override + public RetrieveToolsResponse set(String fieldName, Object value) { + return (RetrieveToolsResponse) super.set(fieldName, value); + } + + @Override + public RetrieveToolsResponse clone() { + return (RetrieveToolsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunEvaluationRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunEvaluationRequest.java new file mode 100644 index 00000000000..67362e9df9b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunEvaluationRequest.java @@ -0,0 +1,364 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request message for EvaluationService.RunEvaluation. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RunEvaluationRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The app to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String app; + + /** + * Optional. The app version to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String appVersion; + + /** + * Optional. The configuration to use for the run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EvaluationConfig config; + + /** + * Optional. The display name of the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. An evaluation dataset to run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String evaluationDataset; + + /** + * Optional. List of evaluations to run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List evaluations; + + /** + * Optional. Whether to generate a latency report for the evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean generateLatencyReport; + + /** + * Optional. The method to run the evaluation if it is a golden evaluation. If not set, default to + * STABLE. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String goldenRunMethod; + + /** + * Optional. Configuration for running the optimization step after the evaluation run. If not set, + * the optimization step will not be run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OptimizationConfig optimizationConfig; + + /** + * Optional. The configuration to use for the run per persona. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List personaRunConfigs; + + static { + // hack to force ProGuard to consider PersonaRunConfig 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(PersonaRunConfig.class); + } + + /** + * Optional. The number of times to run the evaluation. If not set, the default value is 1 per + * golden, and 5 per scenario. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer runCount; + + /** + * Optional. The resource name of the `ScheduledEvaluationRun` that is triggering this evaluation + * run. If this field is set, the `scheduled_evaluation_run` field on the created `EvaluationRun` + * resource will be populated from this value. Format: `projects/{project}/locations/{location}/ap + * ps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String scheduledEvaluationRun; + + /** + * Required. The app to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}` + * @return value or {@code null} for none + */ + public java.lang.String getApp() { + return app; + } + + /** + * Required. The app to evaluate. Format: `projects/{project}/locations/{location}/apps/{app}` + * @param app app or {@code null} for none + */ + public RunEvaluationRequest setApp(java.lang.String app) { + this.app = app; + return this; + } + + /** + * Optional. The app version to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @return value or {@code null} for none + */ + public java.lang.String getAppVersion() { + return appVersion; + } + + /** + * Optional. The app version to evaluate. Format: + * `projects/{project}/locations/{location}/apps/{app}/versions/{version}` + * @param appVersion appVersion or {@code null} for none + */ + public RunEvaluationRequest setAppVersion(java.lang.String appVersion) { + this.appVersion = appVersion; + return this; + } + + /** + * Optional. The configuration to use for the run. + * @return value or {@code null} for none + */ + public EvaluationConfig getConfig() { + return config; + } + + /** + * Optional. The configuration to use for the run. + * @param config config or {@code null} for none + */ + public RunEvaluationRequest setConfig(EvaluationConfig config) { + this.config = config; + return this; + } + + /** + * Optional. The display name of the evaluation run. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the evaluation run. + * @param displayName displayName or {@code null} for none + */ + public RunEvaluationRequest setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. An evaluation dataset to run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @return value or {@code null} for none + */ + public java.lang.String getEvaluationDataset() { + return evaluationDataset; + } + + /** + * Optional. An evaluation dataset to run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationDatasets/{evaluationDataset}` + * @param evaluationDataset evaluationDataset or {@code null} for none + */ + public RunEvaluationRequest setEvaluationDataset(java.lang.String evaluationDataset) { + this.evaluationDataset = evaluationDataset; + return this; + } + + /** + * Optional. List of evaluations to run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @return value or {@code null} for none + */ + public java.util.List getEvaluations() { + return evaluations; + } + + /** + * Optional. List of evaluations to run. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluations/{evaluation}` + * @param evaluations evaluations or {@code null} for none + */ + public RunEvaluationRequest setEvaluations(java.util.List evaluations) { + this.evaluations = evaluations; + return this; + } + + /** + * Optional. Whether to generate a latency report for the evaluation run. + * @return value or {@code null} for none + */ + public java.lang.Boolean getGenerateLatencyReport() { + return generateLatencyReport; + } + + /** + * Optional. Whether to generate a latency report for the evaluation run. + * @param generateLatencyReport generateLatencyReport or {@code null} for none + */ + public RunEvaluationRequest setGenerateLatencyReport(java.lang.Boolean generateLatencyReport) { + this.generateLatencyReport = generateLatencyReport; + return this; + } + + /** + * Optional. The method to run the evaluation if it is a golden evaluation. If not set, default to + * STABLE. + * @return value or {@code null} for none + */ + public java.lang.String getGoldenRunMethod() { + return goldenRunMethod; + } + + /** + * Optional. The method to run the evaluation if it is a golden evaluation. If not set, default to + * STABLE. + * @param goldenRunMethod goldenRunMethod or {@code null} for none + */ + public RunEvaluationRequest setGoldenRunMethod(java.lang.String goldenRunMethod) { + this.goldenRunMethod = goldenRunMethod; + return this; + } + + /** + * Optional. Configuration for running the optimization step after the evaluation run. If not set, + * the optimization step will not be run. + * @return value or {@code null} for none + */ + public OptimizationConfig getOptimizationConfig() { + return optimizationConfig; + } + + /** + * Optional. Configuration for running the optimization step after the evaluation run. If not set, + * the optimization step will not be run. + * @param optimizationConfig optimizationConfig or {@code null} for none + */ + public RunEvaluationRequest setOptimizationConfig(OptimizationConfig optimizationConfig) { + this.optimizationConfig = optimizationConfig; + return this; + } + + /** + * Optional. The configuration to use for the run per persona. + * @return value or {@code null} for none + */ + public java.util.List getPersonaRunConfigs() { + return personaRunConfigs; + } + + /** + * Optional. The configuration to use for the run per persona. + * @param personaRunConfigs personaRunConfigs or {@code null} for none + */ + public RunEvaluationRequest setPersonaRunConfigs(java.util.List personaRunConfigs) { + this.personaRunConfigs = personaRunConfigs; + return this; + } + + /** + * Optional. The number of times to run the evaluation. If not set, the default value is 1 per + * golden, and 5 per scenario. + * @return value or {@code null} for none + */ + public java.lang.Integer getRunCount() { + return runCount; + } + + /** + * Optional. The number of times to run the evaluation. If not set, the default value is 1 per + * golden, and 5 per scenario. + * @param runCount runCount or {@code null} for none + */ + public RunEvaluationRequest setRunCount(java.lang.Integer runCount) { + this.runCount = runCount; + return this; + } + + /** + * Optional. The resource name of the `ScheduledEvaluationRun` that is triggering this evaluation + * run. If this field is set, the `scheduled_evaluation_run` field on the created `EvaluationRun` + * resource will be populated from this value. Format: `projects/{project}/locations/{location}/ap + * ps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}` + * @return value or {@code null} for none + */ + public java.lang.String getScheduledEvaluationRun() { + return scheduledEvaluationRun; + } + + /** + * Optional. The resource name of the `ScheduledEvaluationRun` that is triggering this evaluation + * run. If this field is set, the `scheduled_evaluation_run` field on the created `EvaluationRun` + * resource will be populated from this value. Format: `projects/{project}/locations/{location}/ap + * ps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}` + * @param scheduledEvaluationRun scheduledEvaluationRun or {@code null} for none + */ + public RunEvaluationRequest setScheduledEvaluationRun(java.lang.String scheduledEvaluationRun) { + this.scheduledEvaluationRun = scheduledEvaluationRun; + return this; + } + + @Override + public RunEvaluationRequest set(String fieldName, Object value) { + return (RunEvaluationRequest) super.set(fieldName, value); + } + + @Override + public RunEvaluationRequest clone() { + return (RunEvaluationRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunSessionRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunSessionRequest.java new file mode 100644 index 00000000000..f4d2412e1f4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunSessionRequest.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.ces.v1beta.model; + +/** + * Request message for SessionService.RunSession. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RunSessionRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The configuration for the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionConfig config; + + /** + * Required. Inputs for the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List inputs; + + /** + * Required. The configuration for the session. + * @return value or {@code null} for none + */ + public SessionConfig getConfig() { + return config; + } + + /** + * Required. The configuration for the session. + * @param config config or {@code null} for none + */ + public RunSessionRequest setConfig(SessionConfig config) { + this.config = config; + return this; + } + + /** + * Required. Inputs for the session. + * @return value or {@code null} for none + */ + public java.util.List getInputs() { + return inputs; + } + + /** + * Required. Inputs for the session. + * @param inputs inputs or {@code null} for none + */ + public RunSessionRequest setInputs(java.util.List inputs) { + this.inputs = inputs; + return this; + } + + @Override + public RunSessionRequest set(String fieldName, Object value) { + return (RunSessionRequest) super.set(fieldName, value); + } + + @Override + public RunSessionRequest clone() { + return (RunSessionRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunSessionResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunSessionResponse.java new file mode 100644 index 00000000000..72a233465fb --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/RunSessionResponse.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for SessionService.RunSession. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RunSessionResponse extends com.google.api.client.json.GenericJson { + + /** + * Outputs for the session. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List outputs; + + /** + * Outputs for the session. + * @return value or {@code null} for none + */ + public java.util.List getOutputs() { + return outputs; + } + + /** + * Outputs for the session. + * @param outputs outputs or {@code null} for none + */ + public RunSessionResponse setOutputs(java.util.List outputs) { + this.outputs = outputs; + return this; + } + + @Override + public RunSessionResponse set(String fieldName, Object value) { + return (RunSessionResponse) super.set(fieldName, value); + } + + @Override + public RunSessionResponse clone() { + return (RunSessionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ScheduledEvaluationRun.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ScheduledEvaluationRun.java new file mode 100644 index 00000000000..bdaa5ad9f05 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ScheduledEvaluationRun.java @@ -0,0 +1,388 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a scheduled evaluation run 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ScheduledEvaluationRun extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether this config is active + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean active; + + /** + * Output only. Timestamp when the scheduled evaluation run was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Output only. The user who created the scheduled evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String createdBy; + + /** + * Optional. User-defined description of the scheduled evaluation run. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. User-defined display name of the scheduled evaluation run config. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Output only. The last successful EvaluationRun of this scheduled execution. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastCompletedRun; + + /** + * Output only. The user who last updated the evaluation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String lastUpdatedBy; + + /** + * Identifier. The unique identifier of the scheduled evaluation run config. Format: projects/{pro + * jectId}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The next time this is scheduled to execute + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String nextScheduledExecutionTime; + + /** + * Required. The RunEvaluationRequest to schedule + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RunEvaluationRequest request; + + /** + * Required. Configuration for the timing and frequency with which to execute the evaluations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ScheduledEvaluationRunSchedulingConfig schedulingConfig; + + /** + * Output only. The total number of times this run has been executed + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer totalExecutions; + + /** + * Output only. Timestamp when the evaluation was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. Whether this config is active + * @return value or {@code null} for none + */ + public java.lang.Boolean getActive() { + return active; + } + + /** + * Optional. Whether this config is active + * @param active active or {@code null} for none + */ + public ScheduledEvaluationRun setActive(java.lang.Boolean active) { + this.active = active; + return this; + } + + /** + * Output only. Timestamp when the scheduled evaluation run was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the scheduled evaluation run was created. + * @param createTime createTime or {@code null} for none + */ + public ScheduledEvaluationRun setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Output only. The user who created the scheduled evaluation run. + * @return value or {@code null} for none + */ + public java.lang.String getCreatedBy() { + return createdBy; + } + + /** + * Output only. The user who created the scheduled evaluation run. + * @param createdBy createdBy or {@code null} for none + */ + public ScheduledEvaluationRun setCreatedBy(java.lang.String createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + * Optional. User-defined description of the scheduled evaluation run. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. User-defined description of the scheduled evaluation run. + * @param description description or {@code null} for none + */ + public ScheduledEvaluationRun setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. User-defined display name of the scheduled evaluation run config. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. User-defined display name of the scheduled evaluation run config. + * @param displayName displayName or {@code null} for none + */ + public ScheduledEvaluationRun setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Output only. Etag used to ensure the object hasn't changed during a read-modify-write + * operation. If the etag is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public ScheduledEvaluationRun setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Output only. The last successful EvaluationRun of this scheduled execution. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * @return value or {@code null} for none + */ + public java.lang.String getLastCompletedRun() { + return lastCompletedRun; + } + + /** + * Output only. The last successful EvaluationRun of this scheduled execution. Format: + * `projects/{project}/locations/{location}/apps/{app}/evaluationRuns/{evaluationRun}` + * @param lastCompletedRun lastCompletedRun or {@code null} for none + */ + public ScheduledEvaluationRun setLastCompletedRun(java.lang.String lastCompletedRun) { + this.lastCompletedRun = lastCompletedRun; + return this; + } + + /** + * Output only. The user who last updated the evaluation. + * @return value or {@code null} for none + */ + public java.lang.String getLastUpdatedBy() { + return lastUpdatedBy; + } + + /** + * Output only. The user who last updated the evaluation. + * @param lastUpdatedBy lastUpdatedBy or {@code null} for none + */ + public ScheduledEvaluationRun setLastUpdatedBy(java.lang.String lastUpdatedBy) { + this.lastUpdatedBy = lastUpdatedBy; + return this; + } + + /** + * Identifier. The unique identifier of the scheduled evaluation run config. Format: projects/{pro + * jectId}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the scheduled evaluation run config. Format: projects/{pro + * jectId}/locations/{locationId}/apps/{appId}/scheduledEvaluationRuns/{scheduledEvaluationRunId} + * @param name name or {@code null} for none + */ + public ScheduledEvaluationRun setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The next time this is scheduled to execute + * @return value or {@code null} for none + */ + public String getNextScheduledExecutionTime() { + return nextScheduledExecutionTime; + } + + /** + * Output only. The next time this is scheduled to execute + * @param nextScheduledExecutionTime nextScheduledExecutionTime or {@code null} for none + */ + public ScheduledEvaluationRun setNextScheduledExecutionTime(String nextScheduledExecutionTime) { + this.nextScheduledExecutionTime = nextScheduledExecutionTime; + return this; + } + + /** + * Required. The RunEvaluationRequest to schedule + * @return value or {@code null} for none + */ + public RunEvaluationRequest getRequest() { + return request; + } + + /** + * Required. The RunEvaluationRequest to schedule + * @param request request or {@code null} for none + */ + public ScheduledEvaluationRun setRequest(RunEvaluationRequest request) { + this.request = request; + return this; + } + + /** + * Required. Configuration for the timing and frequency with which to execute the evaluations. + * @return value or {@code null} for none + */ + public ScheduledEvaluationRunSchedulingConfig getSchedulingConfig() { + return schedulingConfig; + } + + /** + * Required. Configuration for the timing and frequency with which to execute the evaluations. + * @param schedulingConfig schedulingConfig or {@code null} for none + */ + public ScheduledEvaluationRun setSchedulingConfig(ScheduledEvaluationRunSchedulingConfig schedulingConfig) { + this.schedulingConfig = schedulingConfig; + return this; + } + + /** + * Output only. The total number of times this run has been executed + * @return value or {@code null} for none + */ + public java.lang.Integer getTotalExecutions() { + return totalExecutions; + } + + /** + * Output only. The total number of times this run has been executed + * @param totalExecutions totalExecutions or {@code null} for none + */ + public ScheduledEvaluationRun setTotalExecutions(java.lang.Integer totalExecutions) { + this.totalExecutions = totalExecutions; + return this; + } + + /** + * Output only. Timestamp when the evaluation was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the evaluation was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public ScheduledEvaluationRun setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public ScheduledEvaluationRun set(String fieldName, Object value) { + return (ScheduledEvaluationRun) super.set(fieldName, value); + } + + @Override + public ScheduledEvaluationRun clone() { + return (ScheduledEvaluationRun) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ScheduledEvaluationRunSchedulingConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ScheduledEvaluationRunSchedulingConfig.java new file mode 100644 index 00000000000..1809475a0cd --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ScheduledEvaluationRunSchedulingConfig.java @@ -0,0 +1,118 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Eval scheduling configuration details + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ScheduledEvaluationRunSchedulingConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly + * frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List daysOfWeek; + + /** + * Required. The frequency with which to run the eval + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String frequency; + + /** + * Required. Timestamp when the eval should start. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly + * frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday. + * @return value or {@code null} for none + */ + public java.util.List getDaysOfWeek() { + return daysOfWeek; + } + + /** + * Optional. The days of the week to run the eval. Applicable only for Weekly and Biweekly + * frequencies. 1 is Monday, 2 is Tuesday, ..., 7 is Sunday. + * @param daysOfWeek daysOfWeek or {@code null} for none + */ + public ScheduledEvaluationRunSchedulingConfig setDaysOfWeek(java.util.List daysOfWeek) { + this.daysOfWeek = daysOfWeek; + return this; + } + + /** + * Required. The frequency with which to run the eval + * @return value or {@code null} for none + */ + public java.lang.String getFrequency() { + return frequency; + } + + /** + * Required. The frequency with which to run the eval + * @param frequency frequency or {@code null} for none + */ + public ScheduledEvaluationRunSchedulingConfig setFrequency(java.lang.String frequency) { + this.frequency = frequency; + return this; + } + + /** + * Required. Timestamp when the eval should start. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Required. Timestamp when the eval should start. + * @param startTime startTime or {@code null} for none + */ + public ScheduledEvaluationRunSchedulingConfig setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public ScheduledEvaluationRunSchedulingConfig set(String fieldName, Object value) { + return (ScheduledEvaluationRunSchedulingConfig) super.set(fieldName, value); + } + + @Override + public ScheduledEvaluationRunSchedulingConfig clone() { + return (ScheduledEvaluationRunSchedulingConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Schema.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Schema.java new file mode 100644 index 00000000000..333283aa4b4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Schema.java @@ -0,0 +1,523 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a select subset of an OpenAPI 3.0 schema object. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Schema extends com.google.api.client.json.GenericJson { + + /** + * Optional. Can either be a boolean or an object, controls the presence of additional properties. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema additionalProperties; + + /** + * Optional. The value should be validated against any (one or more) of the subschemas in the + * list. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List anyOf; + + /** + * Optional. Default value of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("default") + private java.lang.Object default__; + + /** + * Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map defs; + + /** + * Optional. The description of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. Possible values of the element of primitive type with enum format. Examples: 1. We + * can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. + * We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key("enum") + private java.util.List enum__; + + /** + * Optional. Schema of the elements of Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema items; + + /** + * Optional. Maximum number of the elements for Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long maxItems; + + /** + * Optional. Maximum value for Type.INTEGER and Type.NUMBER. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double maximum; + + /** + * Optional. Minimum number of the elements for Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long minItems; + + /** + * Optional. Minimum value for Type.INTEGER and Type.NUMBER. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double minimum; + + /** + * Optional. Indicates if the value may be null. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean nullable; + + /** + * Optional. Schemas of initial elements of Type.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List prefixItems; + + /** + * Optional. Properties of Type.OBJECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map properties; + + /** + * Optional. Allows indirect references between schema nodes. The value should be a valid + * reference to a child of the root `defs`. For example, the following schema defines a reference + * to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: + * object properties: name: type: string The value of the "pet" property is a reference to the + * schema node named "Pet". See details in https://json-schema.org/understanding-json- + * schema/structuring. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String ref; + + /** + * Optional. Required properties of Type.OBJECT. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List required; + + /** + * Optional. The title of the schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Required. The type of the data. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean uniqueItems; + + /** + * Optional. Can either be a boolean or an object, controls the presence of additional properties. + * @return value or {@code null} for none + */ + public Schema getAdditionalProperties() { + return additionalProperties; + } + + /** + * Optional. Can either be a boolean or an object, controls the presence of additional properties. + * @param additionalProperties additionalProperties or {@code null} for none + */ + public Schema setAdditionalProperties(Schema additionalProperties) { + this.additionalProperties = additionalProperties; + return this; + } + + /** + * Optional. The value should be validated against any (one or more) of the subschemas in the + * list. + * @return value or {@code null} for none + */ + public java.util.List getAnyOf() { + return anyOf; + } + + /** + * Optional. The value should be validated against any (one or more) of the subschemas in the + * list. + * @param anyOf anyOf or {@code null} for none + */ + public Schema setAnyOf(java.util.List anyOf) { + this.anyOf = anyOf; + return this; + } + + /** + * Optional. Default value of the data. + * @return value or {@code null} for none + */ + public java.lang.Object getDefault() { + return default__; + } + + /** + * Optional. Default value of the data. + * @param default__ default__ or {@code null} for none + */ + public Schema setDefault(java.lang.Object default__) { + this.default__ = default__; + return this; + } + + /** + * Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema. + * @return value or {@code null} for none + */ + public java.util.Map getDefs() { + return defs; + } + + /** + * Optional. A map of definitions for use by `ref`. Only allowed at the root of the schema. + * @param defs defs or {@code null} for none + */ + public Schema setDefs(java.util.Map defs) { + this.defs = defs; + return this; + } + + /** + * Optional. The description of the data. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the data. + * @param description description or {@code null} for none + */ + public Schema setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. Possible values of the element of primitive type with enum format. Examples: 1. We + * can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. + * We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} + * @return value or {@code null} for none + */ + public java.util.List getEnum() { + return enum__; + } + + /** + * Optional. Possible values of the element of primitive type with enum format. Examples: 1. We + * can define direction as : {type:STRING, format:enum, enum:["EAST", NORTH", "SOUTH", "WEST"]} 2. + * We can define apartment number as : {type:INTEGER, format:enum, enum:["101", "201", "301"]} + * @param enum__ enum__ or {@code null} for none + */ + public Schema setEnum(java.util.List enum__) { + this.enum__ = enum__; + return this; + } + + /** + * Optional. Schema of the elements of Type.ARRAY. + * @return value or {@code null} for none + */ + public Schema getItems() { + return items; + } + + /** + * Optional. Schema of the elements of Type.ARRAY. + * @param items items or {@code null} for none + */ + public Schema setItems(Schema items) { + this.items = items; + return this; + } + + /** + * Optional. Maximum number of the elements for Type.ARRAY. + * @return value or {@code null} for none + */ + public java.lang.Long getMaxItems() { + return maxItems; + } + + /** + * Optional. Maximum number of the elements for Type.ARRAY. + * @param maxItems maxItems or {@code null} for none + */ + public Schema setMaxItems(java.lang.Long maxItems) { + this.maxItems = maxItems; + return this; + } + + /** + * Optional. Maximum value for Type.INTEGER and Type.NUMBER. + * @return value or {@code null} for none + */ + public java.lang.Double getMaximum() { + return maximum; + } + + /** + * Optional. Maximum value for Type.INTEGER and Type.NUMBER. + * @param maximum maximum or {@code null} for none + */ + public Schema setMaximum(java.lang.Double maximum) { + this.maximum = maximum; + return this; + } + + /** + * Optional. Minimum number of the elements for Type.ARRAY. + * @return value or {@code null} for none + */ + public java.lang.Long getMinItems() { + return minItems; + } + + /** + * Optional. Minimum number of the elements for Type.ARRAY. + * @param minItems minItems or {@code null} for none + */ + public Schema setMinItems(java.lang.Long minItems) { + this.minItems = minItems; + return this; + } + + /** + * Optional. Minimum value for Type.INTEGER and Type.NUMBER. + * @return value or {@code null} for none + */ + public java.lang.Double getMinimum() { + return minimum; + } + + /** + * Optional. Minimum value for Type.INTEGER and Type.NUMBER. + * @param minimum minimum or {@code null} for none + */ + public Schema setMinimum(java.lang.Double minimum) { + this.minimum = minimum; + return this; + } + + /** + * Optional. Indicates if the value may be null. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNullable() { + return nullable; + } + + /** + * Optional. Indicates if the value may be null. + * @param nullable nullable or {@code null} for none + */ + public Schema setNullable(java.lang.Boolean nullable) { + this.nullable = nullable; + return this; + } + + /** + * Optional. Schemas of initial elements of Type.ARRAY. + * @return value or {@code null} for none + */ + public java.util.List getPrefixItems() { + return prefixItems; + } + + /** + * Optional. Schemas of initial elements of Type.ARRAY. + * @param prefixItems prefixItems or {@code null} for none + */ + public Schema setPrefixItems(java.util.List prefixItems) { + this.prefixItems = prefixItems; + return this; + } + + /** + * Optional. Properties of Type.OBJECT. + * @return value or {@code null} for none + */ + public java.util.Map getProperties() { + return properties; + } + + /** + * Optional. Properties of Type.OBJECT. + * @param properties properties or {@code null} for none + */ + public Schema setProperties(java.util.Map properties) { + this.properties = properties; + return this; + } + + /** + * Optional. Allows indirect references between schema nodes. The value should be a valid + * reference to a child of the root `defs`. For example, the following schema defines a reference + * to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: + * object properties: name: type: string The value of the "pet" property is a reference to the + * schema node named "Pet". See details in https://json-schema.org/understanding-json- + * schema/structuring. + * @return value or {@code null} for none + */ + public java.lang.String getRef() { + return ref; + } + + /** + * Optional. Allows indirect references between schema nodes. The value should be a valid + * reference to a child of the root `defs`. For example, the following schema defines a reference + * to a schema node named "Pet": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: + * object properties: name: type: string The value of the "pet" property is a reference to the + * schema node named "Pet". See details in https://json-schema.org/understanding-json- + * schema/structuring. + * @param ref ref or {@code null} for none + */ + public Schema setRef(java.lang.String ref) { + this.ref = ref; + return this; + } + + /** + * Optional. Required properties of Type.OBJECT. + * @return value or {@code null} for none + */ + public java.util.List getRequired() { + return required; + } + + /** + * Optional. Required properties of Type.OBJECT. + * @param required required or {@code null} for none + */ + public Schema setRequired(java.util.List required) { + this.required = required; + return this; + } + + /** + * Optional. The title of the schema. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Optional. The title of the schema. + * @param title title or {@code null} for none + */ + public Schema setTitle(java.lang.String title) { + this.title = title; + return this; + } + + /** + * Required. The type of the data. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The type of the data. + * @param type type or {@code null} for none + */ + public Schema setType(java.lang.String type) { + this.type = type; + return this; + } + + /** + * Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY. + * @return value or {@code null} for none + */ + public java.lang.Boolean getUniqueItems() { + return uniqueItems; + } + + /** + * Optional. Indicate the items in the array must be unique. Only applies to TYPE.ARRAY. + * @param uniqueItems uniqueItems or {@code null} for none + */ + public Schema setUniqueItems(java.lang.Boolean uniqueItems) { + this.uniqueItems = uniqueItems; + return this; + } + + @Override + public Schema set(String fieldName, Object value) { + return (Schema) super.set(fieldName, value); + } + + @Override + public Schema clone() { + return (Schema) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceAccountAuthConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceAccountAuthConfig.java new file mode 100644 index 00000000000..69f400e6ebc --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceAccountAuthConfig.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configurations for authentication using a custom service account. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceAccountAuthConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The OAuth scopes to grant. If not specified, the default scope + * `https://www.googleapis.com/auth/cloud-platform` is used. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List scopes; + + /** + * Required. The email address of the service account used for authentication. CES uses this + * service account to exchange an access token and the access token is then sent in the + * `Authorization` header of the request. The service account must have the + * `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String serviceAccount; + + /** + * Optional. The OAuth scopes to grant. If not specified, the default scope + * `https://www.googleapis.com/auth/cloud-platform` is used. + * @return value or {@code null} for none + */ + public java.util.List getScopes() { + return scopes; + } + + /** + * Optional. The OAuth scopes to grant. If not specified, the default scope + * `https://www.googleapis.com/auth/cloud-platform` is used. + * @param scopes scopes or {@code null} for none + */ + public ServiceAccountAuthConfig setScopes(java.util.List scopes) { + this.scopes = scopes; + return this; + } + + /** + * Required. The email address of the service account used for authentication. CES uses this + * service account to exchange an access token and the access token is then sent in the + * `Authorization` header of the request. The service account must have the + * `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @return value or {@code null} for none + */ + public java.lang.String getServiceAccount() { + return serviceAccount; + } + + /** + * Required. The email address of the service account used for authentication. CES uses this + * service account to exchange an access token and the access token is then sent in the + * `Authorization` header of the request. The service account must have the + * `roles/iam.serviceAccountTokenCreator` role granted to the CES service agent `service-@gcp-sa- + * ces.iam.gserviceaccount.com`. + * @param serviceAccount serviceAccount or {@code null} for none + */ + public ServiceAccountAuthConfig setServiceAccount(java.lang.String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + + @Override + public ServiceAccountAuthConfig set(String fieldName, Object value) { + return (ServiceAccountAuthConfig) super.set(fieldName, value); + } + + @Override + public ServiceAccountAuthConfig clone() { + return (ServiceAccountAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceAgentIdTokenAuthConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceAgentIdTokenAuthConfig.java new file mode 100644 index 00000000000..c38f4368879 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceAgentIdTokenAuthConfig.java @@ -0,0 +1,44 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configurations for authentication with [ID + * token](https://cloud.google.com/docs/authentication/token-types#id) generated from service agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceAgentIdTokenAuthConfig extends com.google.api.client.json.GenericJson { + + @Override + public ServiceAgentIdTokenAuthConfig set(String fieldName, Object value) { + return (ServiceAgentIdTokenAuthConfig) super.set(fieldName, value); + } + + @Override + public ServiceAgentIdTokenAuthConfig clone() { + return (ServiceAgentIdTokenAuthConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceDirectoryConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceDirectoryConfig.java new file mode 100644 index 00000000000..17d11cebdb6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ServiceDirectoryConfig.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.ces.v1beta.model; + +/** + * Configuration for tools using Service Directory. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ServiceDirectoryConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. + * Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + * Location of the service directory must be the same as the location of the app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String service; + + /** + * Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. + * Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + * Location of the service directory must be the same as the location of the app. + * @return value or {@code null} for none + */ + public java.lang.String getService() { + return service; + } + + /** + * Required. The name of [Service Directory](https://cloud.google.com/service-directory) service. + * Format: `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`. + * Location of the service directory must be the same as the location of the app. + * @param service service or {@code null} for none + */ + public ServiceDirectoryConfig setService(java.lang.String service) { + this.service = service; + return this; + } + + @Override + public ServiceDirectoryConfig set(String fieldName, Object value) { + return (ServiceDirectoryConfig) super.set(fieldName, value); + } + + @Override + public ServiceDirectoryConfig clone() { + return (ServiceDirectoryConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java new file mode 100644 index 00000000000..cbcf218e5f3 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfig.java @@ -0,0 +1,250 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The configuration for the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The deployment of the app to use for the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String deployment; + + /** + * Optional. The entry agent to handle the session. If not specified, the session will be handled + * by the root agent of the app. Format: `projects/{project}/locations/{location}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String entryAgent; + + /** + * Optional. The historical context of the session, including user inputs, agent responses, and + * other messages. Typically, CES agent would manage session automatically so client doesn't need + * to explicitly populate this field. However, client can optionally override the historical + * contexts to force the session start from certain state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List historicalContexts; + + static { + // hack to force ProGuard to consider Message 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(Message.class); + } + + /** + * Optional. Configuration for processing the input audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private InputAudioConfig inputAudioConfig; + + /** + * Optional. Configuration for generating the output audio. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OutputAudioConfig outputAudioConfig; + + /** + * Optional. [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cl + * oud.dialogflow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionConfigRemoteDialogflowQueryParameters remoteDialogflowQueryParameters; + + /** + * Optional. The time zone of the user. If provided, the agent will use the time zone for date and + * time related variables. Otherwise, the agent will use the time zone specified in the + * App.time_zone_settings. The format is the IANA Time Zone Database time zone, e.g. + * "America/Los_Angeles". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. The deployment of the app to use for the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @return value or {@code null} for none + */ + public java.lang.String getDeployment() { + return deployment; + } + + /** + * Optional. The deployment of the app to use for the session. Format: + * `projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}` + * @param deployment deployment or {@code null} for none + */ + public SessionConfig setDeployment(java.lang.String deployment) { + this.deployment = deployment; + return this; + } + + /** + * Optional. The entry agent to handle the session. If not specified, the session will be handled + * by the root agent of the app. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getEntryAgent() { + return entryAgent; + } + + /** + * Optional. The entry agent to handle the session. If not specified, the session will be handled + * by the root agent of the app. Format: `projects/{project}/locations/{location}/agents/{agent}` + * @param entryAgent entryAgent or {@code null} for none + */ + public SessionConfig setEntryAgent(java.lang.String entryAgent) { + this.entryAgent = entryAgent; + return this; + } + + /** + * Optional. The historical context of the session, including user inputs, agent responses, and + * other messages. Typically, CES agent would manage session automatically so client doesn't need + * to explicitly populate this field. However, client can optionally override the historical + * contexts to force the session start from certain state. + * @return value or {@code null} for none + */ + public java.util.List getHistoricalContexts() { + return historicalContexts; + } + + /** + * Optional. The historical context of the session, including user inputs, agent responses, and + * other messages. Typically, CES agent would manage session automatically so client doesn't need + * to explicitly populate this field. However, client can optionally override the historical + * contexts to force the session start from certain state. + * @param historicalContexts historicalContexts or {@code null} for none + */ + public SessionConfig setHistoricalContexts(java.util.List historicalContexts) { + this.historicalContexts = historicalContexts; + return this; + } + + /** + * Optional. Configuration for processing the input audio. + * @return value or {@code null} for none + */ + public InputAudioConfig getInputAudioConfig() { + return inputAudioConfig; + } + + /** + * Optional. Configuration for processing the input audio. + * @param inputAudioConfig inputAudioConfig or {@code null} for none + */ + public SessionConfig setInputAudioConfig(InputAudioConfig inputAudioConfig) { + this.inputAudioConfig = inputAudioConfig; + return this; + } + + /** + * Optional. Configuration for generating the output audio. + * @return value or {@code null} for none + */ + public OutputAudioConfig getOutputAudioConfig() { + return outputAudioConfig; + } + + /** + * Optional. Configuration for generating the output audio. + * @param outputAudioConfig outputAudioConfig or {@code null} for none + */ + public SessionConfig setOutputAudioConfig(OutputAudioConfig outputAudioConfig) { + this.outputAudioConfig = outputAudioConfig; + return this; + } + + /** + * Optional. [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cl + * oud.dialogflow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * @return value or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters getRemoteDialogflowQueryParameters() { + return remoteDialogflowQueryParameters; + } + + /** + * Optional. [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cl + * oud.dialogflow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * @param remoteDialogflowQueryParameters remoteDialogflowQueryParameters or {@code null} for none + */ + public SessionConfig setRemoteDialogflowQueryParameters(SessionConfigRemoteDialogflowQueryParameters remoteDialogflowQueryParameters) { + this.remoteDialogflowQueryParameters = remoteDialogflowQueryParameters; + return this; + } + + /** + * Optional. The time zone of the user. If provided, the agent will use the time zone for date and + * time related variables. Otherwise, the agent will use the time zone specified in the + * App.time_zone_settings. The format is the IANA Time Zone Database time zone, e.g. + * "America/Los_Angeles". + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. The time zone of the user. If provided, the agent will use the time zone for date and + * time related variables. Otherwise, the agent will use the time zone specified in the + * App.time_zone_settings. The format is the IANA Time Zone Database time zone, e.g. + * "America/Los_Angeles". + * @param timeZone timeZone or {@code null} for none + */ + public SessionConfig setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public SessionConfig set(String fieldName, Object value) { + return (SessionConfig) super.set(fieldName, value); + } + + @Override + public SessionConfig clone() { + return (SessionConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfigRemoteDialogflowQueryParameters.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfigRemoteDialogflowQueryParameters.java new file mode 100644 index 00000000000..a886eec52fa --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionConfigRemoteDialogflowQueryParameters.java @@ -0,0 +1,127 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * [QueryParameters](https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogfl + * ow.cx.v3#queryparameters) to send to the remote + * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents) + * agent when the session control is transferred to the remote agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionConfigRemoteDialogflowQueryParameters extends com.google.api.client.json.GenericJson { + + /** + * Optional. The end user metadata to be sent in [QueryParameters](https://cloud.google.com/dialog + * flow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map endUserMetadata; + + /** + * Optional. The payload to be sent in [QueryParameters](https://cloud.google.com/dialogflow/cx/do + * cs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map payload; + + /** + * Optional. The HTTP headers to be sent as webhook_headers in [QueryParameters](https://cloud.goo + * gle.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map webhookHeaders; + + /** + * Optional. The end user metadata to be sent in [QueryParameters](https://cloud.google.com/dialog + * flow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @return value or {@code null} for none + */ + public java.util.Map getEndUserMetadata() { + return endUserMetadata; + } + + /** + * Optional. The end user metadata to be sent in [QueryParameters](https://cloud.google.com/dialog + * flow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @param endUserMetadata endUserMetadata or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters setEndUserMetadata(java.util.Map endUserMetadata) { + this.endUserMetadata = endUserMetadata; + return this; + } + + /** + * Optional. The payload to be sent in [QueryParameters](https://cloud.google.com/dialogflow/cx/do + * cs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @return value or {@code null} for none + */ + public java.util.Map getPayload() { + return payload; + } + + /** + * Optional. The payload to be sent in [QueryParameters](https://cloud.google.com/dialogflow/cx/do + * cs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @param payload payload or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters setPayload(java.util.Map payload) { + this.payload = payload; + return this; + } + + /** + * Optional. The HTTP headers to be sent as webhook_headers in [QueryParameters](https://cloud.goo + * gle.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @return value or {@code null} for none + */ + public java.util.Map getWebhookHeaders() { + return webhookHeaders; + } + + /** + * Optional. The HTTP headers to be sent as webhook_headers in [QueryParameters](https://cloud.goo + * gle.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters). + * @param webhookHeaders webhookHeaders or {@code null} for none + */ + public SessionConfigRemoteDialogflowQueryParameters setWebhookHeaders(java.util.Map webhookHeaders) { + this.webhookHeaders = webhookHeaders; + return this; + } + + @Override + public SessionConfigRemoteDialogflowQueryParameters set(String fieldName, Object value) { + return (SessionConfigRemoteDialogflowQueryParameters) super.set(fieldName, value); + } + + @Override + public SessionConfigRemoteDialogflowQueryParameters clone() { + return (SessionConfigRemoteDialogflowQueryParameters) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionInput.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionInput.java new file mode 100644 index 00000000000..716620ab045 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionInput.java @@ -0,0 +1,302 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Input for the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionInput extends com.google.api.client.json.GenericJson { + + /** + * Optional. Audio data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audio; + + /** + * Optional. Blob data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Blob blob; + + /** + * Optional. DTMF digits from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String dtmf; + + /** + * Optional. Event input. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Event event; + + /** + * Optional. Image data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Image image; + + /** + * Optional. Text data from the end user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Execution results for the tool calls from the client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolResponses toolResponses; + + /** + * Optional. Contextual variables for the session, keyed by name. Only variables declared in the + * app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow + * agent as additional session parameters. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map variables; + + /** + * Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi + * streaming session. When `true`, the agent will defer processing until a subsequent message with + * `will_continue` set to `false` is received. Note: This flag has no effect on audio and DTMF + * inputs, which are always processed in real-time. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean willContinue; + + /** + * Optional. Audio data from the end user. + * @see #decodeAudio() + * @return value or {@code null} for none + */ + public java.lang.String getAudio() { + return audio; + } + + /** + * Optional. Audio data from the end user. + * @see #getAudio() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAudio() { + return com.google.api.client.util.Base64.decodeBase64(audio); + } + + /** + * Optional. Audio data from the end user. + * @see #encodeAudio() + * @param audio audio or {@code null} for none + */ + public SessionInput setAudio(java.lang.String audio) { + this.audio = audio; + return this; + } + + /** + * Optional. Audio data from the end user. + * @see #setAudio() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SessionInput encodeAudio(byte[] audio) { + this.audio = com.google.api.client.util.Base64.encodeBase64URLSafeString(audio); + return this; + } + + /** + * Optional. Blob data from the end user. + * @return value or {@code null} for none + */ + public Blob getBlob() { + return blob; + } + + /** + * Optional. Blob data from the end user. + * @param blob blob or {@code null} for none + */ + public SessionInput setBlob(Blob blob) { + this.blob = blob; + return this; + } + + /** + * Optional. DTMF digits from the end user. + * @return value or {@code null} for none + */ + public java.lang.String getDtmf() { + return dtmf; + } + + /** + * Optional. DTMF digits from the end user. + * @param dtmf dtmf or {@code null} for none + */ + public SessionInput setDtmf(java.lang.String dtmf) { + this.dtmf = dtmf; + return this; + } + + /** + * Optional. Event input. + * @return value or {@code null} for none + */ + public Event getEvent() { + return event; + } + + /** + * Optional. Event input. + * @param event event or {@code null} for none + */ + public SessionInput setEvent(Event event) { + this.event = event; + return this; + } + + /** + * Optional. Image data from the end user. + * @return value or {@code null} for none + */ + public Image getImage() { + return image; + } + + /** + * Optional. Image data from the end user. + * @param image image or {@code null} for none + */ + public SessionInput setImage(Image image) { + this.image = image; + return this; + } + + /** + * Optional. Text data from the end user. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Optional. Text data from the end user. + * @param text text or {@code null} for none + */ + public SessionInput setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Optional. Execution results for the tool calls from the client. + * @return value or {@code null} for none + */ + public ToolResponses getToolResponses() { + return toolResponses; + } + + /** + * Optional. Execution results for the tool calls from the client. + * @param toolResponses toolResponses or {@code null} for none + */ + public SessionInput setToolResponses(ToolResponses toolResponses) { + this.toolResponses = toolResponses; + return this; + } + + /** + * Optional. Contextual variables for the session, keyed by name. Only variables declared in the + * app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow + * agent as additional session parameters. + * @return value or {@code null} for none + */ + public java.util.Map getVariables() { + return variables; + } + + /** + * Optional. Contextual variables for the session, keyed by name. Only variables declared in the + * app will be used by the CES agent. Unrecognized variables will still be sent to the Dialogflow + * agent as additional session parameters. + * @param variables variables or {@code null} for none + */ + public SessionInput setVariables(java.util.Map variables) { + this.variables = variables; + return this; + } + + /** + * Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi + * streaming session. When `true`, the agent will defer processing until a subsequent message with + * `will_continue` set to `false` is received. Note: This flag has no effect on audio and DTMF + * inputs, which are always processed in real-time. + * @return value or {@code null} for none + */ + public java.lang.Boolean getWillContinue() { + return willContinue; + } + + /** + * Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi + * streaming session. When `true`, the agent will defer processing until a subsequent message with + * `will_continue` set to `false` is received. Note: This flag has no effect on audio and DTMF + * inputs, which are always processed in real-time. + * @param willContinue willContinue or {@code null} for none + */ + public SessionInput setWillContinue(java.lang.Boolean willContinue) { + this.willContinue = willContinue; + return this; + } + + @Override + public SessionInput set(String fieldName, Object value) { + return (SessionInput) super.set(fieldName, value); + } + + @Override + public SessionInput clone() { + return (SessionInput) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionOutput.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionOutput.java new file mode 100644 index 00000000000..28af70c5c60 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionOutput.java @@ -0,0 +1,320 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Output for the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionOutput extends com.google.api.client.json.GenericJson { + + /** + * Output audio from the CES agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audio; + + /** + * Citations that provide the source information for the agent's generated text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Citations citations; + + /** + * Optional. Diagnostic information contains execution details during the processing of the input. + * Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SessionOutputDiagnosticInfo diagnosticInfo; + + /** + * Indicates the session has ended. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private EndSession endSession; + + /** + * The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleSearchSuggestions googleSearchSuggestions; + + /** + * Custom payload with structured output from the CES agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map payload; + + /** + * Output text from the CES agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Request for the client to execute the tools. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolCalls toolCalls; + + /** + * If true, the CES agent has detected the end of the current conversation turn and will provide + * no further output for this turn. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean turnCompleted; + + /** + * Indicates the sequential order of conversation turn to which this output belongs to, starting + * from 1. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer turnIndex; + + /** + * Output audio from the CES agent. + * @see #decodeAudio() + * @return value or {@code null} for none + */ + public java.lang.String getAudio() { + return audio; + } + + /** + * Output audio from the CES agent. + * @see #getAudio() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAudio() { + return com.google.api.client.util.Base64.decodeBase64(audio); + } + + /** + * Output audio from the CES agent. + * @see #encodeAudio() + * @param audio audio or {@code null} for none + */ + public SessionOutput setAudio(java.lang.String audio) { + this.audio = audio; + return this; + } + + /** + * Output audio from the CES agent. + * @see #setAudio() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public SessionOutput encodeAudio(byte[] audio) { + this.audio = com.google.api.client.util.Base64.encodeBase64URLSafeString(audio); + return this; + } + + /** + * Citations that provide the source information for the agent's generated text. + * @return value or {@code null} for none + */ + public Citations getCitations() { + return citations; + } + + /** + * Citations that provide the source information for the agent's generated text. + * @param citations citations or {@code null} for none + */ + public SessionOutput setCitations(Citations citations) { + this.citations = citations; + return this; + } + + /** + * Optional. Diagnostic information contains execution details during the processing of the input. + * Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. + * @return value or {@code null} for none + */ + public SessionOutputDiagnosticInfo getDiagnosticInfo() { + return diagnosticInfo; + } + + /** + * Optional. Diagnostic information contains execution details during the processing of the input. + * Only populated in the last SessionOutput (with `turn_completed=true`) for each turn. + * @param diagnosticInfo diagnosticInfo or {@code null} for none + */ + public SessionOutput setDiagnosticInfo(SessionOutputDiagnosticInfo diagnosticInfo) { + this.diagnosticInfo = diagnosticInfo; + return this; + } + + /** + * Indicates the session has ended. + * @return value or {@code null} for none + */ + public EndSession getEndSession() { + return endSession; + } + + /** + * Indicates the session has ended. + * @param endSession endSession or {@code null} for none + */ + public SessionOutput setEndSession(EndSession endSession) { + this.endSession = endSession; + return this; + } + + /** + * The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. + * @return value or {@code null} for none + */ + public GoogleSearchSuggestions getGoogleSearchSuggestions() { + return googleSearchSuggestions; + } + + /** + * The suggestions returned from Google Search as a result of invoking the GoogleSearchTool. + * @param googleSearchSuggestions googleSearchSuggestions or {@code null} for none + */ + public SessionOutput setGoogleSearchSuggestions(GoogleSearchSuggestions googleSearchSuggestions) { + this.googleSearchSuggestions = googleSearchSuggestions; + return this; + } + + /** + * Custom payload with structured output from the CES agent. + * @return value or {@code null} for none + */ + public java.util.Map getPayload() { + return payload; + } + + /** + * Custom payload with structured output from the CES agent. + * @param payload payload or {@code null} for none + */ + public SessionOutput setPayload(java.util.Map payload) { + this.payload = payload; + return this; + } + + /** + * Output text from the CES agent. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Output text from the CES agent. + * @param text text or {@code null} for none + */ + public SessionOutput setText(java.lang.String text) { + this.text = text; + return this; + } + + /** + * Request for the client to execute the tools. + * @return value or {@code null} for none + */ + public ToolCalls getToolCalls() { + return toolCalls; + } + + /** + * Request for the client to execute the tools. + * @param toolCalls toolCalls or {@code null} for none + */ + public SessionOutput setToolCalls(ToolCalls toolCalls) { + this.toolCalls = toolCalls; + return this; + } + + /** + * If true, the CES agent has detected the end of the current conversation turn and will provide + * no further output for this turn. + * @return value or {@code null} for none + */ + public java.lang.Boolean getTurnCompleted() { + return turnCompleted; + } + + /** + * If true, the CES agent has detected the end of the current conversation turn and will provide + * no further output for this turn. + * @param turnCompleted turnCompleted or {@code null} for none + */ + public SessionOutput setTurnCompleted(java.lang.Boolean turnCompleted) { + this.turnCompleted = turnCompleted; + return this; + } + + /** + * Indicates the sequential order of conversation turn to which this output belongs to, starting + * from 1. + * @return value or {@code null} for none + */ + public java.lang.Integer getTurnIndex() { + return turnIndex; + } + + /** + * Indicates the sequential order of conversation turn to which this output belongs to, starting + * from 1. + * @param turnIndex turnIndex or {@code null} for none + */ + public SessionOutput setTurnIndex(java.lang.Integer turnIndex) { + this.turnIndex = turnIndex; + return this; + } + + @Override + public SessionOutput set(String fieldName, Object value) { + return (SessionOutput) super.set(fieldName, value); + } + + @Override + public SessionOutput clone() { + return (SessionOutput) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionOutputDiagnosticInfo.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionOutputDiagnosticInfo.java new file mode 100644 index 00000000000..729b86389ca --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SessionOutputDiagnosticInfo.java @@ -0,0 +1,100 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Contains execution details during the processing. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SessionOutputDiagnosticInfo extends com.google.api.client.json.GenericJson { + + /** + * List of the messages that happened during the processing. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List messages; + + static { + // hack to force ProGuard to consider Message 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(Message.class); + } + + /** + * A trace of the entire request processing, represented as a root span. This span can contain + * nested child spans for specific operations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Span rootSpan; + + /** + * List of the messages that happened during the processing. + * @return value or {@code null} for none + */ + public java.util.List getMessages() { + return messages; + } + + /** + * List of the messages that happened during the processing. + * @param messages messages or {@code null} for none + */ + public SessionOutputDiagnosticInfo setMessages(java.util.List messages) { + this.messages = messages; + return this; + } + + /** + * A trace of the entire request processing, represented as a root span. This span can contain + * nested child spans for specific operations. + * @return value or {@code null} for none + */ + public Span getRootSpan() { + return rootSpan; + } + + /** + * A trace of the entire request processing, represented as a root span. This span can contain + * nested child spans for specific operations. + * @param rootSpan rootSpan or {@code null} for none + */ + public SessionOutputDiagnosticInfo setRootSpan(Span rootSpan) { + this.rootSpan = rootSpan; + return this; + } + + @Override + public SessionOutputDiagnosticInfo set(String fieldName, Object value) { + return (SessionOutputDiagnosticInfo) super.set(fieldName, value); + } + + @Override + public SessionOutputDiagnosticInfo clone() { + return (SessionOutputDiagnosticInfo) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Span.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Span.java new file mode 100644 index 00000000000..c139ac85e5d --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Span.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.ces.v1beta.model; + +/** + * A span is a unit of work or a single operation during the request processing. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Span extends com.google.api.client.json.GenericJson { + + /** + * Output only. Key-value attributes associated with the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map attributes; + + /** + * Output only. The child spans that are nested under this span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List childSpans; + + /** + * Output only. The duration of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String duration; + + /** + * Output only. The end time of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String endTime; + + /** + * Output only. The name of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The start time of the span. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String startTime; + + /** + * Output only. Key-value attributes associated with the span. + * @return value or {@code null} for none + */ + public java.util.Map getAttributes() { + return attributes; + } + + /** + * Output only. Key-value attributes associated with the span. + * @param attributes attributes or {@code null} for none + */ + public Span setAttributes(java.util.Map attributes) { + this.attributes = attributes; + return this; + } + + /** + * Output only. The child spans that are nested under this span. + * @return value or {@code null} for none + */ + public java.util.List getChildSpans() { + return childSpans; + } + + /** + * Output only. The child spans that are nested under this span. + * @param childSpans childSpans or {@code null} for none + */ + public Span setChildSpans(java.util.List childSpans) { + this.childSpans = childSpans; + return this; + } + + /** + * Output only. The duration of the span. + * @return value or {@code null} for none + */ + public String getDuration() { + return duration; + } + + /** + * Output only. The duration of the span. + * @param duration duration or {@code null} for none + */ + public Span setDuration(String duration) { + this.duration = duration; + return this; + } + + /** + * Output only. The end time of the span. + * @return value or {@code null} for none + */ + public String getEndTime() { + return endTime; + } + + /** + * Output only. The end time of the span. + * @param endTime endTime or {@code null} for none + */ + public Span setEndTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * Output only. The name of the span. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Output only. The name of the span. + * @param name name or {@code null} for none + */ + public Span setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The start time of the span. + * @return value or {@code null} for none + */ + public String getStartTime() { + return startTime; + } + + /** + * Output only. The start time of the span. + * @param startTime startTime or {@code null} for none + */ + public Span setStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + @Override + public Span set(String fieldName, Object value) { + return (Span) super.set(fieldName, value); + } + + @Override + public Span clone() { + return (Span) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Status.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Status.java new file mode 100644 index 00000000000..6977f890f4e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Status.java @@ -0,0 +1,128 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The `Status` type defines a logical error model that is suitable for different programming + * environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). + * Each `Status` message contains three pieces of data: error code, error message, and error + * details. You can find out more about this error model and how to work with it in the [API Design + * Guide](https://cloud.google.com/apis/design/errors). + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Status extends com.google.api.client.json.GenericJson { + + /** + * The status code, which should be an enum value of google.rpc.Code. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Integer code; + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List> details; + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String message; + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @return value or {@code null} for none + */ + public java.lang.Integer getCode() { + return code; + } + + /** + * The status code, which should be an enum value of google.rpc.Code. + * @param code code or {@code null} for none + */ + public Status setCode(java.lang.Integer code) { + this.code = code; + return this; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @return value or {@code null} for none + */ + public java.util.List> getDetails() { + return details; + } + + /** + * A list of messages that carry the error details. There is a common set of message types for + * APIs to use. + * @param details details or {@code null} for none + */ + public Status setDetails(java.util.List> details) { + this.details = details; + return this; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @return value or {@code null} for none + */ + public java.lang.String getMessage() { + return message; + } + + /** + * A developer-facing error message, which should be in English. Any user-facing error message + * should be localized and sent in the google.rpc.Status.details field, or localized by the + * client. + * @param message message or {@code null} for none + */ + public Status setMessage(java.lang.String message) { + this.message = message; + return this; + } + + @Override + public Status set(String fieldName, Object value) { + return (Status) super.set(fieldName, value); + } + + @Override + public Status clone() { + return (Status) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SynthesizeSpeechConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SynthesizeSpeechConfig.java new file mode 100644 index 00000000000..55666e28fb6 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SynthesizeSpeechConfig.java @@ -0,0 +1,106 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Configuration for how the agent response should be synthesized. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SynthesizeSpeechConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed + * supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside + * of the range [0.25, 2.0] will return an error. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Double speakingRate; + + /** + * Optional. The name of the voice. If not set, the service will choose a voice based on the other + * parameters such as language_code. For the list of available voices, please refer to [Supported + * voices and languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud Text-to- + * Speech. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String voice; + + /** + * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed + * supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside + * of the range [0.25, 2.0] will return an error. + * @return value or {@code null} for none + */ + public java.lang.Double getSpeakingRate() { + return speakingRate; + } + + /** + * Optional. The speaking rate/speed in the range [0.25, 2.0]. 1.0 is the normal native speed + * supported by the specific voice. 2.0 is twice as fast, and 0.5 is half as fast. Values outside + * of the range [0.25, 2.0] will return an error. + * @param speakingRate speakingRate or {@code null} for none + */ + public SynthesizeSpeechConfig setSpeakingRate(java.lang.Double speakingRate) { + this.speakingRate = speakingRate; + return this; + } + + /** + * Optional. The name of the voice. If not set, the service will choose a voice based on the other + * parameters such as language_code. For the list of available voices, please refer to [Supported + * voices and languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud Text-to- + * Speech. + * @return value or {@code null} for none + */ + public java.lang.String getVoice() { + return voice; + } + + /** + * Optional. The name of the voice. If not set, the service will choose a voice based on the other + * parameters such as language_code. For the list of available voices, please refer to [Supported + * voices and languages](https://cloud.google.com/text-to-speech/docs/voices) from Cloud Text-to- + * Speech. + * @param voice voice or {@code null} for none + */ + public SynthesizeSpeechConfig setVoice(java.lang.String voice) { + this.voice = voice; + return this; + } + + @Override + public SynthesizeSpeechConfig set(String fieldName, Object value) { + return (SynthesizeSpeechConfig) super.set(fieldName, value); + } + + @Override + public SynthesizeSpeechConfig clone() { + return (SynthesizeSpeechConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SystemTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SystemTool.java new file mode 100644 index 00000000000..57b84a26cb4 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/SystemTool.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.ces.v1beta.model; + +/** + * Pre-defined system tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class SystemTool extends com.google.api.client.json.GenericJson { + + /** + * Output only. The description of the system tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The name of the system tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The description of the system tool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Output only. The description of the system tool. + * @param description description or {@code null} for none + */ + public SystemTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The name of the system tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The name of the system tool. + * @param name name or {@code null} for none + */ + public SystemTool setName(java.lang.String name) { + this.name = name; + return this; + } + + @Override + public SystemTool set(String fieldName, Object value) { + return (SystemTool) super.set(fieldName, value); + } + + @Override + public SystemTool clone() { + return (SystemTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TestPersonaVoiceRequest.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TestPersonaVoiceRequest.java new file mode 100644 index 00000000000..550d841c491 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TestPersonaVoiceRequest.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.ces.v1beta.model; + +/** + * Request message for EvaluationService.TestPersonaVoice. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TestPersonaVoiceRequest extends com.google.api.client.json.GenericJson { + + /** + * Required. The persona ID to test the voice for. Also accepts "default". + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String personaId; + + /** + * Required. The text to test the voice for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Required. The persona ID to test the voice for. Also accepts "default". + * @return value or {@code null} for none + */ + public java.lang.String getPersonaId() { + return personaId; + } + + /** + * Required. The persona ID to test the voice for. Also accepts "default". + * @param personaId personaId or {@code null} for none + */ + public TestPersonaVoiceRequest setPersonaId(java.lang.String personaId) { + this.personaId = personaId; + return this; + } + + /** + * Required. The text to test the voice for. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Required. The text to test the voice for. + * @param text text or {@code null} for none + */ + public TestPersonaVoiceRequest setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public TestPersonaVoiceRequest set(String fieldName, Object value) { + return (TestPersonaVoiceRequest) super.set(fieldName, value); + } + + @Override + public TestPersonaVoiceRequest clone() { + return (TestPersonaVoiceRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TestPersonaVoiceResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TestPersonaVoiceResponse.java new file mode 100644 index 00000000000..b7389a012a9 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TestPersonaVoiceResponse.java @@ -0,0 +1,95 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Response message for EvaluationService.TestPersonaVoice. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TestPersonaVoiceResponse extends com.google.api.client.json.GenericJson { + + /** + * The audio data bytes of the synthesized voice. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String audio; + + /** + * The audio data bytes of the synthesized voice. + * @see #decodeAudio() + * @return value or {@code null} for none + */ + public java.lang.String getAudio() { + return audio; + } + + /** + * The audio data bytes of the synthesized voice. + * @see #getAudio() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeAudio() { + return com.google.api.client.util.Base64.decodeBase64(audio); + } + + /** + * The audio data bytes of the synthesized voice. + * @see #encodeAudio() + * @param audio audio or {@code null} for none + */ + public TestPersonaVoiceResponse setAudio(java.lang.String audio) { + this.audio = audio; + return this; + } + + /** + * The audio data bytes of the synthesized voice. + * @see #setAudio() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TestPersonaVoiceResponse encodeAudio(byte[] audio) { + this.audio = com.google.api.client.util.Base64.encodeBase64URLSafeString(audio); + return this; + } + + @Override + public TestPersonaVoiceResponse set(String fieldName, Object value) { + return (TestPersonaVoiceResponse) super.set(fieldName, value); + } + + @Override + public TestPersonaVoiceResponse clone() { + return (TestPersonaVoiceResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TimeZoneSettings.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TimeZoneSettings.java new file mode 100644 index 00000000000..9e51ec2299c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TimeZoneSettings.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * TimeZone settings of the app. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TimeZoneSettings extends com.google.api.client.json.GenericJson { + + /** + * Optional. The time zone of the app from the [time zone database](https://www.iana.org/time- + * zones), e.g., America/Los_Angeles, Europe/Paris. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String timeZone; + + /** + * Optional. The time zone of the app from the [time zone database](https://www.iana.org/time- + * zones), e.g., America/Los_Angeles, Europe/Paris. + * @return value or {@code null} for none + */ + public java.lang.String getTimeZone() { + return timeZone; + } + + /** + * Optional. The time zone of the app from the [time zone database](https://www.iana.org/time- + * zones), e.g., America/Los_Angeles, Europe/Paris. + * @param timeZone timeZone or {@code null} for none + */ + public TimeZoneSettings setTimeZone(java.lang.String timeZone) { + this.timeZone = timeZone; + return this; + } + + @Override + public TimeZoneSettings set(String fieldName, Object value) { + return (TimeZoneSettings) super.set(fieldName, value); + } + + @Override + public TimeZoneSettings clone() { + return (TimeZoneSettings) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TlsConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TlsConfig.java new file mode 100644 index 00000000000..debb18bdf3c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TlsConfig.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The TLS 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 Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TlsConfig extends com.google.api.client.json.GenericJson { + + /** + * Required. Specifies a list of allowed custom CA certificates for HTTPS verification. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List caCerts; + + /** + * Required. Specifies a list of allowed custom CA certificates for HTTPS verification. + * @return value or {@code null} for none + */ + public java.util.List getCaCerts() { + return caCerts; + } + + /** + * Required. Specifies a list of allowed custom CA certificates for HTTPS verification. + * @param caCerts caCerts or {@code null} for none + */ + public TlsConfig setCaCerts(java.util.List caCerts) { + this.caCerts = caCerts; + return this; + } + + @Override + public TlsConfig set(String fieldName, Object value) { + return (TlsConfig) super.set(fieldName, value); + } + + @Override + public TlsConfig clone() { + return (TlsConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TlsConfigCaCert.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TlsConfigCaCert.java new file mode 100644 index 00000000000..65f25beb44a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TlsConfigCaCert.java @@ -0,0 +1,147 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The CA certificate. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TlsConfigCaCert extends com.google.api.client.json.GenericJson { + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String cert; + + /** + * Required. The name of the allowed custom CA certificates. This can be used to disambiguate the + * custom CA certificates. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #decodeCert() + * @return value or {@code null} for none + */ + public java.lang.String getCert() { + return cert; + } + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #getCert() + * @return Base64 decoded value or {@code null} for none + * + * @since 1.14 + */ + public byte[] decodeCert() { + return com.google.api.client.util.Base64.decodeBase64(cert); + } + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #encodeCert() + * @param cert cert or {@code null} for none + */ + public TlsConfigCaCert setCert(java.lang.String cert) { + this.cert = cert; + return this; + } + + /** + * Required. The allowed custom CA certificates (in DER format) for HTTPS verification. This + * overrides the default SSL trust store. If this is empty or unspecified, CES will use Google's + * default trust store to verify certificates. N.B. Make sure the HTTPS server certificates are + * signed with "subject alt name". For instance a certificate can be self-signed using the + * following command, openssl x509 -req -days 200 -in example.com.csr \ -signkey example.com.key \ + * -out example.com.crt \ -extfile <(printf "\nsubjectAltName='DNS:www.example.com'") + * @see #setCert() + * + *

+ * The value is encoded Base64 or {@code null} for none. + *

+ * + * @since 1.14 + */ + public TlsConfigCaCert encodeCert(byte[] cert) { + this.cert = com.google.api.client.util.Base64.encodeBase64URLSafeString(cert); + return this; + } + + /** + * Required. The name of the allowed custom CA certificates. This can be used to disambiguate the + * custom CA certificates. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The name of the allowed custom CA certificates. This can be used to disambiguate the + * custom CA certificates. + * @param displayName displayName or {@code null} for none + */ + public TlsConfigCaCert setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + @Override + public TlsConfigCaCert set(String fieldName, Object value) { + return (TlsConfigCaCert) super.set(fieldName, value); + } + + @Override + public TlsConfigCaCert clone() { + return (TlsConfigCaCert) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Tool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Tool.java new file mode 100644 index 00000000000..8b771eca756 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Tool.java @@ -0,0 +1,499 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A tool represents an action that the CES agent can take to achieve certain goals. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Tool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The client function. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ClientFunction clientFunction; + + /** + * Optional. The Integration Connector tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConnectorTool connectorTool; + + /** + * Output only. Timestamp when the tool was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The data store tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DataStoreTool dataStoreTool; + + /** + * Output only. The display name of the tool, derived based on the tool's type. For example, + * display name of a ClientFunction is derived from its `name` property. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The execution type of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String executionType; + + /** + * Optional. The file search tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private FileSearchTool fileSearchTool; + + /** + * Output only. If the tool is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String generatedSummary; + + /** + * Optional. The google search tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private GoogleSearchTool googleSearchTool; + + /** + * Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the + * MCP toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private McpTool mcpTool; + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + * retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + * directly where a tool is expected. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The open API tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OpenApiTool openApiTool; + + /** + * Optional. The python function tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PythonFunction pythonFunction; + + /** + * Optional. The system tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SystemTool systemTool; + + /** + * Optional. Configuration for tool behavior in fake mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolFakeConfig toolFakeConfig; + + /** + * Output only. Timestamp when the tool was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. The widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private WidgetTool widgetTool; + + /** + * Optional. The client function. + * @return value or {@code null} for none + */ + public ClientFunction getClientFunction() { + return clientFunction; + } + + /** + * Optional. The client function. + * @param clientFunction clientFunction or {@code null} for none + */ + public Tool setClientFunction(ClientFunction clientFunction) { + this.clientFunction = clientFunction; + return this; + } + + /** + * Optional. The Integration Connector tool. + * @return value or {@code null} for none + */ + public ConnectorTool getConnectorTool() { + return connectorTool; + } + + /** + * Optional. The Integration Connector tool. + * @param connectorTool connectorTool or {@code null} for none + */ + public Tool setConnectorTool(ConnectorTool connectorTool) { + this.connectorTool = connectorTool; + return this; + } + + /** + * Output only. Timestamp when the tool was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the tool was created. + * @param createTime createTime or {@code null} for none + */ + public Tool setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The data store tool. + * @return value or {@code null} for none + */ + public DataStoreTool getDataStoreTool() { + return dataStoreTool; + } + + /** + * Optional. The data store tool. + * @param dataStoreTool dataStoreTool or {@code null} for none + */ + public Tool setDataStoreTool(DataStoreTool dataStoreTool) { + this.dataStoreTool = dataStoreTool; + return this; + } + + /** + * Output only. The display name of the tool, derived based on the tool's type. For example, + * display name of a ClientFunction is derived from its `name` property. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. The display name of the tool, derived based on the tool's type. For example, + * display name of a ClientFunction is derived from its `name` property. + * @param displayName displayName or {@code null} for none + */ + public Tool setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * Etag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Tool setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The execution type of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getExecutionType() { + return executionType; + } + + /** + * Optional. The execution type of the tool. + * @param executionType executionType or {@code null} for none + */ + public Tool setExecutionType(java.lang.String executionType) { + this.executionType = executionType; + return this; + } + + /** + * Optional. The file search tool. + * @return value or {@code null} for none + */ + public FileSearchTool getFileSearchTool() { + return fileSearchTool; + } + + /** + * Optional. The file search tool. + * @param fileSearchTool fileSearchTool or {@code null} for none + */ + public Tool setFileSearchTool(FileSearchTool fileSearchTool) { + this.fileSearchTool = fileSearchTool; + return this; + } + + /** + * Output only. If the tool is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @return value or {@code null} for none + */ + public java.lang.String getGeneratedSummary() { + return generatedSummary; + } + + /** + * Output only. If the tool is generated by the LLM assistant, this field contains a descriptive + * summary of the generation. + * @param generatedSummary generatedSummary or {@code null} for none + */ + public Tool setGeneratedSummary(java.lang.String generatedSummary) { + this.generatedSummary = generatedSummary; + return this; + } + + /** + * Optional. The google search tool. + * @return value or {@code null} for none + */ + public GoogleSearchTool getGoogleSearchTool() { + return googleSearchTool; + } + + /** + * Optional. The google search tool. + * @param googleSearchTool googleSearchTool or {@code null} for none + */ + public Tool setGoogleSearchTool(GoogleSearchTool googleSearchTool) { + this.googleSearchTool = googleSearchTool; + return this; + } + + /** + * Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the + * MCP toolset. + * @return value or {@code null} for none + */ + public McpTool getMcpTool() { + return mcpTool; + } + + /** + * Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the + * MCP toolset. + * @param mcpTool mcpTool or {@code null} for none + */ + public Tool setMcpTool(McpTool mcpTool) { + this.mcpTool = mcpTool; + return this; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + * retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + * directly where a tool is expected. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the tool. Format: - + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for ## standalone tools. + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools + * retrieved from a toolset. These tools are dynamic and output-only, they cannot be referenced + * directly where a tool is expected. + * @param name name or {@code null} for none + */ + public Tool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The open API tool. + * @return value or {@code null} for none + */ + public OpenApiTool getOpenApiTool() { + return openApiTool; + } + + /** + * Optional. The open API tool. + * @param openApiTool openApiTool or {@code null} for none + */ + public Tool setOpenApiTool(OpenApiTool openApiTool) { + this.openApiTool = openApiTool; + return this; + } + + /** + * Optional. The python function tool. + * @return value or {@code null} for none + */ + public PythonFunction getPythonFunction() { + return pythonFunction; + } + + /** + * Optional. The python function tool. + * @param pythonFunction pythonFunction or {@code null} for none + */ + public Tool setPythonFunction(PythonFunction pythonFunction) { + this.pythonFunction = pythonFunction; + return this; + } + + /** + * Optional. The system tool. + * @return value or {@code null} for none + */ + public SystemTool getSystemTool() { + return systemTool; + } + + /** + * Optional. The system tool. + * @param systemTool systemTool or {@code null} for none + */ + public Tool setSystemTool(SystemTool systemTool) { + this.systemTool = systemTool; + return this; + } + + /** + * Optional. Configuration for tool behavior in fake mode. + * @return value or {@code null} for none + */ + public ToolFakeConfig getToolFakeConfig() { + return toolFakeConfig; + } + + /** + * Optional. Configuration for tool behavior in fake mode. + * @param toolFakeConfig toolFakeConfig or {@code null} for none + */ + public Tool setToolFakeConfig(ToolFakeConfig toolFakeConfig) { + this.toolFakeConfig = toolFakeConfig; + return this; + } + + /** + * Output only. Timestamp when the tool was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the tool was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Tool setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + /** + * Optional. The widget tool. + * @return value or {@code null} for none + */ + public WidgetTool getWidgetTool() { + return widgetTool; + } + + /** + * Optional. The widget tool. + * @param widgetTool widgetTool or {@code null} for none + */ + public Tool setWidgetTool(WidgetTool widgetTool) { + this.widgetTool = widgetTool; + return this; + } + + @Override + public Tool set(String fieldName, Object value) { + return (Tool) super.set(fieldName, value); + } + + @Override + public Tool clone() { + return (Tool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolCall.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolCall.java new file mode 100644 index 00000000000..b52ae4c4b33 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolCall.java @@ -0,0 +1,169 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request for the client or the agent to execute the specified tool. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolCall extends com.google.api.client.json.GenericJson { + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map args; + + /** + * Output only. Display name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The unique identifier of the tool call. If populated, the client should return the + * execution result with the matching ID in ToolResponse. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool to execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @return value or {@code null} for none + */ + public java.util.Map getArgs() { + return args; + } + + /** + * Optional. The input parameters and values for the tool in JSON object format. + * @param args args or {@code null} for none + */ + public ToolCall setArgs(java.util.Map args) { + this.args = args; + return this; + } + + /** + * Output only. Display name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the tool. + * @param displayName displayName or {@code null} for none + */ + public ToolCall setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The unique identifier of the tool call. If populated, the client should return the + * execution result with the matching ID in ToolResponse. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The unique identifier of the tool call. If populated, the client should return the + * execution result with the matching ID in ToolResponse. + * @param id id or {@code null} for none + */ + public ToolCall setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public ToolCall setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool to execute. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool to execute. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ToolCall setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ToolCall set(String fieldName, Object value) { + return (ToolCall) super.set(fieldName, value); + } + + @Override + public ToolCall clone() { + return (ToolCall) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolCalls.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolCalls.java new file mode 100644 index 00000000000..1b93555ba2e --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolCalls.java @@ -0,0 +1,74 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Request for the client to execute the tools and return the execution results before continuing + * the session. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolCalls extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tool calls to execute. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolCalls; + + static { + // hack to force ProGuard to consider ToolCall 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(ToolCall.class); + } + + /** + * Optional. The list of tool calls to execute. + * @return value or {@code null} for none + */ + public java.util.List getToolCalls() { + return toolCalls; + } + + /** + * Optional. The list of tool calls to execute. + * @param toolCalls toolCalls or {@code null} for none + */ + public ToolCalls setToolCalls(java.util.List toolCalls) { + this.toolCalls = toolCalls; + return this; + } + + @Override + public ToolCalls set(String fieldName, Object value) { + return (ToolCalls) super.set(fieldName, value); + } + + @Override + public ToolCalls clone() { + return (ToolCalls) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolFakeConfig.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolFakeConfig.java new file mode 100644 index 00000000000..2e1ddb80003 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolFakeConfig.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.ces.v1beta.model; + +/** + * Configuration for tool behavior in fake mode. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolFakeConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Code block which will be executed instead of a real tool call. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private CodeBlock codeBlock; + + /** + * Optional. Whether the tool is using fake mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enableFakeMode; + + /** + * Optional. Code block which will be executed instead of a real tool call. + * @return value or {@code null} for none + */ + public CodeBlock getCodeBlock() { + return codeBlock; + } + + /** + * Optional. Code block which will be executed instead of a real tool call. + * @param codeBlock codeBlock or {@code null} for none + */ + public ToolFakeConfig setCodeBlock(CodeBlock codeBlock) { + this.codeBlock = codeBlock; + return this; + } + + /** + * Optional. Whether the tool is using fake mode. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnableFakeMode() { + return enableFakeMode; + } + + /** + * Optional. Whether the tool is using fake mode. + * @param enableFakeMode enableFakeMode or {@code null} for none + */ + public ToolFakeConfig setEnableFakeMode(java.lang.Boolean enableFakeMode) { + this.enableFakeMode = enableFakeMode; + return this; + } + + @Override + public ToolFakeConfig set(String fieldName, Object value) { + return (ToolFakeConfig) super.set(fieldName, value); + } + + @Override + public ToolFakeConfig clone() { + return (ToolFakeConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolResponse.java new file mode 100644 index 00000000000..17675fd6f72 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolResponse.java @@ -0,0 +1,172 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The execution result of a specific tool from the client or the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. Display name of the tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Optional. The matching ID of the tool call the response is for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String id; + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.Map response; + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String tool; + + /** + * Optional. The toolset tool that got executed. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolsetTool toolsetTool; + + /** + * Output only. Display name of the tool. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Output only. Display name of the tool. + * @param displayName displayName or {@code null} for none + */ + public ToolResponse setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Optional. The matching ID of the tool call the response is for. + * @return value or {@code null} for none + */ + public java.lang.String getId() { + return id; + } + + /** + * Optional. The matching ID of the tool call the response is for. + * @param id id or {@code null} for none + */ + public ToolResponse setId(java.lang.String id) { + this.id = id; + return this; + } + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @return value or {@code null} for none + */ + public java.util.Map getResponse() { + return response; + } + + /** + * Required. The tool execution result in JSON object format. Use "output" key to specify tool + * response and "error" key to specify error details (if any). If "output" and "error" keys are + * not specified, then whole "response" is treated as tool execution result. + * @param response response or {@code null} for none + */ + public ToolResponse setResponse(java.util.Map response) { + this.response = response; + return this; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @return value or {@code null} for none + */ + public java.lang.String getTool() { + return tool; + } + + /** + * Optional. The name of the tool to execute. Format: + * `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + * @param tool tool or {@code null} for none + */ + public ToolResponse setTool(java.lang.String tool) { + this.tool = tool; + return this; + } + + /** + * Optional. The toolset tool that got executed. + * @return value or {@code null} for none + */ + public ToolsetTool getToolsetTool() { + return toolsetTool; + } + + /** + * Optional. The toolset tool that got executed. + * @param toolsetTool toolsetTool or {@code null} for none + */ + public ToolResponse setToolsetTool(ToolsetTool toolsetTool) { + this.toolsetTool = toolsetTool; + return this; + } + + @Override + public ToolResponse set(String fieldName, Object value) { + return (ToolResponse) super.set(fieldName, value); + } + + @Override + public ToolResponse clone() { + return (ToolResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolResponses.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolResponses.java new file mode 100644 index 00000000000..ddca6ff76a7 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolResponses.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.ces.v1beta.model; + +/** + * Execution results for the requested tool calls from the client. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolResponses extends com.google.api.client.json.GenericJson { + + /** + * Optional. The list of tool execution results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List toolResponses; + + static { + // hack to force ProGuard to consider ToolResponse 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(ToolResponse.class); + } + + /** + * Optional. The list of tool execution results. + * @return value or {@code null} for none + */ + public java.util.List getToolResponses() { + return toolResponses; + } + + /** + * Optional. The list of tool execution results. + * @param toolResponses toolResponses or {@code null} for none + */ + public ToolResponses setToolResponses(java.util.List toolResponses) { + this.toolResponses = toolResponses; + return this; + } + + @Override + public ToolResponses set(String fieldName, Object value) { + return (ToolResponses) super.set(fieldName, value); + } + + @Override + public ToolResponses clone() { + return (ToolResponses) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Toolset.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Toolset.java new file mode 100644 index 00000000000..8aa74e97a11 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/Toolset.java @@ -0,0 +1,313 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A toolset represents a group of dynamically managed tools that can be used by the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class Toolset extends com.google.api.client.json.GenericJson { + + /** + * Optional. A toolset that generates tools from an Integration Connectors Connection. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ConnectorToolset connectorToolset; + + /** + * Output only. Timestamp when the toolset was created. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String createTime; + + /** + * Optional. The description of the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Optional. The display name of the toolset. Must be unique within the same app. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * ETag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String etag; + + /** + * Optional. The execution type of the tools in the toolset. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String executionType; + + /** + * Optional. A toolset that contains a list of tools that are offered by the MCP server. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private McpToolset mcpToolset; + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. A toolset that contains a list of tools that are defined by an OpenAPI schema. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private OpenApiToolset openApiToolset; + + /** + * Optional. Configuration for tools behavior in fake mode. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ToolFakeConfig toolFakeConfig; + + /** + * Output only. Timestamp when the toolset was last updated. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private String updateTime; + + /** + * Optional. A toolset that generates tools from an Integration Connectors Connection. + * @return value or {@code null} for none + */ + public ConnectorToolset getConnectorToolset() { + return connectorToolset; + } + + /** + * Optional. A toolset that generates tools from an Integration Connectors Connection. + * @param connectorToolset connectorToolset or {@code null} for none + */ + public Toolset setConnectorToolset(ConnectorToolset connectorToolset) { + this.connectorToolset = connectorToolset; + return this; + } + + /** + * Output only. Timestamp when the toolset was created. + * @return value or {@code null} for none + */ + public String getCreateTime() { + return createTime; + } + + /** + * Output only. Timestamp when the toolset was created. + * @param createTime createTime or {@code null} for none + */ + public Toolset setCreateTime(String createTime) { + this.createTime = createTime; + return this; + } + + /** + * Optional. The description of the toolset. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the toolset. + * @param description description or {@code null} for none + */ + public Toolset setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Optional. The display name of the toolset. Must be unique within the same app. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Optional. The display name of the toolset. Must be unique within the same app. + * @param displayName displayName or {@code null} for none + */ + public Toolset setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * ETag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @return value or {@code null} for none + */ + public java.lang.String getEtag() { + return etag; + } + + /** + * ETag used to ensure the object hasn't changed during a read-modify-write operation. If the etag + * is empty, the update will overwrite any concurrent changes. + * @param etag etag or {@code null} for none + */ + public Toolset setEtag(java.lang.String etag) { + this.etag = etag; + return this; + } + + /** + * Optional. The execution type of the tools in the toolset. + * @return value or {@code null} for none + */ + public java.lang.String getExecutionType() { + return executionType; + } + + /** + * Optional. The execution type of the tools in the toolset. + * @param executionType executionType or {@code null} for none + */ + public Toolset setExecutionType(java.lang.String executionType) { + this.executionType = executionType; + return this; + } + + /** + * Optional. A toolset that contains a list of tools that are offered by the MCP server. + * @return value or {@code null} for none + */ + public McpToolset getMcpToolset() { + return mcpToolset; + } + + /** + * Optional. A toolset that contains a list of tools that are offered by the MCP server. + * @param mcpToolset mcpToolset or {@code null} for none + */ + public Toolset setMcpToolset(McpToolset mcpToolset) { + this.mcpToolset = mcpToolset; + return this; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The unique identifier of the toolset. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param name name or {@code null} for none + */ + public Toolset setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. A toolset that contains a list of tools that are defined by an OpenAPI schema. + * @return value or {@code null} for none + */ + public OpenApiToolset getOpenApiToolset() { + return openApiToolset; + } + + /** + * Optional. A toolset that contains a list of tools that are defined by an OpenAPI schema. + * @param openApiToolset openApiToolset or {@code null} for none + */ + public Toolset setOpenApiToolset(OpenApiToolset openApiToolset) { + this.openApiToolset = openApiToolset; + return this; + } + + /** + * Optional. Configuration for tools behavior in fake mode. + * @return value or {@code null} for none + */ + public ToolFakeConfig getToolFakeConfig() { + return toolFakeConfig; + } + + /** + * Optional. Configuration for tools behavior in fake mode. + * @param toolFakeConfig toolFakeConfig or {@code null} for none + */ + public Toolset setToolFakeConfig(ToolFakeConfig toolFakeConfig) { + this.toolFakeConfig = toolFakeConfig; + return this; + } + + /** + * Output only. Timestamp when the toolset was last updated. + * @return value or {@code null} for none + */ + public String getUpdateTime() { + return updateTime; + } + + /** + * Output only. Timestamp when the toolset was last updated. + * @param updateTime updateTime or {@code null} for none + */ + public Toolset setUpdateTime(String updateTime) { + this.updateTime = updateTime; + return this; + } + + @Override + public Toolset set(String fieldName, Object value) { + return (Toolset) super.set(fieldName, value); + } + + @Override + public Toolset clone() { + return (Toolset) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolsetTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolsetTool.java new file mode 100644 index 00000000000..f5de8f4fd2c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/ToolsetTool.java @@ -0,0 +1,94 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A tool that is created from a toolset. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class ToolsetTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The tool ID to filter the tools to retrieve the schema for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolId; + + /** + * Required. The resource name of the Toolset from which this tool is derived. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String toolset; + + /** + * Optional. The tool ID to filter the tools to retrieve the schema for. + * @return value or {@code null} for none + */ + public java.lang.String getToolId() { + return toolId; + } + + /** + * Optional. The tool ID to filter the tools to retrieve the schema for. + * @param toolId toolId or {@code null} for none + */ + public ToolsetTool setToolId(java.lang.String toolId) { + this.toolId = toolId; + return this; + } + + /** + * Required. The resource name of the Toolset from which this tool is derived. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @return value or {@code null} for none + */ + public java.lang.String getToolset() { + return toolset; + } + + /** + * Required. The resource name of the Toolset from which this tool is derived. Format: + * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}` + * @param toolset toolset or {@code null} for none + */ + public ToolsetTool setToolset(java.lang.String toolset) { + this.toolset = toolset; + return this; + } + + @Override + public ToolsetTool set(String fieldName, Object value) { + return (ToolsetTool) super.set(fieldName, value); + } + + @Override + public ToolsetTool clone() { + return (ToolsetTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRule.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRule.java new file mode 100644 index 00000000000..0876f4c88d9 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRule.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.ces.v1beta.model; + +/** + * Rule for transferring to a specific agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransferRule extends com.google.api.client.json.GenericJson { + + /** + * Required. The resource name of the child agent the rule applies to. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String childAgent; + + /** + * Optional. A rule that immediately transfers to the target agent when the condition is met. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TransferRuleDeterministicTransfer deterministicTransfer; + + /** + * Required. The direction of the transfer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String direction; + + /** + * Optional. Rule that prevents the planner from transferring to the target agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TransferRuleDisablePlannerTransfer disablePlannerTransfer; + + /** + * Required. The resource name of the child agent the rule applies to. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getChildAgent() { + return childAgent; + } + + /** + * Required. The resource name of the child agent the rule applies to. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param childAgent childAgent or {@code null} for none + */ + public TransferRule setChildAgent(java.lang.String childAgent) { + this.childAgent = childAgent; + return this; + } + + /** + * Optional. A rule that immediately transfers to the target agent when the condition is met. + * @return value or {@code null} for none + */ + public TransferRuleDeterministicTransfer getDeterministicTransfer() { + return deterministicTransfer; + } + + /** + * Optional. A rule that immediately transfers to the target agent when the condition is met. + * @param deterministicTransfer deterministicTransfer or {@code null} for none + */ + public TransferRule setDeterministicTransfer(TransferRuleDeterministicTransfer deterministicTransfer) { + this.deterministicTransfer = deterministicTransfer; + return this; + } + + /** + * Required. The direction of the transfer. + * @return value or {@code null} for none + */ + public java.lang.String getDirection() { + return direction; + } + + /** + * Required. The direction of the transfer. + * @param direction direction or {@code null} for none + */ + public TransferRule setDirection(java.lang.String direction) { + this.direction = direction; + return this; + } + + /** + * Optional. Rule that prevents the planner from transferring to the target agent. + * @return value or {@code null} for none + */ + public TransferRuleDisablePlannerTransfer getDisablePlannerTransfer() { + return disablePlannerTransfer; + } + + /** + * Optional. Rule that prevents the planner from transferring to the target agent. + * @param disablePlannerTransfer disablePlannerTransfer or {@code null} for none + */ + public TransferRule setDisablePlannerTransfer(TransferRuleDisablePlannerTransfer disablePlannerTransfer) { + this.disablePlannerTransfer = disablePlannerTransfer; + return this; + } + + @Override + public TransferRule set(String fieldName, Object value) { + return (TransferRule) super.set(fieldName, value); + } + + @Override + public TransferRule clone() { + return (TransferRule) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRuleDeterministicTransfer.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRuleDeterministicTransfer.java new file mode 100644 index 00000000000..9bac2d0a683 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRuleDeterministicTransfer.java @@ -0,0 +1,97 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Deterministic transfer rule. When the condition evaluates to true, the transfer occurs. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransferRuleDeterministicTransfer extends com.google.api.client.json.GenericJson { + + /** + * Optional. A rule that evaluates a session state condition. If the condition evaluates to true, + * the transfer occurs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressionCondition expressionCondition; + + /** + * Optional. A rule that uses Python code block to evaluate the conditions. If the condition + * evaluates to true, the transfer occurs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private PythonCodeCondition pythonCodeCondition; + + /** + * Optional. A rule that evaluates a session state condition. If the condition evaluates to true, + * the transfer occurs. + * @return value or {@code null} for none + */ + public ExpressionCondition getExpressionCondition() { + return expressionCondition; + } + + /** + * Optional. A rule that evaluates a session state condition. If the condition evaluates to true, + * the transfer occurs. + * @param expressionCondition expressionCondition or {@code null} for none + */ + public TransferRuleDeterministicTransfer setExpressionCondition(ExpressionCondition expressionCondition) { + this.expressionCondition = expressionCondition; + return this; + } + + /** + * Optional. A rule that uses Python code block to evaluate the conditions. If the condition + * evaluates to true, the transfer occurs. + * @return value or {@code null} for none + */ + public PythonCodeCondition getPythonCodeCondition() { + return pythonCodeCondition; + } + + /** + * Optional. A rule that uses Python code block to evaluate the conditions. If the condition + * evaluates to true, the transfer occurs. + * @param pythonCodeCondition pythonCodeCondition or {@code null} for none + */ + public TransferRuleDeterministicTransfer setPythonCodeCondition(PythonCodeCondition pythonCodeCondition) { + this.pythonCodeCondition = pythonCodeCondition; + return this; + } + + @Override + public TransferRuleDeterministicTransfer set(String fieldName, Object value) { + return (TransferRuleDeterministicTransfer) super.set(fieldName, value); + } + + @Override + public TransferRuleDeterministicTransfer clone() { + return (TransferRuleDeterministicTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRuleDisablePlannerTransfer.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRuleDisablePlannerTransfer.java new file mode 100644 index 00000000000..8483c6b8129 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TransferRuleDisablePlannerTransfer.java @@ -0,0 +1,70 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * A rule that prevents the planner from transferring to the target agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TransferRuleDisablePlannerTransfer extends com.google.api.client.json.GenericJson { + + /** + * Required. If the condition evaluates to true, planner will not be allowed to transfer to the + * target agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ExpressionCondition expressionCondition; + + /** + * Required. If the condition evaluates to true, planner will not be allowed to transfer to the + * target agent. + * @return value or {@code null} for none + */ + public ExpressionCondition getExpressionCondition() { + return expressionCondition; + } + + /** + * Required. If the condition evaluates to true, planner will not be allowed to transfer to the + * target agent. + * @param expressionCondition expressionCondition or {@code null} for none + */ + public TransferRuleDisablePlannerTransfer setExpressionCondition(ExpressionCondition expressionCondition) { + this.expressionCondition = expressionCondition; + return this; + } + + @Override + public TransferRuleDisablePlannerTransfer set(String fieldName, Object value) { + return (TransferRuleDisablePlannerTransfer) super.set(fieldName, value); + } + + @Override + public TransferRuleDisablePlannerTransfer clone() { + return (TransferRuleDisablePlannerTransfer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerAction.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerAction.java new file mode 100644 index 00000000000..adcebb31af2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerAction.java @@ -0,0 +1,115 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Action that is taken when a certain precondition is met. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerAction extends com.google.api.client.json.GenericJson { + + /** + * Optional. Respond with a generative answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerActionGenerativeAnswer generativeAnswer; + + /** + * Optional. Immediately respond with a preconfigured response. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerActionRespondImmediately respondImmediately; + + /** + * Optional. Transfer the conversation to a different agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TriggerActionTransferAgent transferAgent; + + /** + * Optional. Respond with a generative answer. + * @return value or {@code null} for none + */ + public TriggerActionGenerativeAnswer getGenerativeAnswer() { + return generativeAnswer; + } + + /** + * Optional. Respond with a generative answer. + * @param generativeAnswer generativeAnswer or {@code null} for none + */ + public TriggerAction setGenerativeAnswer(TriggerActionGenerativeAnswer generativeAnswer) { + this.generativeAnswer = generativeAnswer; + return this; + } + + /** + * Optional. Immediately respond with a preconfigured response. + * @return value or {@code null} for none + */ + public TriggerActionRespondImmediately getRespondImmediately() { + return respondImmediately; + } + + /** + * Optional. Immediately respond with a preconfigured response. + * @param respondImmediately respondImmediately or {@code null} for none + */ + public TriggerAction setRespondImmediately(TriggerActionRespondImmediately respondImmediately) { + this.respondImmediately = respondImmediately; + return this; + } + + /** + * Optional. Transfer the conversation to a different agent. + * @return value or {@code null} for none + */ + public TriggerActionTransferAgent getTransferAgent() { + return transferAgent; + } + + /** + * Optional. Transfer the conversation to a different agent. + * @param transferAgent transferAgent or {@code null} for none + */ + public TriggerAction setTransferAgent(TriggerActionTransferAgent transferAgent) { + this.transferAgent = transferAgent; + return this; + } + + @Override + public TriggerAction set(String fieldName, Object value) { + return (TriggerAction) super.set(fieldName, value); + } + + @Override + public TriggerAction clone() { + return (TriggerAction) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionGenerativeAnswer.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionGenerativeAnswer.java new file mode 100644 index 00000000000..9c9e6ea669a --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionGenerativeAnswer.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The agent will immediately respond with a generative answer. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionGenerativeAnswer extends com.google.api.client.json.GenericJson { + + /** + * Required. The prompt to use for the generative answer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String prompt; + + /** + * Required. The prompt to use for the generative answer. + * @return value or {@code null} for none + */ + public java.lang.String getPrompt() { + return prompt; + } + + /** + * Required. The prompt to use for the generative answer. + * @param prompt prompt or {@code null} for none + */ + public TriggerActionGenerativeAnswer setPrompt(java.lang.String prompt) { + this.prompt = prompt; + return this; + } + + @Override + public TriggerActionGenerativeAnswer set(String fieldName, Object value) { + return (TriggerActionGenerativeAnswer) super.set(fieldName, value); + } + + @Override + public TriggerActionGenerativeAnswer clone() { + return (TriggerActionGenerativeAnswer) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionRespondImmediately.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionRespondImmediately.java new file mode 100644 index 00000000000..55cb7ac8569 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionRespondImmediately.java @@ -0,0 +1,67 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * The agent will immediately respond with a preconfigured response. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionRespondImmediately extends com.google.api.client.json.GenericJson { + + /** + * Required. The canned responses for the agent to choose from. The response is chosen randomly. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List responses; + + /** + * Required. The canned responses for the agent to choose from. The response is chosen randomly. + * @return value or {@code null} for none + */ + public java.util.List getResponses() { + return responses; + } + + /** + * Required. The canned responses for the agent to choose from. The response is chosen randomly. + * @param responses responses or {@code null} for none + */ + public TriggerActionRespondImmediately setResponses(java.util.List responses) { + this.responses = responses; + return this; + } + + @Override + public TriggerActionRespondImmediately set(String fieldName, Object value) { + return (TriggerActionRespondImmediately) super.set(fieldName, value); + } + + @Override + public TriggerActionRespondImmediately clone() { + return (TriggerActionRespondImmediately) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionResponse.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionResponse.java new file mode 100644 index 00000000000..bb99eb61e7b --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionResponse.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.ces.v1beta.model; + +/** + * Represents a response from the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionResponse extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the response is disabled. Disabled responses are not used by the agent. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean disabled; + + /** + * Required. Text for the agent to respond with. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String text; + + /** + * Optional. Whether the response is disabled. Disabled responses are not used by the agent. + * @return value or {@code null} for none + */ + public java.lang.Boolean getDisabled() { + return disabled; + } + + /** + * Optional. Whether the response is disabled. Disabled responses are not used by the agent. + * @param disabled disabled or {@code null} for none + */ + public TriggerActionResponse setDisabled(java.lang.Boolean disabled) { + this.disabled = disabled; + return this; + } + + /** + * Required. Text for the agent to respond with. + * @return value or {@code null} for none + */ + public java.lang.String getText() { + return text; + } + + /** + * Required. Text for the agent to respond with. + * @param text text or {@code null} for none + */ + public TriggerActionResponse setText(java.lang.String text) { + this.text = text; + return this; + } + + @Override + public TriggerActionResponse set(String fieldName, Object value) { + return (TriggerActionResponse) super.set(fieldName, value); + } + + @Override + public TriggerActionResponse clone() { + return (TriggerActionResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionTransferAgent.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionTransferAgent.java new file mode 100644 index 00000000000..0b84c8c2a4c --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/TriggerActionTransferAgent.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.ces.v1beta.model; + +/** + * The agent will transfer the conversation to a different agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class TriggerActionTransferAgent extends com.google.api.client.json.GenericJson { + + /** + * Required. The name of the agent to transfer the conversation to. The agent must be in the same + * app as the current agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String agent; + + /** + * Required. The name of the agent to transfer the conversation to. The agent must be in the same + * app as the current agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @return value or {@code null} for none + */ + public java.lang.String getAgent() { + return agent; + } + + /** + * Required. The name of the agent to transfer the conversation to. The agent must be in the same + * app as the current agent. Format: + * `projects/{project}/locations/{location}/apps/{app}/agents/{agent}` + * @param agent agent or {@code null} for none + */ + public TriggerActionTransferAgent setAgent(java.lang.String agent) { + this.agent = agent; + return this; + } + + @Override + public TriggerActionTransferAgent set(String fieldName, Object value) { + return (TriggerActionTransferAgent) super.set(fieldName, value); + } + + @Override + public TriggerActionTransferAgent clone() { + return (TriggerActionTransferAgent) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WebSearchQuery.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WebSearchQuery.java new file mode 100644 index 00000000000..6f24246b872 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WebSearchQuery.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.ces.v1beta.model; + +/** + * Represents a single web search query and its associated search uri. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WebSearchQuery extends com.google.api.client.json.GenericJson { + + /** + * The search query text. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String query; + + /** + * The URI to the Google Search results page for the query. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String uri; + + /** + * The search query text. + * @return value or {@code null} for none + */ + public java.lang.String getQuery() { + return query; + } + + /** + * The search query text. + * @param query query or {@code null} for none + */ + public WebSearchQuery setQuery(java.lang.String query) { + this.query = query; + return this; + } + + /** + * The URI to the Google Search results page for the query. + * @return value or {@code null} for none + */ + public java.lang.String getUri() { + return uri; + } + + /** + * The URI to the Google Search results page for the query. + * @param uri uri or {@code null} for none + */ + public WebSearchQuery setUri(java.lang.String uri) { + this.uri = uri; + return this; + } + + @Override + public WebSearchQuery set(String fieldName, Object value) { + return (WebSearchQuery) super.set(fieldName, value); + } + + @Override + public WebSearchQuery clone() { + return (WebSearchQuery) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetTool.java b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetTool.java new file mode 100644 index 00000000000..dc8816484ca --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/com/google/api/services/ces/v1beta/model/WidgetTool.java @@ -0,0 +1,141 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.ces.v1beta.model; + +/** + * Represents a widget tool that the agent can invoke. When the tool is chosen by the agent, agent + * will return the widget to the client. The client is responsible for processing the widget and + * generating the next user query to continue the interaction with the agent. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Gemini Enterprise for Customer Experience API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class WidgetTool extends com.google.api.client.json.GenericJson { + + /** + * Optional. The description of the widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String description; + + /** + * Required. The display name of the widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. The input parameters of the widget tool. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private Schema parameters; + + /** + * Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String widgetType; + + /** + * Optional. The description of the widget tool. + * @return value or {@code null} for none + */ + public java.lang.String getDescription() { + return description; + } + + /** + * Optional. The description of the widget tool. + * @param description description or {@code null} for none + */ + public WidgetTool setDescription(java.lang.String description) { + this.description = description; + return this; + } + + /** + * Required. The display name of the widget tool. + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The display name of the widget tool. + * @param name name or {@code null} for none + */ + public WidgetTool setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. The input parameters of the widget tool. + * @return value or {@code null} for none + */ + public Schema getParameters() { + return parameters; + } + + /** + * Optional. The input parameters of the widget tool. + * @param parameters parameters or {@code null} for none + */ + public WidgetTool setParameters(Schema parameters) { + this.parameters = parameters; + return this; + } + + /** + * Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. + * @return value or {@code null} for none + */ + public java.lang.String getWidgetType() { + return widgetType; + } + + /** + * Optional. The type of the widget tool. If not specified, the default type will be CUSTOMIZED. + * @param widgetType widgetType or {@code null} for none + */ + public WidgetTool setWidgetType(java.lang.String widgetType) { + this.widgetType = widgetType; + return this; + } + + @Override + public WidgetTool set(String fieldName, Object value) { + return (WidgetTool) super.set(fieldName, value); + } + + @Override + public WidgetTool clone() { + return (WidgetTool) super.clone(); + } + +} diff --git a/clients/google-api-services-ces/v1beta/2.0.0/pom.xml b/clients/google-api-services-ces/v1beta/2.0.0/pom.xml new file mode 100644 index 00000000000..a564f74daa2 --- /dev/null +++ b/clients/google-api-services-ces/v1beta/2.0.0/pom.xml @@ -0,0 +1,219 @@ + + 4.0.0 + + org.sonatype.oss + oss-parent + 7 + + + com.google.apis + google-api-services-ces + v1beta-rev20260204-2.0.0 + Gemini Enterprise for Customer Experience API v1beta-rev20260204-2.0.0 + jar + + 2011 + + + + GoogleAPIs + GoogleAPIs + googleapis@googlegroups.com + Google + https://www.google.com + + + + + Google + http://www.google.com/ + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + repo + + + + + + ossrh + https://google.oss.sonatype.org/content/repositories/snapshots + + + + + + + maven-compiler-plugin + 3.9.0 + + 1.7 + 1.7 + + + + org.apache.maven.plugins + maven-source-plugin + 2.4 + + + org.apache.maven.plugins + maven-jar-plugin + 3.1.2 + + + + com.google.api.services.ces + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + + attach-javadocs + + jar + + + + + none + Gemini Enterprise for Customer Experience API ${project.version} + Gemini Enterprise for Customer Experience API ${project.version} + + http://docs.oracle.com/javase/7/docs/api + https://googleapis.dev/java/google-http-client/${httpClientLibrary}/ + https://googleapis.dev/java/google-oauth-client/${oauthClientLibrary}/ + https://googleapis.dev/java/google-api-client/2.7.2/ + + + + + org.codehaus.mojo + clirr-maven-plugin + 2.8 + + clirr-ignored-differences.xml + true + + + + + check + + + + + + . + + + ./resources + + + + + + + com.google.api-client + google-api-client + 2.7.2 + + + + + UTF-8 + + + + + + release-sonatype + + + + !artifact-registry-url + + + + + + org.sonatype.plugins + nexus-staging-maven-plugin + 1.6.13 + true + + sonatype-nexus-staging + https://google.oss.sonatype.org/ + false + + + + + + + + release-gcp-artifact-registry + + artifactregistry://please-define-artifact-registry-url-property + + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + gcp-artifact-registry-repository + ${artifact-registry-url} + + + + + release-sign-artifacts + + + performRelease + true + + + + + + org.apache.maven.plugins + maven-gpg-plugin + 3.2.7 + + + sign-artifacts + verify + + sign + + + + --pinentry-mode + loopback + + + + + + + + + + \ No newline at end of file diff --git a/clients/google-api-services-ces/v1beta/README.md b/clients/google-api-services-ces/v1beta/README.md new file mode 100644 index 00000000000..0ed81638c0f --- /dev/null +++ b/clients/google-api-services-ces/v1beta/README.md @@ -0,0 +1,44 @@ +# Gemini Enterprise for Customer Experience API Client Library for Java + + + +This page contains information about getting started with the Gemini Enterprise for Customer Experience API +using the Google API Client Library for Java. In addition, you may be interested +in the following documentation: + +* Browse the [Javadoc reference for the Gemini Enterprise for Customer Experience API][javadoc] +* Read the [Developer's Guide for the Google API Client Library for Java][google-api-client]. +* Interact with this API in your browser using the [APIs Explorer for the Gemini Enterprise for Customer Experience API][api-explorer] + +## Installation + +### Maven + +Add the following lines to your `pom.xml` file: + +```xml + + + + com.google.apis + google-api-services-ces + v1beta-rev20260204-2.0.0 + + + +``` + +### Gradle + +```gradle +repositories { + mavenCentral() +} +dependencies { + implementation 'com.google.apis:google-api-services-ces:v1beta-rev20260204-2.0.0' +} +``` + +[javadoc]: https://googleapis.dev/java/google-api-services-ces/latest/index.html +[google-api-client]: https://github.com/googleapis/google-api-java-client/ +[api-explorer]: https://developers.google.com/apis-explorer/#p/ces/v1/